From 4e814a03cf077a36bfed4985705276cd875c752c Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Sun, 18 Nov 2018 01:41:46 -0500 Subject: Add seeds of edi --- bin/edi/Makefile | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 bin/edi/Makefile (limited to 'bin/edi/Makefile') 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) -- cgit 1.4.1