TARGET := ../lib/_asap.so ifdef NARRABRI_ASAP CXX := /usr/bin/g++ else CXX := g++-3.2.3 endif CXXFLAGS := -O -fPIC #CXXFLAGS += -ansi CXXFLAGS += -pedantic -Wno-long-long #CXXFLAGS += -Wall -Wno-parentheses CFITSIOLIB := /usr/local/lib/libcfitsio_lfs.a #-lcfitsio CFITSIOINC := -I/usr/local/include/cfitsio CASAROOT := $(word 1, $(AIPSPATH)) CASAINC := -I$(CASAROOT)/code/include CASALIB := $(CASAROOT)/linux_gnu/lib CASAPPLIB := $(CASALIB)/version.o \ -L$(CASALIB) \ -latnf -limages -lms -lcomponents -lcoordinates \ -llattices -lfits -lmeasures -lmeasures_f \ -ltables -lscimath -lscimath_f -lcasa \ $(CASALIB)/libwcs.a -lmir \ -lrpfits $(CFITSIOLIB) -llapack -lblas -lg2c LD := g++-3.2.3 LDFLAGS := -shared -Wl,--soname=$(TARGET) LDFLAGS += -s BOOSTLIB := /nfs/atapplic/boost/linux/lib/libboost_python2.3-gcc-mt.a BOOSTINC := -I/usr/local/include/boost PYTHONINC := -I/usr/local/include/python2.3 PYTHONLIB := -lpython2.3 INCDIRS := -I. $(CASAINC) $(BOOSTINC) $(PYTHONINC) $(CFITSIOINC) LIBS := $(BOOSTLIB) $(PYTHONLIB) $(CASAPPLIB) OBJECTS := MathUtils.o \ MathUtils2.o \ SDAttr.o \ SDContainer.o \ SDMemTable.o \ SDReader.o \ SDWriter.o \ SDMath.o \ SDFitter.o \ SDTemplates.o \ SDMathWrapper.o \ SDFITSImageWriter.o \ SDAsciiWriter.o \ SDLineFinder.o \ python_SDMemTable.o \ python_SDReader.o \ python_SDWriter.o \ python_SDMath.o \ python_SDFitter.o \ python_SDLineFinder.o \ python_SD.o HEADERS := SDDefs.h \ SDAttr.h \ SDContainer.h \ SDMemTable.h \ SDReader.h \ SDWriter.h \ SDMath.h \ SDFitter.h \ SDMemTableWrapper.h \ SDMathWrapper.h \ SDReaderWrapper.h \ SDWriterWrapper.h \ SDFITSImageWriter.h \ SDAsciiWriter.h \ SDLineFinder.h \ python_SD.h .SUFFIXES: .c .o .cpp .cc .cxx .C .cpp.o: -@ echo $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $< .cc.o: -@ echo $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $< .cxx.o: -@ echo $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $< .C.o: -@ echo $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $< .PHONY : all clean objects realclean relink all : $(TARGET) relink : cleanso $(TARGET) objects : $(OBJECTS) $(TARGET) : $(OBJECTS) -@ echo $(LD) $(LDFLAGS) -o $(TARGET) $(OBJECTS) $(LIBS) $(OBJECTS) : $(HEADERS) clean : -rm -f $(OBJECTS) cleanso : -rm -f $(TARGET) realclean : clean cleanso