Changeset 655
- Timestamp:
- 06/22/05 16:14:44 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/Makefile
r635 r655 7 7 CXXFLAGS += -pedantic -Wno-long-long 8 8 9 CFITSIOROOT := /usr 10 # If aips++ is build with LFS9 CFITSIOROOT := /usr/local If aips++ is build with LFS you need to have 10 # libcfitsio with lfs support 11 11 # CFITSIOLIB := /usr/local/lib/libcfitsio_lfs.a 12 12 CFITSIOINC := -I$(CFITSIOROOT)/include/cfitsio … … 14 14 15 15 CASAROOT := $(word 1, $(AIPSPATH)) 16 CASAARCH := $(word 2, $(AIPSPATH)) 16 17 CASAINC := -I$(CASAROOT)/code/include 17 CASALIB := $(CASAROOT)/linux_gnu/lib 18 CASALIB := $(CASAROOT)/$(CASAARCH)/lib 19 # This assumes all casa libs are static only (*.a) 20 # if not than there might by symbol resolution errors. 18 21 CASAPPLIB := $(CASALIB)/version.o \ 19 -L$(CASALIB) \22 -L$(CASALIB) -static \ 20 23 -latnf -limages -lms -lcomponents -lcoordinates \ 21 24 -llattices -lfits -lmeasures -lmeasures_f \ 22 -ltables -lscimath -lscimath_f -lcasa \ 23 $(CASALIB)/libwcs.a \ 24 -lrpfits $(CFITSIOLIB) -llapack -lblas -lg2c 25 -ltables -lscimath -lscimath_f -lcasa -lwcs \ 26 -lrpfits $(CFITSIOLIB) -dy -llapack -lblas -lg2c 25 27 26 28 LD := $(CXX) 27 LDFLAGS := -shared -Wl,--soname=$(TARGET) 28 LDFLAGS += -s 29 LDFLAGS := -shared -Wl$(TARGET) -s 30 31 PYVERSION := 2.3 32 PYTHONROOT := /usr 33 PYTHONINC := -I$(PYTHONROOT)/include/python$(PYVERSION) 34 PYTHONLIB := -L$(PYTHONROOT)/lib -lpython$(PYVERSION) 35 29 36 30 37 BOOSTROOT := /usr 31 BOOSTLIB := -L$(BOOSTROOT)/lib -lboost_python 2.338 BOOSTLIB := -L$(BOOSTROOT)/lib -lboost_python$(PYVERSION) 32 39 BOOSTINC := -I$(BOOSTROOT)/include/boost 33 40 34 PYTHONROOT := /usr35 PYTHONINC := -I$(PYTHONROOT)/include/python2.336 PYTHONLIB := -L$(PYTHONROOT)/lib -lpython2.337 41 38 42 INCDIRS := -I. $(CASAINC) $(BOOSTINC) $(PYTHONINC) $(CFITSIOINC) 39 LIBS := $( BOOSTLIB) $(PYTHONLIB) $(CASAPPLIB)43 LIBS := $(PYTHONLIB) $(BOOSTLIB) $(CASAPPLIB) 40 44 41 OBJECTS:= MathUtils.o \45 CCOBJECTS := MathUtils.o \ 42 46 MathUtils2.o \ 43 47 SDAttr.o \ … … 55 59 SDFITSImageWriter.o \ 56 60 SDAsciiWriter.o \ 57 SDLineFinder.o \58 61 SDLineFinder.o 62 PYOBJECTS := python_SDMemTable.o \ 59 63 python_SDReader.o \ 60 64 python_SDWriter.o \ … … 65 69 python_SD.o 66 70 71 OBJECTS := $(CCOBJECTS) $(PYOBJECTS) 67 72 68 73 HEADERS := SDDefs.h \ … … 85 90 python_SD.h 86 91 92 STATICCCLIB := libasap.a 93 MEMBERS := $(patsubst %,$(STATICCCLIB)(%),$(CCOBJECTS)) 87 94 88 95 .SUFFIXES: .c .o .cpp .cc .cxx .C … … 119 126 $(OBJECTS) : $(HEADERS) 120 127 128 staticlib: $(MEMBERS) 129 121 130 clean : 122 131 -rm -f $(OBJECTS)
Note:
See TracChangeset
for help on using the changeset viewer.