#Para GCC
compiler=gcc
flags=-O3 -Wall -DTALK -DTALK2 -DCBLAS -DPARFFTW -DDEPURA -DOMP -fopenmp -ffast-math -DOMP2 -DOMP3 -DLAPACKE
flags=-O3 -Wall        -DTALK2 -DCBLAS -DPARFFTW          -DOMP -fopenmp -ffast-math 

incs=-I/opt/fftw3.3.8/include -I/usr/include/openblas -I./mt19937ar
libs=-L/opt/fftw3.3.8/lib -lfftw3_omp -lfftw3 -lopenblas  -lm
libs=-L/opt/fftw3.3.8/lib -lfftw3_omp -lfftw3 -lopenblaso -lm

all: CardioPulmon

CardioPulmon: CardioPulmon.c
	$(compiler) $(flags) -o CardioPulmon CardioPulmon.c ComputeFunctions.c FileFunctions.c mt19937ar/mt19937ar.c \
	$(incs) $(libs)


install: cleanall all
	mkdir -p bin
	mv -f CardioPulmon bin/

clean:
	rm -f *~ *.o core

cleanall: clean
	rm  -f CardioPulmon
	rm -rf bin/
