SHELL=/bin/sh # SRCS= WGTMKR.f POLATWGT.f makgds.f OBJS= WGTMKR.o POLATWGT.o makgds.o # 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 # FC = ifort -convert big_endian -g -traceback -I${IP_INC4} LDFLAGS = LIBS = ${IP_LIB4} ${W3NCO_LIB4} ${SP_LIB4} CMD = wgtmkr.x PROFLIB = # To perform the default compilation, use the first line # To compile with flowtracing turned on, use the second line # To compile giving profile additonal information, use the third line # WARNING: SIMULTANEOUSLY PROFILING AND FLOWTRACING IS NOT RECOMMENDED FFLAGS = -O2 # Lines from here on down should not need to be changed. They are the # actual rules which make uses to build wgtmkr.x. # all: $(CMD) $(CMD): $(OBJS) $(FC) $(LDFLAGS) -o $(@) $(OBJS) $(LIBS) # Make the profiled version of the command and call it awprgn.xc.prof # $(CMD).prof: $(OBJS) $(FC) $(LDFLAGS) -o $(@) $(OBJS) $(PROFLIB) $(LIBS) clean: -rm -f $(OBJS) *.lst $(CMD) clobber: clean -rm -f $(CMD) $(CMD).prof void: clobber -rm -f $(SRCS) makefile