diff options
author | June McEnroe <programble@gmail.com> | 2017-09-17 11:39:28 -0400 |
---|---|---|
committer | June McEnroe <programble@gmail.com> | 2017-09-17 11:39:28 -0400 |
commit | d4427b17bb86020b2cee35a1cd01428aa78512f5 (patch) | |
tree | 3e7c38528230aa7778ba75b12d22f213c08bba91 /bin/Makefile | |
parent | Simplify zsh prompts (diff) | |
download | src-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/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) |