Changeset 655 for trunk/src


Ignore:
Timestamp:
06/22/05 16:14:44 (20 years ago)
Author:
mar637
Message:

various modifiactions after building on different platforms

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Makefile

    r635 r655  
    77CXXFLAGS += -pedantic -Wno-long-long
    88
    9 CFITSIOROOT := /usr
    10 # If aips++ is build with LFS
     9CFITSIOROOT := /usr/local If aips++ is build with LFS you need to have
     10# libcfitsio with lfs support
    1111# CFITSIOLIB := /usr/local/lib/libcfitsio_lfs.a
    1212CFITSIOINC := -I$(CFITSIOROOT)/include/cfitsio
     
    1414
    1515CASAROOT  := $(word 1, $(AIPSPATH))
     16CASAARCH  := $(word 2, $(AIPSPATH))
    1617CASAINC   := -I$(CASAROOT)/code/include
    17 CASALIB   := $(CASAROOT)/linux_gnu/lib
     18CASALIB   := $(CASAROOT)/$(CASAARCH)/lib
     19# This assumes all casa libs are static only (*.a)
     20# if not than there might by symbol resolution errors.
    1821CASAPPLIB := $(CASALIB)/version.o \
    19              -L$(CASALIB) \
     22             -L$(CASALIB) -static \
    2023             -latnf -limages -lms -lcomponents -lcoordinates \
    2124             -llattices -lfits -lmeasures -lmeasures_f \
    22              -ltables -lscimath -lscimath_f -lcasa \
    23               $(CASALIB)/libwcs.a \
    24              -lrpfits $(CFITSIOLIB) -llapack -lblas -lg2c
     25             -ltables -lscimath -lscimath_f -lcasa -lwcs \
     26              -lrpfits $(CFITSIOLIB) -dy -llapack -lblas -lg2c
    2527
    2628LD        := $(CXX)
    27 LDFLAGS   := -shared -Wl,--soname=$(TARGET)
    28 LDFLAGS   += -s
     29LDFLAGS   := -shared -Wl$(TARGET) -s
     30
     31PYVERSION := 2.3
     32PYTHONROOT := /usr
     33PYTHONINC := -I$(PYTHONROOT)/include/python$(PYVERSION)
     34PYTHONLIB := -L$(PYTHONROOT)/lib -lpython$(PYVERSION)
     35
    2936
    3037BOOSTROOT := /usr
    31 BOOSTLIB  := -L$(BOOSTROOT)/lib -lboost_python2.3
     38BOOSTLIB  := -L$(BOOSTROOT)/lib -lboost_python$(PYVERSION)
    3239BOOSTINC  := -I$(BOOSTROOT)/include/boost
    3340
    34 PYTHONROOT := /usr
    35 PYTHONINC := -I$(PYTHONROOT)/include/python2.3
    36 PYTHONLIB := -L$(PYTHONROOT)/lib -lpython2.3
    3741
    3842INCDIRS   := -I. $(CASAINC) $(BOOSTINC) $(PYTHONINC) $(CFITSIOINC)
    39 LIBS      := $(BOOSTLIB) $(PYTHONLIB) $(CASAPPLIB)
     43LIBS      := $(PYTHONLIB)  $(BOOSTLIB) $(CASAPPLIB)
    4044
    41 OBJECTS  := MathUtils.o \
     45CCOBJECTS := MathUtils.o \
    4246             MathUtils2.o \
    4347             SDAttr.o \
     
    5559             SDFITSImageWriter.o \
    5660             SDAsciiWriter.o \
    57              SDLineFinder.o \
    58             python_SDMemTable.o \
     61             SDLineFinder.o
     62PYOBJECTS := python_SDMemTable.o \
    5963             python_SDReader.o \
    6064             python_SDWriter.o \
     
    6569             python_SD.o
    6670
     71OBJECTS := $(CCOBJECTS) $(PYOBJECTS)
    6772
    6873HEADERS   := SDDefs.h \
     
    8590             python_SD.h
    8691
     92STATICCCLIB := libasap.a
     93MEMBERS := $(patsubst %,$(STATICCCLIB)(%),$(CCOBJECTS))
    8794
    8895.SUFFIXES: .c .o .cpp .cc .cxx .C
     
    119126$(OBJECTS) : $(HEADERS)
    120127
     128staticlib: $(MEMBERS)
     129
    121130clean :
    122131        -rm -f $(OBJECTS)
Note: See TracChangeset for help on using the changeset viewer.