From aff09967d194d062ae8d83c0fbe1edf158804ef9 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 4 Mar 2016 10:45:10 +0100 Subject: Clean up, fix a few bugs, and add a test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 0670292..f3a6ad7 100644 --- a/Makefile +++ b/Makefile @@ -56,7 +56,7 @@ FUN =\ OBJ = $(FUN:=.o) MAN = $(foreach F,$(FUN),man/$(F).3) man/libzahl.7 -all: libzahl.a +all: libzahl.a test %.o: src/%.c $(HDR) config.mk $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $< @@ -65,7 +65,10 @@ libzahl.a: $(OBJ) $(AR) rc $@ $? $(RANLIB) $@ +test: test.c libzahl.a + $(CC) $(LDFLAGS) $(CFLAGS) $(CPPFLAGS) -o $@ $^ + clean: - -rm -- *.o *.su *.a *.so 2>/dev/null + -rm -- *.o *.su *.a *.so test 2>/dev/null .PHONY: all clean -- cgit v1.2.3-70-g09d2