summary refs log tree commit diff
path: root/bin/Makefile
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-04-20 10:30:49 -0400
committerJune McEnroe <june@causal.agency>2020-04-20 10:30:49 -0400
commitba9680251ac94b203742fb5601e2f497a62c042a (patch)
treed71affa686efbeb3664e140dd4b88607f7827708 /bin/Makefile
parentAdd CREEP U (diff)
downloadsrc-ba9680251ac94b203742fb5601e2f497a62c042a.tar.gz
src-ba9680251ac94b203742fb5601e2f497a62c042a.zip
Use . as ${LDLIBS.$@} separator
Diffstat (limited to '')
-rw-r--r--bin/Makefile24
1 files changed, 12 insertions, 12 deletions
diff --git a/bin/Makefile b/bin/Makefile
index 3d85542c..c170d07b 100644
--- a/bin/Makefile
+++ b/bin/Makefile
@@ -6,15 +6,15 @@ CFLAGS += -I${LIBS_PREFIX}/include
 LDFLAGS += -L${LIBS_PREFIX}/lib
 
 CFLAGS += -Wall -Wextra -Wpedantic -Wno-gnu-case-range
-LDLIBS_dtch = -lutil
-LDLIBS_glitch = -lz
-LDLIBS_hnel = -lutil
-LDLIBS_modem = -lutil
-LDLIBS_pngo = -lz
-LDLIBS_ptee = -lutil
-LDLIBS_relay = -ltls
-LDLIBS_scheme = -lm
-LDLIBS_title = -lcurl
+LDLIBS.dtch = -lutil
+LDLIBS.glitch = -lz
+LDLIBS.hnel = -lutil
+LDLIBS.modem = -lutil
+LDLIBS.pngo = -lz
+LDLIBS.ptee = -lutil
+LDLIBS.relay = -ltls
+LDLIBS.scheme = -lm
+LDLIBS.title = -lcurl
 
 -include config.mk
 
@@ -65,13 +65,13 @@ tls: meta ${BINS_TLS}
 meta: .gitignore tags
 
 .c:
-	${CC} ${CFLAGS} ${LDFLAGS} $< ${LDLIBS_$@} -o $@
+	${CC} ${CFLAGS} ${LDFLAGS} $< ${LDLIBS.$@} -o $@
 
 .o:
-	${CC} ${LDFLAGS} $< ${LDLIBS_$@} -o $@
+	${CC} ${LDFLAGS} $< ${LDLIBS.$@} -o $@
 
 hi: hi.c
-	${CC} ${CFLAGS} ${LDFLAGS} hi.c ${LDLIBS_$@} -o $@
+	${CC} ${CFLAGS} ${LDFLAGS} hi.c ${LDLIBS.$@} -o $@
 	./hi -c
 
 open pbcopy pbpaste: pbd