# # POM makefile # include ../../configure.pom #----------------------------------------------------------------------- # Settings that depend on the system and the compiler #----------------------------------------------------------------------- # Set macros # Set libraries and include files NETCDFINC = -I$(PNETCDF)/include NETCDFLIB = -L$(PNETCDF)/lib LIBS = $(NETCDFLIB) -lpnetcdf #----------------------------------------------------------------------- # Set the executable #----------------------------------------------------------------------- BIN = ../../ocean_exec/hwrf_ocean_init.exe #----------------------------------------------------------------------- # Define source directory #----------------------------------------------------------------------- SRCDIR = . #----------------------------------------------------------------------- # Define objects #----------------------------------------------------------------------- OBJS = setvars.o \ linear.o \ parallel_mpi.o \ io_pnetcdf.o \ hurricane_wind.o \ solver.o \ bounds_forcing.o \ advance.o \ initialize.o \ pom.o \ smoothing.o \ geovel.o \ calcpwave.o #----------------------------------------------------------------------- # Set implicit rules for compilation #----------------------------------------------------------------------- .f90.o: @echo $(DM_FC) -c $(FFLAGS_MPI_POM) $(NETCDFINC) $< #----------------------------------------------------------------------- # Set implicit rules for compilation #----------------------------------------------------------------------- .f.o: @echo $(DM_FC) -c $(FFLAGS_MPI_POM) $(NETCDFINC) $< #----------------------------------------------------------------------- # Set implicit rules for dependencies #----------------------------------------------------------------------- .F.o: @echo $(DM_FC) -c $(FFLAGS_MPI_POM) $(NETCDFINC) $< #----------------------------------------------------------------------- # Create the executable #----------------------------------------------------------------------- $(BIN): $(OBJS) @echo $(DM_FC) $(LDFLAGS) $(FFLAGS_MPI_POM) $(NETCDFINC) -o $(BIN) $(OBJS) $(LIBS) #----------------------------------------------------------------------- # Cleaning target #----------------------------------------------------------------------- clean: @rm -f *.o *.mod