.phony: clean veryclean pmd_wrapperall: pmd_wrapper modsobj= pmd_wrapper.F90pmddir= ${HOME}/src/nap/pmd# In case of macOS (at least in my environment), need to use gfortran with mpi options instead of using mpif90.# You should modify paths in the following.mpiopts= -I/usr/local/Cellar/open-mpi/4.1.1_2/include -L/usr/local/opt/libevent/lib -L/usr/local/Cellar/open-mpi/4.1.1_2/lib -lmpi_usempif08 -lmpi_usempi_ignore_tkr -lmpi_mpifh -lmpiompopts= --f90flags="-fopenmp" -lgompcompopts= --f77exec=mpif90 --f90exec=mpif90 --quiet# compopts= --f90exec=mpif90 --quiet --fcompiler=gnu95pmd_wrapper: ${obj} f2py ${compopts} -m $@ -I${pmddir} -c $^ -L${pmddir} -lpmd # for linux, use mpif90 directly# f2py ${compopts} -m $@ -I${pmddir} -c $^ -L${pmddir} -lpmd ${mpiopts} # for mac, use gfortran and mpiopts defined above# f2py ${compopts} -m $@ -I${pmddir} -c $^ -L${pmddir} -lpmd ${ompopts} # add ompopts if pmd was compiled with -fopenmpclean: rm -f *.o *.so *~veryclean: clean rm -f out.*