diff options
Diffstat (limited to 'bin/Makefile')
-rw-r--r-- | bin/Makefile | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/bin/Makefile b/bin/Makefile index 9f913e47..ae667eef 100644 --- a/bin/Makefile +++ b/bin/Makefile @@ -1,13 +1,10 @@ -ANY_BINS = atch brot dtch gfxx glitch hnel modem pbcopy pbd pbpaste pngo scheme wake xx +ANY_BINS = atch dtch glitch hnel modem pbcopy pbd pbpaste pngo scheme wake xx BSD_BINS = klon watch LIN_BINS = bri fbatt fbclock ALL_BINS = $(ANY_BINS) $(BSD_BINS) $(LIN_BINS) -GFX ?= none CFLAGS += -Wall -Wextra -Wpedantic -LDLIBS = -lcurses -ledit -lm -lutil -lz -LDLIBS_cocoa = -framework Cocoa -LDLIBS_x11 = -lX11 +LDLIBS = -lcurses -lm -lutil -lz any: .gitignore tags $(ANY_BINS) @@ -16,7 +13,7 @@ bsd: any $(BSD_BINS) linux: any $(LIN_BINS) .gitignore: Makefile - echo '*.o' tags $(ALL_BINS) scheme.png | tr ' ' '\n' > .gitignore + echo tags $(ALL_BINS) scheme.png | tr ' ' '\n' > .gitignore tags: *.c ctags -w *.c @@ -24,12 +21,6 @@ tags: *.c atch: dtch ln -f dtch atch -brot: brot.o gfx/$(GFX).o - $(CC) $(LDFLAGS) brot.o gfx/$(GFX).o $(LDLIBS) $(LDLIBS_$(GFX)) -o $@ - -gfxx: gfxx.o gfx/$(GFX).o - $(CC) $(LDFLAGS) gfxx.o gfx/$(GFX).o $(LDLIBS) $(LDLIBS_$(GFX)) -o $@ - pbcopy pbpaste: pbd ln -f pbd $@ @@ -41,7 +32,7 @@ setuid: bri chmod u+s bri clean: - rm -f tags *.o gfx/*.o $(ALL_BINS) + rm -f tags $(ALL_BINS) link: mkdir -p ~/.local/bin |