SRC=$(wildcard *.cpp)
EXE=$(addsuffix .exe, $(basename $(SRC)))
CPPC=g++
CPPC_FLAGS=-Wall -Wextra -pedantic -O3 -std=c++14 
# adapt to your environment
DCO_DIR=/home/un110076/Software/dco

all : $(EXE)
	./f_t.exe >f_t.out
	./f_a.exe >f_a.out
	diff f_t.out f_a.out
	./f_tv.exe >f_tv.out
	diff f_tv.out f_a.out
	./f_tt.exe >f_tt.out
	./f_ta.exe >f_ta.out
	diff f_tt.out f_ta.out

%.exe : %.cpp
	$(CPPC) $(CPPC_FLAGS) -I$(DCO_DIR) -I.. $< -o $@

clean :
	rm -f $(EXE) *.out

.PHONY: all clean

