# # 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_sws2B read_sws2Bez read_sws_info CC = cc CFLAGS = -c -I$(HDF)/include LD = cc # "-lrpcsvc" may or may not be needed with your version of HDF. LDFLAGS= -lnsl -lrpcsvc -L$(HDF)/lib -lmfhdf -ldf -ljpeg -lz all : $(EXES) read_sws2B : read_sws2B.o hdfPodaac.o $(LD) -oread_sws2B read_sws2B.o hdfPodaac.o $(LDFLAGS) read_sws2B.o : read_sws2B.c hdfPodaac.h $(CC) $(CFLAGS) read_sws2B.c hdfPodaac.o : hdfPodaac.c hdfPodaac.h $(CC) $(CFLAGS) hdfPodaac.c read_sws2Bez : read_sws2Bez.o $(LD) -oread_sws2Bez read_sws2Bez.o $(LDFLAGS) read_sws2Bez.o : read_sws2Bez.c $(CC) $(CFLAGS) read_sws2Bez.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