Changeset 10091
- Timestamp:
- 2018-09-05T16:21:46+02:00 (6 years ago)
- Location:
- utils/tools_AGRIF_CMEMS_2020/NESTING_AGRIF
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
utils/tools_AGRIF_CMEMS_2020/NESTING_AGRIF/MODEL.CPP
r10086 r10091 1 #define key_agrif -
utils/tools_AGRIF_CMEMS_2020/NESTING_AGRIF/Makefile
r10086 r10091 17 17 FILES=src/* 18 18 OBJS=$(addsuffix .o,$(addprefix $(DIR_OBJS)/,$(FILENAMES))) 19 OBJS := $(filter-out obj/agrif2model.o, $(OBJS)) 20 19 21 PROG=create_coordinate 20 22 … … 28 30 29 31 create_coordinate: $(DIR_LIB)/libnesting.a $(DIR_PPSRC)/create_coordinate.f90 30 $(FC) $(LINKFLAGS) $(FFLAGS) -o create_coordinate $(DIR_PPSRC_2)/create_coordinate.f90 $(DIR_LIB)/libnesting.a $(LIBS) -I$(DIR_OBJS) $(FFLAGS_SPEC) -I../../ext/AGRIF32 $(FC) $(LINKFLAGS) $(FFLAGS) -o create_coordinate -L$(DIR_LIB) -lnesting $(LIBS) -I$(DIR_OBJS) $(FFLAGS_SPEC) -I../../ext/AGRIF -L../../ext/AGRIF -lagrif 31 33 32 34 prepagrif: … … 47 49 48 50 conv: 49 gmake-C ../../ext/AGRIF/LIB51 $(MAKE) -C ../../ext/AGRIF/LIB 50 52 51 53 AGRIF_LIB: 52 gmake-C ../../ext/AGRIF FC=$(FC) CPP=$(CPP) FFLAGS="$(FFLAGS)"54 $(MAKE) -C ../../ext/AGRIF FC=$(FC) CPP=$(CPP) FFLAGS="$(FFLAGS)" 53 55 54 $(DIR_LIB)/libnesting.a: $(OBJS) 56 $(DIR_LIB)/libnesting.a: $(OBJS) $(DIR_OBJS)/agrif2model.o 55 57 @echo 56 58 @echo =================================================== 57 59 @echo Compile Nesting library... 58 60 @echo =================================================== 59 $(AR) -r $@ $(OBJS) 61 $(AR) -r $@ $(OBJS) $(DIR_OBJS)/agrif2model.o 60 62 ranlib $@ 61 63 @echo 62 64 63 65 66 $(DIR_OBJS)/agrif2model.o: $(DIR_FILES)/agrif2model.F90 Makefile MODEL.CPP 67 $(CPP) -I$(DIR_PPSRC)/AGRIF_INC -include MODEL.CPP $(CPPFLAGS) $(DIR_FILES)/$(*F).F90 > $(DIR_PPSRC_2)/$(*F).f90 68 $(FC) $(FFLAGS) -c $(DIR_PPSRC_2)/$(*F).f90 -o $(DIR_OBJS)/$(*F).o -I../../ext/AGRIF -I$(DIR_OBJS) 64 69 65 70 $(DIR_OBJS)/%.o: $(DIR_FILES)/%.F90 Makefile MODEL.CPP … … 68 73 -comdirin ./ -comdirout AGRIF_MODELFILES/. -convfile $(*F).f90) 69 74 $(CPP) -I$(DIR_PPSRC)/AGRIF_INC -include MODEL.CPP $(CPPFLAGS) $(DIR_PPSRC)/AGRIF_MODELFILES/$(*F).f90 >$(DIR_PPSRC_2)/$(*F).f90 70 $(FC) $(FFLAGS) -c $(DIR_PPSRC_2)/$(*F).f90 -o $(DIR_OBJS)/$(*F).o -I../../ext/AGRIF -I$(DIR_OBJS) $(FFLAGS_SPEC)75 $(FC) $(FFLAGS) -c $(DIR_PPSRC_2)/$(*F).f90 -o $(DIR_OBJS)/$(*F).o -I../../ext/AGRIF -I$(DIR_OBJS) -J$(DIR_OBJS) 71 76 72 77 $(DIR_OBJS)/%.o: $(DIR_FILES)/%.f90 Makefile MODEL.CPP … … 75 80 -comdirin ./ -comdirout AGRIF_MODELFILES/. -convfile $(*F).f90) 76 81 $(CPP) -I$(DIR_PPSRC)/AGRIF_INC -include MODEL.CPP $(CPPFLAGS) $(DIR_PPSRC)/AGRIF_MODELFILES/$(*F).f90 >$(DIR_PPSRC_2)/$(*F).f90 77 $(FC) $(FFLAGS) -c $(DIR_PPSRC_2)/$(*F).f90 -o $(DIR_OBJS)/$(*F).o -I../../ext/AGRIF -I$(DIR_OBJS) $(FFLAGS_SPEC)82 $(FC) $(FFLAGS) -c $(DIR_PPSRC_2)/$(*F).f90 -o $(DIR_OBJS)/$(*F).o -I../../ext/AGRIF -I$(DIR_OBJS) -J$(DIR_OBJS) 78 83 79 84 #$(DIR_OBJS)/%.o: $(DIR_FILES)/%.F Makefile MODEL.CPP … … 118 123 @echo =================================================== 119 124 $(RM) -rf $(DIR_PPSRC) $(DIR_PPSRC_2) $(DIR_LIB) $(DIR_OBJS) $(PROGS) 125 126 cleangrif: 127 @echo 128 @echo =================================================== 129 @echo Clean agrif and conv ... 130 @echo =================================================== 131 $(MAKE) clean -C ../../ext/AGRIF/LIB 132 $(MAKE) clean -C ../../ext/AGRIF 133 134 cleanall: clean cleangrif 120 135 121 136 # DO NOT DELETE THIS LINE - used by make depend
Note: See TracChangeset
for help on using the changeset viewer.