summary refs log tree commit diff
path: root/bin/edi/Makefile
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-11-18 01:41:46 -0500
committerJune McEnroe <june@causal.agency>2018-11-18 01:41:46 -0500
commit4e814a03cf077a36bfed4985705276cd875c752c (patch)
tree2db90195175f3de529694b722592e775331390a5 /bin/edi/Makefile
parentUse png.h in gfxx.c (diff)
downloadsrc-4e814a03cf077a36bfed4985705276cd875c752c.tar.gz
src-4e814a03cf077a36bfed4985705276cd875c752c.zip
Add seeds of edi
Diffstat (limited to '')
-rw-r--r--bin/edi/Makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/bin/edi/Makefile b/bin/edi/Makefile
new file mode 100644
index 00000000..2d9128c0
--- /dev/null
+++ b/bin/edi/Makefile
@@ -0,0 +1,30 @@
+CFLAGS += -Wall -Wextra -Wpedantic
+LDLIBS = -lcursesw
+
+OBJS += buffer.o
+OBJS += log.o
+OBJS += table.o
+
+TESTS += buffer.t
+TESTS += table.t
+
+all: tags edi test
+
+tags: *.h *.c
+	ctags -w *.h *.c
+
+edi: $(OBJS)
+	$(CC) $(LDFLAGS) $(OBJS) $(LDLIBS) -o $@
+
+$(OBJS): edi.h
+
+test: $(TESTS)
+	set -e; $(TESTS:%=./%;)
+
+.SUFFIXES: .t
+
+.c.t:
+	$(CC) $(CFLAGS) -DTEST $(LDFLAGS) $< $(LDLIBS) -o $@
+
+clean:
+	rm -f tags edi $(OBJS) $(TESTS)