# adapt to your environment
DCO_INC=../../../../dco_3.1/include
DCO_LIB=../../../../dco_3.1/lib

SRC=gt1s.cpp ga1s.cpp 

TARGETS=$(addsuffix .exe, $(basename $(SRC)))

CPPC=g++
CPPC_FLAGS=-std=c++14 -O3 -Wall -Wextra -pedantic

all : $(TARGETS)
	./gt1s.exe 10 100 >gt1s.out
	./ga1s.exe 10 100 >ga1s.out
	diff gt1s.out ga1s.out

gt1s.exe : ../diffusion.h ../gauss.h
ga1s.exe : ../diffusion.h ../gauss.h

%.exe : %.cpp
	$(CPPC) $(CPPC_FLAGS) -I.. -I$(DCO_INC) -L$(DCO_LIB) $< -o $@ -ldcoc -lkusari

clean:
	rm -fr *.exe *.out

.PHONY: all clean


