summary refs log tree commit diff
path: root/bin/Makefile
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2017-09-17 11:39:28 -0400
committerJune McEnroe <programble@gmail.com>2017-09-17 11:39:28 -0400
commitd4427b17bb86020b2cee35a1cd01428aa78512f5 (patch)
tree3e7c38528230aa7778ba75b12d22f213c08bba91 /bin/Makefile
parentSimplify zsh prompts (diff)
downloadsrc-d4427b17bb86020b2cee35a1cd01428aa78512f5.tar.gz
src-d4427b17bb86020b2cee35a1cd01428aa78512f5.zip
Simplify bins Makefile
Just link the usual libs for everything. Append warnings flags to
CFLAGS.
Diffstat (limited to 'bin/Makefile')
-rw-r--r--bin/Makefile18
1 files changed, 2 insertions, 16 deletions
diff --git a/bin/Makefile b/bin/Makefile
index 3b59a4b7..299bdf27 100644
--- a/bin/Makefile
+++ b/bin/Makefile
@@ -1,32 +1,18 @@
 BINS = atch bri dtch hnel jrp pbcopy pbd pbpaste typo wake watch xx
-CWARNS = -Wall -Wextra -Wpedantic
+CFLAGS += -Wall -Wextra -Wpedantic
+LDLIBS = -lcurses -ledit -lutil
 
 all: $(BINS)
 
-.c:
-	$(CC) $(CWARNS) $(CFLAGS) -o $@ $<
-
 atch: dtch
 	ln -f dtch atch
 
-dtch: dtch.c
-	$(CC) $(CWARNS) $(CFLAGS) -lutil -o dtch dtch.c
-
-hnel: hnel.c
-	$(CC) $(CWARNS) $(CFLAGS) -lutil -o hnel hnel.c
-
-jrp: jrp.c
-	$(CC) $(CWARNS) $(CFLAGS) -ledit -o jrp jrp.c
-
 pbcopy: pbd
 	ln -f pbd pbcopy
 
 pbpaste: pbd
 	ln -f pbd pbpaste
 
-typo: typo.c words.txt
-	$(CC) $(CWARNS) $(CFLAGS) -lcurses -o typo typo.c
-
 clean:
 	rm -f $(BINS)