diff options
author | June McEnroe <june@causal.agency> | 2017-09-17 11:39:28 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2017-09-17 11:39:28 -0400 |
commit | b601686560504716176845a1ee351bd41afd2fa7 (patch) | |
tree | 29525e3d6000ccf638051eadc15199104ce92751 /bin | |
parent | Simplify zsh prompts (diff) | |
download | src-b601686560504716176845a1ee351bd41afd2fa7.tar.gz src-b601686560504716176845a1ee351bd41afd2fa7.zip |
Simplify bins Makefile
Just link the usual libs for everything. Append warnings flags to CFLAGS.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/Makefile | 18 |
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) |