summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-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)