2021-01-26 07:26:54 +01:00
|
|
|
CXX=icpc
|
2021-01-27 17:19:41 +01:00
|
|
|
CXXFLAGS=-O0 -debug full -traceback
|
2021-02-04 11:39:00 +01:00
|
|
|
FC=ifort
|
|
|
|
FFLAGS=-O0 -debug full -traceback
|
2021-01-27 17:19:41 +01:00
|
|
|
# ARCH=-xCORE-AVX2
|
2021-01-26 07:26:54 +01:00
|
|
|
|
2021-02-04 11:39:00 +01:00
|
|
|
## Deps & objs for the C++ stuff
|
|
|
|
cppDEPS = cppmain.cpp SM_MaponiA3.cpp SM_MaponiA3.hpp Helpers.hpp
|
|
|
|
cppOBJ = cppmain.o SM_MaponiA3.o
|
|
|
|
## Deps & objs for the Fortran stuff
|
|
|
|
fDEPS = fmain.f90 SM_MaponiA3_mod.f90
|
|
|
|
fOBJ = SM_MaponiA3_mod.o fmain.o
|
2021-01-26 07:26:54 +01:00
|
|
|
|
2021-02-04 11:39:00 +01:00
|
|
|
%.o: %.cpp $(cppDEPS)
|
|
|
|
$(CXX) $(ARCH) $(CXXFLAGS) -c -o $@ $<
|
2021-01-26 07:26:54 +01:00
|
|
|
|
2021-02-04 11:39:00 +01:00
|
|
|
%.o: %.f90 $(fDEPS)
|
|
|
|
$(FC) $(ARCH) $(FFLAGS) -c -o $@ $<
|
|
|
|
|
|
|
|
all: cppSherman-Morrison fSherman-Morrison
|
|
|
|
|
|
|
|
cppSherman-Morrison: $(cppOBJ)
|
|
|
|
$(CXX) $(ARCH) $(CXXFLAGS) -o $@ $^
|
|
|
|
|
|
|
|
fSherman-Morrison: $(fOBJ)
|
|
|
|
$(FC) $(ARCH) $(FFLAGS) -o $@ $^
|
2021-01-26 11:32:17 +01:00
|
|
|
|
|
|
|
clean:
|
2021-02-04 11:39:00 +01:00
|
|
|
@rm -vf *.o *.mod
|
|
|
|
|