summaryrefslogtreecommitdiff
path: root/test/Makefile
blob: 1c99ced4d845d207033b8fa6fc16780270690528 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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