summary refs log tree commit diff
path: root/bin/Makefile
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2018-02-09 15:21:47 -0500
committerJune McEnroe <programble@gmail.com>2018-02-09 15:21:47 -0500
commita3c622a5ab8bf2cf0cde6b09ab882f4209ca8f5e (patch)
tree8066976a3eebba31cec78a36301cfe0582a07f5c /bin/Makefile
parentMove gfx frontends around to simplify build (diff)
downloadsrc-a3c622a5ab8bf2cf0cde6b09ab882f4209ca8f5e.tar.gz
src-a3c622a5ab8bf2cf0cde6b09ab882f4209ca8f5e.zip
Link LDLIBS regardless of GFX
Diffstat (limited to '')
-rw-r--r--bin/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/Makefile b/bin/Makefile
index 2a4658f1..c55b42e9 100644
--- a/bin/Makefile
+++ b/bin/Makefile
@@ -6,8 +6,8 @@ GFX = none
 
 CFLAGS += -Wall -Wextra -Wpedantic
 LDLIBS = -lcurses -ledit -lutil -lz
-LDLIBS_cocoa = $(LDLIBS) -framework Cocoa
-LDLIBS_x11 = $(LDLIBS) -lX11
+LDLIBS_cocoa = -framework Cocoa
+LDLIBS_x11 = -lX11
 
 any: .gitignore tags $(ANY_BINS)
 
@@ -19,7 +19,7 @@ atch: dtch
 	ln -f dtch atch
 
 gfxx: gfxx.o gfx/$(GFX).o
-	$(CC) $(LDFLAGS) gfxx.o gfx/$(GFX).o $(LDLIBS_$(GFX)) -o $@
+	$(CC) $(LDFLAGS) gfxx.o gfx/$(GFX).o $(LDLIBS) $(LDLIBS_$(GFX)) -o $@
 
 pbcopy pbpaste: pbd
 	ln -f pbd $@