SHELL=/bin/sh # SRCS= multiwavesteepgrb2.f OBJS= multiwavesteepgrb2.o LSTS= multiwavesteepgrb2.lst # Tunable parameters # # FC Name of the fortran compiling system to use # LDFLAGS Flags to the loader # LIBS List of libraries # CMD Name of the executable # PROFLIB Library needed for profiling # #----- used with XLF on AIX --- FC = ifort FFLAGS = -O -xHost -list -auto -I $(INC) #----- used with G95 on Linux --- #FC = g95 #FFLAGS = $(INC) #-------------------------------- #LDFLAGS = -p -bnoquiet -bloadmap:mug #LDFLAGS = -pg LDFLAGS = INC = /nwprod/lib/incmod/g2_v1.4.0_4 LIBS = -L/nwprod/lib -lg2_v1.4.0_4 -lw3nco_v2.0.3_4 -lbacio_v2.0.1_4\ -ljasper -lpng -lz CMD = multiwavesteepgrb2 #PROFLIB = -lprof # Lines from here on down should not need to be changed. They are the # actual rules which make uses to build a.out. # all: $(CMD) $(CMD): $(OBJS) $(FC) $(LDFLAGS) -o $(@) $(OBJS) $(LIBS) multiwavesteepgrb2.o: multiwavesteepgrb2.f $(FC) -c $(FFLAGS) multiwavesteepgrb2.f # Make the profiled version of the command and call it a.out.prof # $(CMD).prof: $(OBJS) $(FC) $(LDFLAGS) -o $(@) $(OBJS) $(PROFLIB) $(LIBS) clean: -rm -f $(OBJS) $(LSTS) xref.db clobber: clean -rm -f $(CMD) $(CMD).prof void: clobber -rm -f $(SRCS) makefile install: mv $(CMD) ../../exec