EXE=$(addsuffix .exe, $(basename $(wildcard *.cpp)))
CPPC=g++ -std=c++17
CPPC_FLAGS=-Wall -Wextra -pedantic -g

all : $(EXE)
	./Tour_MF003.exe
	./Tour_MF004.exe
	./Tour_MF005.exe
	./Tour_MF005.exe < data.in
	gnuplot plot.gp

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

clean :
	rm -f $(EXE) plot.pdf

.PHONY: all clean

