Changeset 65
- Timestamp:
- 07/16/04 15:30:44 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/Makefile
r61 r65 1 TARGET 1 TARGET := ../lib/atnf_sd.so 2 2 3 CXX = g++-3.2.3 4 CXXFLAGS = -fPIC -w -g -fpermissive -O2 3 CXX := g++-3.2.3 4 CXXFLAGS := -O -fPIC 5 CXXFLAGS += -w -fpermissive # This should be removed. 6 #CXXFLAGS += -ansi 7 #CXXFLAGS += -pedantic -Wno-long-long 8 #CXXFLAGS += -Wall -Wno-parentheses 5 9 6 AIPSROOT = $(word 1, $(AIPSPATH)) 10 AIPSROOT := $(word 1, $(AIPSPATH)) 11 AIPSINC := -I$(AIPSROOT)/code/include 12 AIPSLIB := $(AIPSROOT)/linux_gnu/lib 13 AIPSPPLIB := $(AIPSLIB)/version.o \ 14 -L$(AIPSLIB) -latnf -ltrial -laips -laips_f -lmir -lwcs \ 15 -lrpfits -lcfitsio -llapack -lblas -lg2c 7 16 8 AIPSINC = -I$(AIPSROOT)/code/include \ 9 -I$(AIPSROOT)/code/atnf \ 10 -I$(AIPSROOT)/code/trial \ 11 -I$(AIPSROOT)/code/aips 17 LD := g++-3.2.3 18 LDFLAGS := -shared -Wl,--soname=$(TARGET) 19 LDFLAGS += -s 12 20 13 AIPSLIB = $(AIPSROOT)/linux_gnu/lib 14 AIPSPPLIB = -L$(AIPSLIB) \ 15 $(AIPSLIB)/version.o \ 16 $(AIPSLIB)/libatnf.a \ 17 $(AIPSLIB)/libtrial.a \ 18 $(AIPSLIB)/libaips_f.a \ 19 $(AIPSLIB)/libaips.a \ 20 $(AIPSLIB)/libwcs.a \ 21 $(AIPSLIB)/libglish.a \ 22 $(AIPSLIB)/libedit.a \ 23 $(AIPSLIB)/libsos.a \ 24 $(AIPSLIB)/libnpd.a \ 25 -llapack -lblas -lg2c -lcfitsio -lrpfits 26 # -lglish -ledit -lsos -lnpd 21 BOOSTLIB := /nfs/atapplic/boost/linux/lib/libboost_python-gcc-mt.a 22 BOOSTINC := 27 23 28 LINK = g++-3.2.3 29 LFLAGS = -shared -Wl,-soname,$(TARGET) 30 #-rpath,/home/mar637/lib 31 #LFLAGS += -Xlinker -rpath -Xlinker -L$(AIPSLIB) 24 PYTHONINC := -I/usr/include/python2.2 25 PYTHONLIB := -lpython2.2 32 26 33 BOOSTLIB = /nfs/atapplic/boost/linux/lib/libboost_python-gcc-mt.a 34 BOOSTINC = 27 CFITSIOINC := -I/usr/local/include/cfitsio 35 28 36 PYTHONINC = -I/usr/include/python2.2 37 PYTHONLIB = -lpython2.2 29 INCDIRS := -I. $(AIPSINC) $(BOOSTINC) $(PYTHONINC) $(CFITSIOINC) 30 LIBS := $(BOOSTLIB) $(PYTHONLIB) $(AIPSPPLIB) 38 31 39 CFITSIOINC = -I/usr/local/include/cfitsio 40 41 INCDIRS = -I. $(AIPSINC) $(BOOSTINC) $(PYTHONINC) $(CFITSIOINC) 42 LIBDIRS = $(BOOSTLIB) $(PYTHONLIB) $(AIPSPPLIB) 43 44 OBJECTS = MathUtils.o \ 45 SDContainer.o \ 46 SDMemTable.o \ 47 SDReader.o \ 48 SDWriter.o \ 49 SDMath.o \ 50 SDTemplates.o \ 51 python_SDMemTable.o \ 52 python_SDReader.o \ 53 python_SDWriter.o \ 54 python_SDMath.o \ 55 python_SD.o 32 OBJECTS := MathUtils.o \ 33 SDContainer.o \ 34 SDMemTable.o \ 35 SDReader.o \ 36 SDWriter.o \ 37 SDMath.o \ 38 SDTemplates.o \ 39 python_SDMemTable.o \ 40 python_SDReader.o \ 41 python_SDWriter.o \ 42 python_SDMath.o \ 43 python_SD.o 56 44 57 45 58 HEADERS = SDContainer.h \59 SDMemTable.h \60 SDReader.h \61 SDWriter.h \62 SDMath.h \63 SDMemTableWrapper.h \64 SDMathWrapper.h \65 SDReaderWrapper.h \66 SDWriterWrapper.h \67 python_SD.h46 HEADERS := SDContainer.h \ 47 SDMemTable.h \ 48 SDReader.h \ 49 SDWriter.h \ 50 SDMath.h \ 51 SDMemTableWrapper.h \ 52 SDMathWrapper.h \ 53 SDReaderWrapper.h \ 54 SDWriterWrapper.h \ 55 python_SD.h 68 56 69 57 .SUFFIXES: .c .o .cpp .cc .cxx .C 70 58 71 59 .cpp.o: 72 $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $< 60 -@ echo 61 $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $< 73 62 74 63 .cc.o: 75 $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $< 64 -@ echo 65 $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $< 76 66 77 .cxx.o: 78 $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $< 67 .cxx.o: 68 -@ echo 69 $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $< 79 70 80 71 .C.o: 81 $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $< 72 -@ echo 73 $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $< 82 74 83 $(TARGET): $(OBJECTS)84 $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(LIBDIRS)85 strip $(TARGET)86 75 87 $(OBJECTS): $(HEADERS) 76 .PHONY : all clean objects realclean relink 88 77 89 clean: 78 all : $(TARGET) 79 80 relink : cleanso $(TARGET) 81 82 objects : $(OBJECTS) 83 84 $(TARGET) : $(OBJECTS) 85 -@ echo 86 $(LD) $(LDFLAGS) -o $(TARGET) $(OBJECTS) $(LIBS) 87 88 $(OBJECTS) : $(HEADERS) 89 90 clean : 90 91 -rm -f $(OBJECTS) 91 92 92 realclean: clean 93 cleanso : 93 94 -rm -f $(TARGET) 95 96 realclean : clean cleanso
Note:
See TracChangeset
for help on using the changeset viewer.