You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

46 lines
963 B

FC = gfortran
FFLAGS = -O
MPFUN90MOD = $(HOME)/fortran/mpfun90/
MPFUN90LIB = $(HOME)/fortran/mpfun90/
MPFUN90 = mpfun90
OLOMOD = ../
OLOLIB = ../
OLO = avh_olo
FILE = example.f
#WITHLT = yes
WITHLT = no
LTHOME = $(HOME)/loopcal/LoopTools-2.6/build
LTLIB = ooptools
LTVSNge26 = yes
#LTVSNge26 = no
#######################################################################
all: copy edit compile rmtmp
copy:
cp $(FILE) tmp_$(FILE)
edit:
../src/avh_pc_exe.py "case" "LT" "$(WITHLT)" "tmp_$(FILE)"
../src/avh_pc_exe.py "case" "LTVSNge26" "$(WITHLT)$(LTVSNge26)" "tmp_$(FILE)"
ifeq ($(WITHLT),yes)
compile:
$(FC) $(FFLAGS) -I$(MPFUN90MOD) -I$(OLOMOD) -o example.exe tmp_$(FILE) \
-L$(MPFUN90LIB) -l$(MPFUN90) -L$(OLOLIB) -l$(OLO) -L$(LTHOME) -l$(LTLIB)
else
compile:
$(FC) $(FFLAGS) -I$(MPFUN90MOD) -I$(OLOMOD) -o example.exe tmp_$(FILE) \
-L$(MPFUN90LIB) -l$(MPFUN90) -L$(OLOLIB) -l$(OLO)
endif
rmtmp:
rm -f tmp_$(FILE)
clean:
rm -f *.exe *.mod