CFLAGS_ADD = -I. .ifnmake trace CFLAGS_ADD += -O .endif BUILDLIBS = libsha.a OBJ_libsha = sha.o INSTALLHDR = sha.h INSTALLMAN = libsha.3 INSTMANLINKS = sha_init.3 libsha.3 \ sha_process_bytes.3 libsha.3 \ sha_result.3 libsha.3 .PHONY: tests tests: .NOTMAIN test ./test CLEANFILES += test test.o test: .NOTMAIN test.o libsha.a $(CC) -o test test.o libsha.a CLEANFILES += trace trace: .NOTMAIN test-trace.o sha-trace.o $(CC) -g -o trace test-trace.o sha-trace.o CLEANFILES += test-trace.o test-trace.o: .NOTMAIN test.c $(CC) $(CFLAGS) -g -c -o test-trace.o test.c -DTRACE CLEANFILES += sha-trace.o sha-trace.o: .NOTMAIN sha.c $(CC) $(CFLAGS) -g -c -o sha-trace.o sha.c -DTRACE .include