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