# Makefile for Fortran QuikSCAT HDF readers # csh - 10/13/98 # # HDF libraries used to link the sample program HDFDIR= /usr/local/hdf HDFINC = $(HDFDIR)/include LDFLAGS = -L$(HDFDIR)/lib -lmfhdf -ldf -ljpeg -lz #****************************************************************** # Uncomment next 4 lines if using SUN solaris machine #****************************************************************** #MACHINE = SUN #SYS_DEF = -lm -lnsl #F77 = f77 #FFLAGS = -w -e -cg92 -Nl99 -I$(HDFINC) #****************************************************************** # Uncomment next 4 lines if using Intel x86 Linux machine & g77 #****************************************************************** #MACHINE = i586 #SYS_DEF = -lm #F77 = g77 #FFLAGS = -ffixed-line-length-132 -O2 -I$(HDFINC) #****************************************************************** # Uncomment next 4 lines if using SUN OS #****************************************************************** # MACHINE = SUN # SYS_DEF = -lm # F77 = f77 # FFLAGS = -w -I$(HDFINC) #****************************************************************** # Uncomment next 3 lines if using SGI machine #****************************************************************** MACHINE = IRIX SYS_DEF = -lm F77 = f77 FFLAGS = -w -n32 -I$(HDFINC) .KEEP_STATE: read_sws2a: read_sws2a.o $(F77) read_sws2a.o $(FFLAGS) $(LDFLAGS) $(SYS_DEF) -o $@ read_sws2a.o: read_sws2a.f $(F77) -c $(FFLAGS) read_sws2a.f clean: rm -f *.o