2021-02-04 18:52:26 +01:00
|
|
|
## Used compilers
|
2021-02-04 17:05:55 +01:00
|
|
|
CXX = icpc
|
|
|
|
FC = ifort
|
2021-02-04 18:52:26 +01:00
|
|
|
|
|
|
|
## Compiler flags
|
2021-02-09 13:40:52 +01:00
|
|
|
CXXFLAGS = -O0 #-debug full -traceback
|
|
|
|
FFLAGS = -O0 #-debug full -traceback
|
|
|
|
# ARCH = -xCORE-AVX2
|
2021-01-26 07:26:54 +01:00
|
|
|
|
2021-02-12 12:04:21 +01:00
|
|
|
## Deps & objs for C++ cMaponiA3_test
|
|
|
|
cMaponiA3_testDEP = cMaponiA3_test.cpp SM_MaponiA3.cpp SM_MaponiA3.hpp Helpers.hpp
|
|
|
|
cMaponiA3_testOBJ = cMaponiA3_test.o SM_MaponiA3.o
|
|
|
|
|
|
|
|
## Deps & objs for Fortran fMaponiA3_test
|
|
|
|
fMaponiA3_testDEP = fMaponiA3_test.f90 SM_MaponiA3_mod.f90
|
|
|
|
fMaponiA3_testOBJ = SM_MaponiA3.o SM_MaponiA3_mod.o fMaponiA3_test.o
|
|
|
|
fMaponiA3_testLIB = -lstdc++
|
|
|
|
|
|
|
|
## Deps & objs for Fortran QMCChem_dataset_test
|
|
|
|
QMCChem_dataset_testDEP = QMCChem_dataset_test.f90 SM_MaponiA3_mod.f90
|
|
|
|
QMCChem_dataset_testOBJ = SM_MaponiA3.o SM_MaponiA3_mod.o QMCChem_dataset_test.o
|
|
|
|
QMCChem_dataset_testLIB = -lstdc++
|
|
|
|
|
|
|
|
## Compile recipes for C++ cMaponiA3_test
|
|
|
|
%.o: %.cpp $(cMaponiA3_testDEP)
|
2021-02-04 11:39:00 +01:00
|
|
|
$(CXX) $(ARCH) $(CXXFLAGS) -c -o $@ $<
|
2021-01-26 07:26:54 +01:00
|
|
|
|
2021-02-12 12:04:21 +01:00
|
|
|
## Compile recepies for Fortran fMaponiA3_test
|
|
|
|
%.o: %.f90 $(fMaponiA3_testDEP)
|
2021-02-04 11:39:00 +01:00
|
|
|
$(FC) $(ARCH) $(FFLAGS) -c -o $@ $<
|
|
|
|
|
2021-02-04 18:52:26 +01:00
|
|
|
## Build tagets
|
2021-02-04 13:12:34 +01:00
|
|
|
.PHONY: all clean distclean
|
|
|
|
|
2021-02-12 12:04:21 +01:00
|
|
|
all: cMaponiA3_test fMaponiA3_test QMCChem_dataset_test
|
2021-02-04 11:39:00 +01:00
|
|
|
|
2021-02-04 13:12:34 +01:00
|
|
|
clean:
|
|
|
|
@rm -vf *.o *.mod
|
2021-02-09 13:40:52 +01:00
|
|
|
|
2021-02-04 13:12:34 +01:00
|
|
|
distclean: clean
|
2021-02-12 12:04:21 +01:00
|
|
|
@rm -vf cMaponiA3_test fMaponiA3_test QMCChem_dataset_test
|
2021-02-04 13:12:34 +01:00
|
|
|
|
|
|
|
## Linking the C++ example program
|
2021-02-12 12:04:21 +01:00
|
|
|
cMaponiA3_test: $(cMaponiA3_testOBJ)
|
2021-02-04 11:39:00 +01:00
|
|
|
$(CXX) $(ARCH) $(CXXFLAGS) -o $@ $^
|
|
|
|
|
2021-02-04 13:12:34 +01:00
|
|
|
## Linking Fortran example program calling the C++ function 'Sherman_Morrison()'
|
2021-02-12 12:04:21 +01:00
|
|
|
fMaponiA3_test: $(fMaponiA3_testOBJ)
|
|
|
|
$(FC) $(ARCH) $(FFLAGS) $(fMaponiA3_testLIB) -o $@ $^
|
|
|
|
|
|
|
|
## Linking Fortran example program calling the C++ function 'Sherman_Morrison()'
|
|
|
|
QMCChem_dataset_test: $(QMCChem_dataset_testOBJ)
|
|
|
|
$(FC) $(ARCH) $(FFLAGS) $(QMCChem_dataset_testLIB) -o $@ $^
|