######################################################################## # Generic Makefile for RNPL 'f77' application. # # Requires following environment variables to be set to appropriate # values: # # RNPL_RNPL # RNPL_RNPL_FLAGS # RNPL_F77 # RNPL_F77LOAD # RNPL_F77PP # RNPL_FLIBS # ######################################################################## .IGNORE: ######################################################################## # NOTE: This Makefile uses the Bourne shell, 'sh' ######################################################################## SHELL = /bin/sh ######################################################################## # Set 'APP' to application name stem (prefix) then execute # 'make fix' to convert Makefile to use explicit targets ######################################################################## APP = emkgcn ######################################################################## # If your application uses headers and/or libraries from # non-system locations, define the following macros appropriately ... # (set to white-space separated path names, don't use 'csh' ~ notation # for home directories) ######################################################################## USER_INC_PATHS = USER_LIB_PATHS = ######################################################################## # If you want to set non-default flags for the 'f77' compiler, do so # here ######################################################################## RNPL = $(RNPL_RNPL) F77 = $(RNPL_F77) F77_LOAD = $(RNPL_F77LOAD) F77PP = $(RNPL_F77PP) FLIBS = $(RNPL_FLIBS) .f.o: $(F77) -c $*.f all: emkgcn emkgcn_init fix: Makefile sed "s@emkgcn@emkgcn@g" < Makefile > .Makefile mv .Makefile Makefile INCS = calc_al.inc init_al.inc emkgcn.f: emkgcn_rnpl $(INCS) $(RNPL) -l allf emkgcn_rnpl updates.f: emkgcn_rnpl residuals.f: emkgcn_rnpl initializers.f: emkgcn_rnpl emkgcn_init.f: emkgcn_rnpl emkgcn_init: emkgcn_init.o updates.o initializers.o residuals.o $(F77_LOAD) emkgcn_init.o updates.o residuals.o initializers.o $(FLIBS) -o emkgcn_init emkgcn: emkgcn.o updates.o residuals.o $(F77_LOAD) emkgcn.o updates.o residuals.o $(FLIBS) -o emkgcn clean: rm *.hdf *.sdf .rn* emkgcn emkgcn_init > /dev/null 2>&1 rm *.o > /dev/null 2>&1 rm residuals.f updates.f initializers.f emkgcn.f emkgcn_init.f > /dev/null 2>&1 rm gfuni0.inc globals.inc other_glbs.inc sys_param.inc > /dev/null 2>&1