- Timestamp:
- 08/29/06 10:26:13 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/Makefile
r997 r1198 1 TARGET := /tmp/_asap.so1 TARGET := _asap.so 2 2 3 3 # the casa environment AIPSPATH has to be defined … … 15 15 # compiler flags 16 16 CXXFLAGS := -fPIC -O3 17 CXXFLAGS += -ansi - pedantic -Wno-long-long -Wall17 CXXFLAGS += -ansi -Wno-long-long -Wall 18 18 CXXOPTS := -DAIPS_NO_TEMPLATE_SRC 19 19 20 20 # darwin specific flags 21 21 ifeq "$(CASAARCH)" "darwin" 22 CXXFLAGS := -O2 -DAIPS_DARWIN 23 CXXFLAGS += -ansi -pedantic -Wno-long-long -Wno-long-double 24 endif 25 22 CXXFLAGS +=-DAIPS_DARWIN 23 CXXFLAGS += -Wno-long-double 24 endif 26 25 27 26 # cfitsio 28 CFITSIOROOT := /usr /local29 # If aips++ is build with LFS you need to have27 CFITSIOROOT := /usr 28 # If aips++ is build with LFS (default) you need to have 30 29 # libcfitsio with lfs support 30 # this is default in cfitsio >= 3.0 31 31 CFITSIOINC := -I$(CFITSIOROOT)/include 32 CFITSIOLIB := $(CFITSIOROOT)/lib/libcfitsio_lfs.a 33 #CFITSIOLIB := -L$(CFITSIOROOT) -lcfitsio 32 CFITSIOLIB := -L$(CFITSIOROOT) -lcfitsio 34 33 35 34 #rpfits 36 35 RPFITSROOT := /usr/local 37 36 RPFITSLIB := $(RPFITSROOT)/lib/librpfits.a 37 38 G2CROOT := /usr 39 G2CLIB := $(G2CROOT)/lib -lg2c 38 40 39 41 # This assumes all casa libs are static only (*.a) … … 45 47 -ltables -lscimath -lscimath_f -lcasa \ 46 48 $(CASALIB)/libwcs.a \ 47 $(RPFITSLIB) $(CFITSIOLIB) -lg2c-lstdc++49 $(RPFITSLIB) $(CFITSIOLIB) $(G2CLIB) -lstdc++ 48 50 49 51 # darwin specific CASA flags … … 59 61 LDFLAGS := -shared -Wl$(TARGET) -s 60 62 ifeq "$(CASAARCH)" "darwin" 61 LDFLAGS := - dynamiclib -single_module62 endif 63 64 # python only 2.3 has been tested63 LDFLAGS := -bundle 64 endif 65 66 # python 65 67 PYVERSION := 2.3 66 68 PYTHONROOT := /usr … … 68 70 PYTHONLIB := -L$(PYTHONROOT)/lib -lpython$(PYVERSION) 69 71 72 # use python universal build 73 ifeq "$(CASAARCH)" "darwin" 74 PYVERSION := 2.4 75 PYTHONROOT := /Library/Frameworks/Python.framework/Versions/$(PYVERSION) 76 PYTHONINC := -I$(PYTHONROOT)/include/python$(PYVERSION) 77 PYTHONLIB := -L$(PYTHONROOT)/lib -framework Python 78 endif 79 70 80 # has to be build with same g++ version as casa 71 81 BOOSTROOT := /usr … … 79 89 80 90 CCOBJECTS := MathUtils.o \ 81 91 MathUtils2.o \ 82 92 RowAccumulator.o \ 83 93 Logger.o \
Note:
See TracChangeset
for help on using the changeset viewer.