From b601686560504716176845a1ee351bd41afd2fa7 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Sun, 17 Sep 2017 11:39:28 -0400 Subject: Simplify bins Makefile Just link the usual libs for everything. Append warnings flags to CFLAGS. --- bin/Makefile | 18 ++---------------- 1 file 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) -- cgit 1.4.1