Changeset 1608
- Timestamp:
- 07/25/09 06:38:47 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/alma/src/Makefile
r1603 r1608 12 12 CASAROOT := $(word 1, $(CASAPATH)) 13 13 CASAARCH := $(word 2, $(CASAPATH)) 14 CASAINC := -I$(CASAROOT)/code/include -I$(CASAROOT)/$(CASAARCH)/include/casacore -I$(CASAROOT)/$(CASAARCH)/include 14 15 COREINCD := $(shell $(shell make -s -f $(CASAROOT)/$(CASAARCH)/makedefs VARS=COREINCD eval_vars) && echo $$COREINCD) 16 CORELIB := $(shell $(shell make -s -f $(CASAROOT)/$(CASAARCH)/makedefs VARS=CORELIB eval_vars) && echo $$CORELIB) 17 WCSLIBLIBD := $(shell $(shell make -s -f $(CASAROOT)/$(CASAARCH)/makedefs VARS=WCSLIBLIBD eval_vars) && echo $$WCSLIBLIBD) 18 WCSLIBLIB := $(shell $(shell make -s -f $(CASAROOT)/$(CASAARCH)/makedefs VARS=WCSLIBLIB eval_vars) && echo $$WCSLIBLIB) 19 PYTHONLIBD := $(shell $(shell make -s -f $(CASAROOT)/$(CASAARCH)/makedefs VARS=PYTHONLIBD eval_vars) && echo $$PYTHONLIBD) 20 PYTHONINCD := $(shell $(shell make -s -f $(CASAROOT)/$(CASAARCH)/makedefs VARS=PYTHONINCD eval_vars) && echo $$PYTHONINCD) 21 PYTHONLIB := $(shell $(shell make -s -f $(CASAROOT)/$(CASAARCH)/makedefs VARS=PYTHONLIB eval_vars) && echo $$PYTHONLIB) 22 BOOSTROOT := $(shell $(shell make -s -f $(CASAROOT)/$(CASAARCH)/makedefs VARS=BOOSTROOT eval_vars) && echo $$BOOSTROOT) 23 24 CASAINC := -I$(CASAROOT)/code/include -I$(COREINCD) -I$(CASAROOT)/$(CASAARCH)/include 15 25 CASALIB := $(CASAROOT)/$(CASAARCH)/lib 16 26 USELIB := lib 17 27 18 28 # the compiler … … 24 34 CXXFLAGS := -fPIC -O3 -g 25 35 CXXFLAGS += -ansi -Wno-long-long -Wall 26 #CXXOPTS := -DAIPS_NO_TEMPLATE_SRC27 36 28 37 # darwin specific flags … … 35 44 CFITSIOROOT := /usr 36 45 CFITSIOINC := -I$(CFITSIOROOT)/include/cfitsio 37 #CFITSIOLIB := -L$(CFITSIOROOT)/lib -lcfitsio38 46 CFITSIOLIB := -lcfitsio 39 47 40 48 #rpfits 41 49 RPFITSROOT := /usr 42 #RPFITSLIB := $(RPFITSROOT)/lib/librpfits.a43 50 RPFITSLIB := -lrpfits 44 51 45 #wcs46 WCSLIB := -lwcs47 48 52 G2CROOT := /usr 49 #G2CARCH := $(G2CROOT)/lib/gcc/i386-apple-darwin8.7.1/4.2.0/libgcc.a 50 #G2CARCH := $(G2CROOT)/lib/gcc/powerpc-apple-darwin8.7.0/4.2.0/libgcc.a 51 G2CARCH := $(G2CROOT)/lib/gcc/i386-redhat-linux/4.1.2/libgcc.a 52 #G2CLIB := $(G2CROOT)/lib/libgfortran.a 53 G2CLIB := $(G2CARCH) 54 #G2CLIB := -lg2c 53 G2CLIB := -lgfortran 55 54 56 55 # This assumes all casa libs are static only (*.a) 57 56 # if not than there might by symbol resolution errors. 58 CASAPPLIB := -L$(CASALIB) \ 59 -latnf -lcasa_images -lcasa_ms -lcasa_components -lcasa_coordinates \ 60 -lcasa_lattices -lcasa_fits -lcasa_measures -lcasa_measures_f \ 61 -lcasa_tables -lcasa_scimath -lcasa_scimath_f -lcasa_casa \ 62 $(WCSLIB) \ 57 CASAPPLIB := -L$(CASALIB) -latnf $(CORELIB) \ 58 -L$(WCSLIBLIBD) $(WCSLIBLIB) \ 63 59 $(RPFITSLIB) $(CFITSIOLIB) $(G2CLIB) -lstdc++ 64 60 … … 71 67 72 68 # python 73 PYVERSION := 2.5 74 PYTHONROOT := /usr/lib/casapy 75 PYTHONINC := -I$(PYTHONROOT)/include/python$(PYVERSION) 76 PYTHONLIB := -L$(PYTHONROOT)/lib -lpython$(PYVERSION) 69 PYTHONINC := $(addprefix -I,$(PYTHONINCD)) 70 PYTHONLIB := -L$(PYTHONLIBD) $(PYTHONLIB) 77 71 78 72 # use python universal build … … 88 82 89 83 # has to be build with same g++ version as casa 90 #BOOSTROOT := /home/casa/boost91 BOOSTROOT := /usr/lib/casapy92 #BOOSTLIB := -L$(BOOSTROOT)/lib -lboost_python-gcc3493 84 BOOSTLIB := -L$(BOOSTROOT)/lib -lboost_python 94 #BOOSTINC := -I$(BOOSTROOT)/include/boost-1_35 95 BOOSTINC := -I$(BOOSTROOT)/include/boost 85 BOOSTINC := -I$(BOOSTROOT)/include/boost -I$(BOOSTROOT)/include 96 86 97 87 LDFLAGS := -shared -Wl$(TARGET) -s -Xlinker -rpath -Xlinker $(BOOSTROOT)/lib:$(PYTHONROOT)/lib:$(CASALIB)
Note:
See TracChangeset
for help on using the changeset viewer.