Changeset 1905 for trunk/external/libpyrap/Makefile
- Timestamp:
- 08/26/10 18:15:26 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/external/libpyrap/Makefile
r1900 r1905 17 17 CASAARCH := $(word 2, $(CASAPATH)) 18 18 19 TARGET := libpyrap.so 20 TESTMOD := $(TESTDIR)/_tConvert.so 19 ifeq ($(shell uname), Darwin) 20 TARGET := libpyrap.dylib 21 TESTMOD := $(TESTDIR)/_tConvert.so 22 else 23 TARGET := libpyrap.so 24 TESTMOD := $(TESTDIR)/_tConvert.so 25 endif 21 26 INSTDIR := $(CASAROOT)/$(CASAARCH)/lib 22 27 … … 36 41 PYTHONROOT := $(shell $(shell make -s -f $(CASAROOT)/$(CASAARCH)/makedefs VARS=PYTHONROOT eval_vars) && echo $$PYTHONROOT) 37 42 PYTHONINCD := $(PYTHONROOT)/include/python2.5 43 PYTHONLIBD := $(shell $(shell make -s -f $(CASAROOT)/$(CASAARCH)/makedefs VARS=PYTHONLIBD eval_vars) && echo $$PYTHONLIBD) 44 PYTHONLIB := $(shell $(shell make -s -f $(CASAROOT)/$(CASAARCH)/makedefs VARS=PYTHONLIB eval_vars) && echo $$PYTHONLIB) 38 45 39 46 # numpy (use numpy in CASA) 40 PYTHONLIBD := $(shell $(shell make -s -f $(CASAROOT)/$(CASAARCH)/makedefs VARS=PYTHONLIBD eval_vars) && echo $$PYTHONLIBD)41 47 NUMPYROOT := $(PYTHONLIBD)/python2.5/site-packages/numpy 42 48 NUMPYINCD := $(NUMPYROOT)/core/include 43 NUMPYLIBD := $(NUMPYROOT)/core44 NUMPYLIB := $(NUMPYLIBD)/multiarray.so45 49 46 50 # the compiler … … 53 57 54 58 # compiler flags 55 CXXFLAGS := -fPIC -O3 -g 56 CXXFLAGS += -ansi -Wno-long-long -Wall 57 CXXOPTS := -DAIPS_64B -DAIPS_USENUMPY 59 #CXXFLAGS := -fPIC -O3 -g 60 #CXXFLAGS += -ansi -Wno-long-long -Wall 61 CXXFLAGS := $(shell $(shell make -s -f $(CASAROOT)/$(CASAARCH)/makedefs VARS=CXXFLAGS eval_vars) && echo $$CXXFLAGS) 62 CXXFLAGS += -fPIC -O3 63 CXXOPTS := $(shell $(shell make -s -f $(CASAROOT)/$(CASAARCH)/makedefs VARS=COPTFLAGS eval_vars) && echo $$COPTFLAGS) 64 CXXOPTS += -DAIPS_USENUMPY 58 65 59 66 # links to external libraries 60 LIBS := $(CORELIB) $(BOOSTLIB) $( NUMPYLIB)67 LIBS := $(CORELIB) $(BOOSTLIB) $(PYTHONLIB) 61 68 62 69 # include directories … … 108 115 test: 109 116 $(CXX) $(CXXOPTS) -c $(CXXFLAGS) $(INCDIRS) -o $(TESTOBJ) $(TESTSRC) 110 $(LD) $(LDFLAGS) -o $(TESTMOD) $(TESTOBJ) $(LIBS) -L$( INSTDIR) -lpyrap117 $(LD) $(LDFLAGS) -o $(TESTMOD) $(TESTOBJ) $(LIBS) -L$(EXTDIR) -lpyrap
Note:
See TracChangeset
for help on using the changeset viewer.