# The command line switches were taken using mkoctfile -v # after removing the -W switches, because mkoctfile with -W # was throwing pages of warnings. all: load_hdf.oct load_hdf.o: load_hdf.cc g++ -c -fPIC -I$(OCTAVEINC) \ -I$(OCTAVEINC)/octave \ -I$(HDF)/include \ -I.. \ -mieee-fp -g -O2 load_hdf.cc -o load_hdf.o load_hdf.oct: load_hdf.o g++ -shared -o load_hdf.oct \ ../read_hdf_sd.o load_hdf.o \ -L$(HDF)/lib -lmfhdf -ldf \ -L$(JPEG)/lib -ljpeg -lz clean: - rm -f *.o *~ distclean: clean - rm -f load_hdf.oct