# # Makefile template for tgcm on Crays: # # Compiler flags: # The -Zu flag activates all CF77 compiling phases except the FPP preprocessor # The -ez flag produces symbol table information for debugging. # # Loading flags: # The -f indef flag fills uninitialized static areas of the program with a # value to cause a floating-point error if referenced. # The -M,s flag produces a statistics only load map file # # Using the TARGET variable reduces link time on the J90-series architectures # EXEDIR = . EXENAME = tgcm.x TGCMLIB = tgcm.a FFLAGS = -m4 -O overindex,nofastint CF = f90 LDFLAGS = -Wl" \ -L /usr/lib,/usr/local/lib,/lib \ -l ncarg,ncarg_gks,ncarg_c,X11,ncarm, \ -l ncaro,mss,alfpack,ecmfft,fitpack,fishpak,fftpack,hpf" RM = rm # C source and object: CSRCS= wrxdrc.c COBJS= $(CSRCS:.c=.o) # All target object files are listed in Objects include Objects .SUFFIXES: .SUFFIXES: .f .o $(EXEDIR)/$(EXENAME): $(COBJS) $(OBJS) $(CF) -o $@ $(COBJS) $(OBJS) $(LDFLAGS) $(TGCMLIB): $(OBJS) bld -r $@ $(OBJS) clean: $(RM) -rf $(OBJS) # All target dependencies are contained in Depends include Depends # Make wrxdrc.o wrxdrc.o: cc -c wrxdrc.c