# # Config file for Sun f90 on Solaris # .SUFFIXES: .o .f .F .F.o: $(CPP) < $< > $*.f $(CFT) -c $(FFLAGS) $*.f .F.f: $(CPP) < $< > $*.f .f.o: $(CFT) -c $(FFLAGS) $< .F: $(CPP) < $< > $*.f $(CFT) -o $@ $(FFLAGS) $(LDFLAGS) $*.f .f: $(CFT) -o $@ $(FFLAGS) $(LDFLAGS) $< # CFT Name of the fortran compiler to use # CPPFLAGS Extra flags for the C preprocessor # CPP Name of the C preprocessor # FFLAGS Flags to the fortran compiler # LDR Program to load the objects into an executable # LDFLAGS Flags to the loader # RANLIB Name of ranlib command (SysV doesn't have) # MDEPFLAGS Flags for sfmakedepend (-s if you keep .f files) # LIBDIR Directory where libspem.a goes # CDFLIB Name of netCDF library, either -lnetcdf or null # CFT = f90 CPPFLAGS = -I/usr/local/include CPP = /home/kate/bin/cpp -P $(CPPFLAGS) GLDR = ncargf90 LDR = f90 RANLIB = ranlib LDFLAGS = -fnonstd # FFLAGS = -g -cg92 -dalign FFLAGS = -fast -O3 -cg92 -dalign -free # Add -I /usr/local/include for netcdf.inc MDEPFLAGS = -s -I /usr/local/include # # libspem.a contains mud2 and saxpy # LIBDIR = /usr/local/lib LIBSPEM = libspem3_d.a LIBNSPCG = libnspcg_d.a CDFLIB = -L$(LIBDIR) -lnetcdf -lnsl # ------------------------------------------------------------------------- SHELL = /bin/sh CC = cc STD_INCLUDES = StandardIncludes STD_DEFINES = EXTRA_LOAD_FLAGS = ExtraLoadFlags ICONFIGFILES = $(IRULESRC)/Imake.tmpl \ $(IRULESRC)/$(MACROFILE) $(EXTRA_ICONFIGFILES) # ------------------------------------------------------------------------- # start of Imakefile SRCS = add_size.F OBJS = add_size.o LIBS = /usr/local/lib/netcdf.o -L/usr/local/lib -lnetcdf FFLAGS = -O -free -M/usr/local/lib add_size: $(OBJS) $(CFT) -o add_size $(OBJS) $(LIBS) depend: sfmakedepend $(MDEPFLAGS) $(SRCS) # ------------------------------------------------------------------------- # common rules for all Makefiles - do not edit emptyrule:: # ------------------------------------------------------------------------- # empty rules for directories that do not have SUBDIRS - do not edit install:: @echo "install in $(CURRENT_DIR) done" install.man:: @echo "install.man in $(CURRENT_DIR) done" Makefiles:: includes:: # ------------------------------------------------------------------------- # dependencies generated by makedepend # DO NOT DELETE THIS LINE - used by make depend add_size.o: /usr/local/include/netcdf.inc add_size.f: /usr/local/include/netcdf.inc kinds.mod: .//add_size.o