CFLAGS += -std=c99 -D_XOPEN_SOURCE=500 -D_POSIX_C_SOURCE=200809L -Wall -Wextra all: simulator simulator: simulator.o gate.o logic.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