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
commite4153a1990695daf33bcf8b0f004e201b721bb03 (patch)
treee06799ecf5834bcb9e27d2cf7910c6267f2edb8e /bin/edi/Makefile
parentUse png.h in gfxx.c (diff)
downloadsrc-e4153a1990695daf33bcf8b0f004e201b721bb03.tar.gz
src-e4153a1990695daf33bcf8b0f004e201b721bb03.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)