# # generic makefile for C programs/library # written by R. Chen May 2002 JPL PO.DAAC # # Change "HDF" to match the location of the HDF library on your system HDF=/usr/local/hdf EXES = read_sws2A read_sws2Aez read_sws_info CC = cc CFLAGS = -g -c -I$(HDF)/include LD = cc # "-lrpcsvc" may or may not be needed with your version of HDF. LDFLAGS= -g -lnsl -lrpcsvc -L$(HDF)/lib -lmfhdf -ldf -ljpeg -lz all : $(EXES) read_sws2A : read_sws2A.o hdfPodaac.o $(LD) -oread_sws2A read_sws2A.o hdfPodaac.o $(LDFLAGS) read_sws2A.o : read_sws2A.c hdfPodaac.h $(CC) $(CFLAGS) read_sws2A.c hdfPodaac.o : hdfPodaac.c hdfPodaac.h $(CC) $(CFLAGS) hdfPodaac.c read_sws2Aez : read_sws2Aez.o $(LD) -oread_sws2Aez read_sws2Aez.o $(LDFLAGS) read_sws2Aez.o : read_sws2Aez.c $(CC) $(CFLAGS) read_sws2Aez.c read_sws_info : read_sws_info.o $(LD) -oread_sws_info read_sws_info.o $(LDFLAGS) read_sws_info.o : read_sws_info.c $(CC) $(CFLAGS) read_sws_info.c clean : rm -f $(EXES) *.o core