summary refs log tree commit diff
path: root/gfx/Makefile
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-01-17 15:57:00 -0500
committerJune McEnroe <june@causal.agency>2019-01-17 15:57:00 -0500
commitb3381c53b0761284f86881e6780e04dcfb93d799 (patch)
tree7ce1c2969320726f9f0072a6dcd369915c5a909f /gfx/Makefile
parentReorganize bin and Makefile once again (diff)
downloadsrc-b3381c53b0761284f86881e6780e04dcfb93d799.tar.gz
src-b3381c53b0761284f86881e6780e04dcfb93d799.zip
Reunify gfx and bin
Diffstat (limited to 'gfx/Makefile')
-rw-r--r--gfx/Makefile45
1 files changed, 0 insertions, 45 deletions
diff --git a/gfx/Makefile b/gfx/Makefile
deleted file mode 100644
index 20ff5ecd..00000000
--- a/gfx/Makefile
+++ /dev/null
@@ -1,45 +0,0 @@
-GFX ?= cocoa
-PREFIX = ~/.local
-
-BINS = brot gfxx
-MAN1 = $(BINS:%=man/%.1)
-
-CFLAGS += -Wall -Wextra -Wpedantic
-LDLIBS = -lm
-LDLIBS_cocoa = -framework Cocoa
-LDLIBS_x11 = -lX11
-
-all: .gitignore tags $(BINS)
-
-tags: *.h *.c
-	ctags -w *.h *.c
-
-brot.o gfxx.o: gfx.h
-
-cocoa.o fb.o x11.o: gfx.h
-
-gfxx.o: png.h
-
-brot: brot.o $(GFX).o
-	$(CC) $(LDFLAGS) brot.o $(GFX).o $(LDLIBS) $(LDLIBS_$(GFX)) -o $@
-
-gfxx: gfxx.o $(GFX).o
-	$(CC) $(LDFLAGS) gfxx.o $(GFX).o $(LDLIBS) $(LDLIBS_$(GFX)) -o $@
-
-clean:
-	rm -f tags *.o $(BINS)
-
-README: man/gfx.7
-	mandoc man/gfx.7 | col -b -x > README
-
-.gitignore: Makefile
-	echo '*.o' tags $(BINS) | tr ' ' '\n' > .gitignore
-
-link:
-	mkdir -p $(PREFIX)/bin $(PREFIX)/share/man/man1
-	ln -s -f $(BINS:%=$(PWD)/%) $(PREFIX)/bin
-	ln -s -f $(MAN1:%=$(PWD)/%) $(PREFIX)/share/man/man1
-
-unlink:
-	rm -f $(BINS:%=$(PREFIX)/bin/%)
-	rm -f $(MAN1:%=$(PREFIX)/share/man/man1/%)