summaryrefslogtreecommitdiff
path: root/Makefile
blob: bdfcc72f8d018b9df0c969bca371c5d205d3e7dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
CFLAGS += -std=c99 -D_XOPEN_SOURCE=500 -D_POSIX_C_SOURCE=200809L -Wall -Wextra

all: simulator

simulator: simulator.o gate.o logic.o lexer.o parser.o

.PHONY: test
test: all
	$(MAKE) -C test all test

clean:
	rm -f parser simulator
	rm -f *.o

full-clean: clean
	make -C test clean