Changeset 794 for trunk/src/Makefile
- Timestamp:
- 12/09/05 14:50:59 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/Makefile
r717 r794 1 1 TARGET := /tmp/_asap.so 2 3 4 # the casa environment AIPSPATH has to be defined 5 CASAROOT := $(word 1, $(AIPSPATH)) 6 CASAARCH := $(word 2, $(AIPSPATH)) 7 CASAINC := -I$(CASAROOT)/code/include -I$(CASAROOT)/code/casa 8 CASALIB := $(CASAROOT)/$(CASAARCH)/lib 9 10 11 # the compiler 2 12 ifndef CXX 3 13 CXX := g++ 4 14 endif 15 16 # compiler flags 5 17 CXXFLAGS := -O3 -fPIC 6 CXXFLAGS += -ansi 7 CXXFLAGS += -pedantic -Wno-long-long 18 CXXFLAGS += -ansi -pedantic -Wno-long-long 8 19 CXXOPTS := -DAIPS_NO_TEMPLATE_SRC 9 20 10 CFITSIOROOT := /usr/local If aips++ is build with LFS you need to have 21 # darwin specific flags 22 ifeq "$(CASAARCH)" "darwin" 23 CXXFLAGS := -O2 -DAIPS_DARWIN 24 CXXFLAGS += -ansi -pedantic -Wno-long-long -Wno-long-double 25 endif 26 27 28 # cfitsio 29 CFITSIOROOT := /usr/local 30 # If aips++ is build with LFS you need to have 11 31 # libcfitsio with lfs support 12 CFITSIO LIB := /usr/local/lib/libcfitsio_lfs.a13 #CFITSIOINC := -I$(CFITSIOROOT)/include/cfitsio 32 CFITSIOINC := -I$(CFITSIOROOT)/include 33 CFITSIOLIB := $(CFITSIOROOT)/lib/libcfitsio_lfs.a 14 34 #CFITSIOLIB := -L$(CFITSIOROOT) -lcfitsio 15 35 16 17 CASAROOT := $(word 1, $(AIPSPATH)) 18 CASAARCH := $(word 2, $(AIPSPATH)) 19 CASAINC := -I$(CASAROOT)/code/include -I$(CASAROOT)/code/casa/wcslib 20 CASALIB := $(CASAROOT)/$(CASAARCH)/lib 21 36 #rpfits 37 RPFITSROOT := /usr/local 38 RPFITSLIB := $(RPFITSROOT)/lib/librpfits.a 22 39 23 40 # This assumes all casa libs are static only (*.a) 24 41 # if not than there might by symbol resolution errors. 25 42 CASAPPLIB := $(CASALIB)/version.o \ 26 -L$(CASALIB) -static\43 -L$(CASALIB) \ 27 44 -latnf -limages -lms -lcomponents -lcoordinates \ 28 45 -llattices -lfits -lmeasures -lmeasures_f \ 29 46 -ltables -lscimath -lscimath_f -lcasa \ 30 47 $(CASALIB)/libwcs.a \ 31 -lrpfits $(CFITSIOLIB) -dy -llapack -lblas -lg2c48 $(RPFITSLIB) $(CFITSIOLIB) -lg2c -lstdc++ 32 49 50 # darwin specific CASA flags 51 ifeq "$(CASAARCH)" "darwin" 52 CASAPPLIB += -framework vecLib 53 else 54 CASAPPLIB += -llapack -lblas 55 endif 56 57 # the linker 33 58 LD := $(CXX) 59 34 60 LDFLAGS := -shared -Wl$(TARGET) -s 61 ifeq "$(CASAARCH)" "darwin" 62 LDFLAGS := -dynamiclib -single_module 63 endif 35 64 65 # python only 2.3 has been tested 36 66 PYVERSION := 2.3 37 67 PYTHONROOT := /usr … … 39 69 PYTHONLIB := -L$(PYTHONROOT)/lib -lpython$(PYVERSION) 40 70 41 71 # has to be build with same g++ version as casa 42 72 BOOSTROOT := /usr 43 73 BOOSTLIB := -L$(BOOSTROOT)/lib -lboost_python … … 45 75 46 76 77 # DO NOT MODIFY AFTER THIS 47 78 INCDIRS := -I. $(CASAINC) $(BOOSTINC) $(PYTHONINC) $(CFITSIOINC) 48 79 LIBS := $(PYTHONLIB) $(BOOSTLIB) $(CASAPPLIB)
Note:
See TracChangeset
for help on using the changeset viewer.