CFLAGS += -I../ TESTS = \ 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 ../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 ./run-lang-tests.sh