UNAMES = $(shell uname -s) UNAMEM = $(findstring CRAY,$(shell uname -m)) # #---------------------------------------------------------------------- # SGI O2K running IRIX64: # ifeq ($(UNAMES),IRIX64) EXEC = mksrc FC = f90 FFLAGS = -mips4 -r10000 -O3 -r8 -xdir,mic -DIRIX -DMSS -I/usr/local/include LIBS = \ -L /usr/local/lib32/r4i4 -lnetcdf \ -L /usr/local/dcs-3.3/lib -ldcs LDFLAGS = -v endif #---------------------------------------------------------------------- # IBM SP: AIX # ifeq ($(UNAMES),AIX) EXEC = mksrc FC = xlf90 FFLAGS= -qfixed -qarch=pwr3 -qtune=pwr3 -qrealsize=8 -O3 -qstrict \ -WF,-DAIX,-DMSS -I/usr/local/include LIBS = -L /usr/local/lib64/r4i4 -lnetcdf -lmss # - - - - - - - - - - - - - - - - - # #LDFLAGS = -bloadmap:loadmap # 8/27/04 btf: The -bmaxdata flag is necessary for creating timegcm # histories at double horizontal *and* double vertical resolution. LDFLAGS = -bloadmap:loadmap -bmaxdata:0X70000000 endif #---------------------------------------------------------------------- # Sun: # ifeq ($(UNAMES),SunOS) #SunOS_begin # For hao Sun: # EXEC = mksrc FC = /opt/SUNWspro/bin/f90 FFLAGS = -I/opt/share/PUBLIC/include -xpp=cpp -DSUN -DMSS \ -xtypemap=real:64 -O LIBS = -L/opt/share/PUBLIC/lib.SunOS -lnetcdf3 -L/opt/local/lib -ldcs #SunOS_end endif #---------------------------------------------------------------------- #EXEC_begin # include Objects #OBJS = $(FSRCS:.f=.o) $(FSRCS:.F=.o) .SUFFIXES: .F $(EXEC): $(OBJS) $(FC) -o $@ $(OBJS) $(LDFLAGS) $(LIBS) include Depends .f.o: $(FC) -c $(FFLAGS) $< .F.o: $(FC) -c $(FFLAGS) $< RM := rm clean: $(RM) -f Depends Srcfiles *.o *.mod $(EXEC) #EXEC_end