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.
64 lines
1.3 KiB
64 lines
1.3 KiB
FC = gfortran
|
|
FFLAGS =
|
|
|
|
#FILE = example.f
|
|
FILE = example16.f
|
|
|
|
#WITHLT = yes
|
|
WITHLT = no
|
|
|
|
#WITHCOLI = yes
|
|
WITHCOLI = no
|
|
|
|
LTHOME = $(HOME)/loopcal/LoopTools-2.6/build
|
|
LTLIB = ooptools
|
|
LTVSNge26 = yes
|
|
#LTVSNge26 = no
|
|
|
|
COLIHOME = $(HOME)/fortran/colilib/
|
|
COLILIB = coli_gfortran
|
|
|
|
OLOHOME = ../
|
|
OLOLIB = avh_olo
|
|
|
|
#######################################################################
|
|
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)"
|
|
../src/avh_pc_exe.py "case" "COLI" "$(WITHCOLI)" "tmp_$(FILE)"
|
|
|
|
ifeq ($(WITHLT)$(WITHCOLI),yesyes)
|
|
compile:
|
|
$(FC) $(FFLAGS) -I$(OLOHOME) -o example.exe tmp_$(FILE) \
|
|
-L$(LTHOME) -l$(LTLIB) \
|
|
-L$(COLIHOME) -l$(COLILIB) \
|
|
-L$(OLOHOME) -l$(OLOLIB)
|
|
endif
|
|
ifeq ($(WITHLT)$(WITHCOLI),yesno)
|
|
compile:
|
|
$(FC) $(FFLAGS) -I$(OLOHOME) -o example.exe tmp_$(FILE) \
|
|
-L$(LTHOME) -l$(LTLIB) \
|
|
-L$(OLOHOME) -l$(OLOLIB)
|
|
endif
|
|
ifeq ($(WITHLT)$(WITHCOLI),noyes)
|
|
compile:
|
|
$(FC) $(FFLAGS) -I$(OLOHOME) -o example.exe tmp_$(FILE) \
|
|
-L$(COLIHOME) -l$(COLILIB) \
|
|
-L$(OLOHOME) -l$(OLOLIB)
|
|
endif
|
|
ifeq ($(WITHLT)$(WITHCOLI),nono)
|
|
compile:
|
|
$(FC) $(FFLAGS) -I$(OLOHOME) -o example.exe tmp_$(FILE) \
|
|
-L$(OLOHOME) -l$(OLOLIB)
|
|
endif
|
|
|
|
rmtmp:
|
|
rm -f tmp_$(FILE)
|
|
|
|
clean:
|
|
rm -f *.exe *.mod
|