CFLAGS += -I../ TESTS = \ test-whitespace-input \ test-short-keyword \ test-duplicate-input \ test-logic-and \ test-logic-or \ test-logic-nand \ test-logic-nor \ test-logic-xor \ test-logic-not \ all: $(TESTS) test-%: test-%.c ../gate.o ../parser.o ../logic.o $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ .PHONY: clean clean: rm -f $(TESTS) for i in $(TESTS) ; do \ rm -f $$i.std{out,err}.log ; \ done .PHONY: test test: ./test.sh