Changeset 1905 for trunk/external


Ignore:
Timestamp:
08/26/10 18:15:26 (14 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: No

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: do make

Put in Release Notes: Yes/No

Module(s): Module Names change impacts.

Description: Describe your changes here...

Support Mac OS X.
Link libpython2.5.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/external/libpyrap/Makefile

    r1900 r1905  
    1717CASAARCH := $(word 2, $(CASAPATH))
    1818
    19 TARGET := libpyrap.so
    20 TESTMOD := $(TESTDIR)/_tConvert.so
     19ifeq ($(shell uname), Darwin)
     20   TARGET := libpyrap.dylib
     21   TESTMOD := $(TESTDIR)/_tConvert.so
     22else
     23   TARGET := libpyrap.so
     24   TESTMOD := $(TESTDIR)/_tConvert.so
     25endif
    2126INSTDIR := $(CASAROOT)/$(CASAARCH)/lib
    2227
     
    3641PYTHONROOT := $(shell $(shell make -s -f $(CASAROOT)/$(CASAARCH)/makedefs VARS=PYTHONROOT eval_vars) && echo $$PYTHONROOT)
    3742PYTHONINCD := $(PYTHONROOT)/include/python2.5
     43PYTHONLIBD := $(shell $(shell make -s -f $(CASAROOT)/$(CASAARCH)/makedefs VARS=PYTHONLIBD eval_vars) && echo $$PYTHONLIBD)
     44PYTHONLIB := $(shell $(shell make -s -f $(CASAROOT)/$(CASAARCH)/makedefs VARS=PYTHONLIB eval_vars) && echo $$PYTHONLIB)
    3845
    3946# numpy (use numpy in CASA)
    40 PYTHONLIBD := $(shell $(shell make -s -f $(CASAROOT)/$(CASAARCH)/makedefs VARS=PYTHONLIBD eval_vars) && echo $$PYTHONLIBD)
    4147NUMPYROOT := $(PYTHONLIBD)/python2.5/site-packages/numpy
    4248NUMPYINCD := $(NUMPYROOT)/core/include
    43 NUMPYLIBD := $(NUMPYROOT)/core
    44 NUMPYLIB := $(NUMPYLIBD)/multiarray.so
    4549
    4650# the compiler
     
    5357
    5458# 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
     61CXXFLAGS := $(shell $(shell make -s -f $(CASAROOT)/$(CASAARCH)/makedefs VARS=CXXFLAGS eval_vars) && echo $$CXXFLAGS)
     62CXXFLAGS += -fPIC -O3
     63CXXOPTS := $(shell $(shell make -s -f $(CASAROOT)/$(CASAARCH)/makedefs VARS=COPTFLAGS eval_vars) && echo $$COPTFLAGS)
     64CXXOPTS += -DAIPS_USENUMPY
    5865
    5966# links to external libraries
    60 LIBS := $(CORELIB) $(BOOSTLIB) $(NUMPYLIB)
     67LIBS := $(CORELIB) $(BOOSTLIB) $(PYTHONLIB)
    6168
    6269# include directories
     
    108115test:
    109116        $(CXX) $(CXXOPTS) -c $(CXXFLAGS) $(INCDIRS) -o $(TESTOBJ) $(TESTSRC)
    110         $(LD) $(LDFLAGS) -o $(TESTMOD) $(TESTOBJ) $(LIBS) -L$(INSTDIR) -lpyrap
     117        $(LD) $(LDFLAGS) -o $(TESTMOD) $(TESTOBJ) $(LIBS) -L$(EXTDIR) -lpyrap
Note: See TracChangeset for help on using the changeset viewer.