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 common.o gate.o logic.o lex.o parse.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