Changeset 789 for branches/Release12


Ignore:
Timestamp:
12/08/05 14:51:17 (19 years ago)
Author:
mar637
Message:

made makefile darwin compatible; removed uneccessary templates - who knows why

Location:
branches/Release12/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/Release12/src/Makefile

    r717 r789  
    11TARGET   := /tmp/_asap.so
     2
     3
     4# the casa environment AIPSPATH has to be defined
     5CASAROOT  := $(word 1, $(AIPSPATH))
     6CASAARCH  := $(word 2, $(AIPSPATH))
     7CASAINC   := -I$(CASAROOT)/code/include -I$(CASAROOT)/code/casa
     8CASALIB   := $(CASAROOT)/$(CASAARCH)/lib
     9
     10
     11# the compiler
    212ifndef CXX
    313   CXX      := g++
    414endif
     15
     16# compiler flags
    517CXXFLAGS := -O3 -fPIC
    6 CXXFLAGS += -ansi
    7 CXXFLAGS += -pedantic -Wno-long-long
     18CXXFLAGS += -ansi -pedantic -Wno-long-long
    819CXXOPTS := -DAIPS_NO_TEMPLATE_SRC
    920
    10 CFITSIOROOT := /usr/local If aips++ is build with LFS you need to have
     21# darwin specific flags
     22ifeq "$(CASAARCH)" "darwin"
     23   CXXFLAGS := -O2 -DAIPS_DARWIN
     24   CXXFLAGS += -ansi -pedantic -Wno-long-long -Wno-long-double
     25endif
     26
     27
     28# cfitsio
     29CFITSIOROOT := /usr/local
     30# If aips++ is build with LFS you need to have
    1131# libcfitsio with lfs support
    12 CFITSIOLIB := /usr/local/lib/libcfitsio_lfs.a
    13 #CFITSIOINC := -I$(CFITSIOROOT)/include/cfitsio
     32CFITSIOINC := -I$(CFITSIOROOT)/include
     33CFITSIOLIB := $(CFITSIOROOT)/lib/libcfitsio_lfs.a
    1434#CFITSIOLIB := -L$(CFITSIOROOT) -lcfitsio
    1535
    16 
    17 CASAROOT  := $(word 1, $(AIPSPATH))
    18 CASAARCH  := $(word 2, $(AIPSPATH))
    19 CASAINC   := -I$(CASAROOT)/code/include -I$(CASAROOT)/code/casa/wcslib
    20 CASALIB   := $(CASAROOT)/$(CASAARCH)/lib
    21 
     36#rpfits
     37RPFITSROOT := /usr/local
     38RPFITSLIB := $(RPFITSROOT)/lib/librpfits.a
    2239
    2340# This assumes all casa libs are static only (*.a)
    2441# if not than there might by symbol resolution errors.
    2542CASAPPLIB := $(CASALIB)/version.o \
    26              -L$(CASALIB) -static \
     43             -L$(CASALIB) \
    2744             -latnf -limages -lms -lcomponents -lcoordinates \
    2845             -llattices -lfits -lmeasures -lmeasures_f \
    2946             -ltables -lscimath -lscimath_f -lcasa  \
    3047             $(CASALIB)/libwcs.a \
    31               -lrpfits $(CFITSIOLIB) -dy -llapack -lblas -lg2c
     48             $(RPFITSLIB) $(CFITSIOLIB) -lg2c -lstdc++
    3249
     50# darwin specific CASA flags
     51ifeq "$(CASAARCH)" "darwin"
     52   CASAPPLIB += -framework vecLib
     53else
     54   CASAPPLIB += -llapack -lblas
     55endif
     56
     57# the linker
    3358LD        := $(CXX)
     59
    3460LDFLAGS   := -shared -Wl$(TARGET) -s
     61ifeq "$(CASAARCH)" "darwin"
     62   LDFLAGS   := -dynamiclib -single_module
     63endif
    3564
     65# python only 2.3 has been tested
    3666PYVERSION := 2.3
    3767PYTHONROOT := /usr
     
    3969PYTHONLIB := -L$(PYTHONROOT)/lib -lpython$(PYVERSION)
    4070
    41 
     71# has to be build with same g++ version as casa
    4272BOOSTROOT := /usr
    4373BOOSTLIB  := -L$(BOOSTROOT)/lib -lboost_python
     
    4575
    4676
     77# DO NOT MODIFY AFTER THIS
    4778INCDIRS   := -I. $(CASAINC) $(BOOSTINC) $(PYTHONINC) $(CFITSIOINC)
    4879LIBS      := $(PYTHONLIB)  $(BOOSTLIB) $(CASAPPLIB)
  • branches/Release12/src/SDTemplates.cc

    r701 r789  
    3434#include <casa/namespace.h>
    3535#include <casa/Exceptions/Error.cc>
    36 #include <casa/Exceptions/Error2.cc>
     36//#include <casa/Exceptions/Error2.cc>
    3737#include <casa/Utilities/CountedPtr.cc>
    38 #include <casa/Utilities/CountedPtr2.cc>
     38//#include <casa/Utilities/CountedPtr2.cc>
    3939
    4040namespace asap {
     
    5353#include <casa/Arrays/Array.cc>
    5454#include <casa/Arrays/Vector.h>
    55 #include <casa/Arrays/Vector2.cc>
    56 #include <casa/Arrays/Vector.cc>
    57 #include <casa/Utilities/PtrHolder.cc>
    5855#include <casa/Utilities/BinarySearch.cc>
    5956#include <coordinates/Coordinates/FrequencyAligner.cc>
    6057#include <lattices/Lattices/Lattice.h>
    6158#include <lattices/Lattices/LatticeUtilities.cc>
    62 #include <scimath/Functionals/CompiledFunction.cc>
    63 #include <scimath/Functionals/CompiledParam.cc>
    64 #include <scimath/Mathematics/AutoDiff.h>
    65 #include <scimath/Mathematics/AutoDiffMath.h>
    6659#include <scimath/Mathematics/InterpolateArray1D.cc>
    6760#include <tables/Tables/BaseMappedArrayEngine.cc>
     
    6962template void convertArray<Bool, uChar>(Array<Bool> &, Array<uChar> const &);
    7063template void convertArray<uChar, Bool>(Array<uChar> &, Array<Bool> const &);
    71 template LogicalArray operator!=<Float>(Array<Float> const &, Float const &);
    72 template LogicalArray operator==<Float>(Array<Float> const &, Float const &);
    73 template LogicalArray operator><Float>(Array<Float> const &, Float const &);
    74 template LogicalArray operator>=<Float>(Array<Float> const &, Float const &);
     64
    7565template Array<Float>& operator/=<Float>(Array<Float>&, MaskedArray<Float> const&);
    7666template MaskedArray<Float> const& operator*=<Float>(MaskedArray<Float> const&, Float const&);
     
    9080template Float sumsquares<Float>(MaskedArray<Float> const&);
    9181template Float avdev<Float>(MaskedArray<Float> const&);
    92 template class CompiledFunction<AutoDiff<Float> >;
    93 template class CompiledParam<AutoDiff<Float> >;
    9482
    95 template class Vector<Vector<Int> >;
    96 template class Vector<Vector<Bool> >;
    97 template class Vector<Vector<String> >;
    98 template Vector<Bool>::Vector(const vector<bool> &);
    99 template Vector<Int>::Vector(const vector<int> &);
    100 template Vector<Float>::Vector(const vector<float> &);
    101 template Vector<Double>::Vector(const vector<double> &);
    102 template void Array<float>::tovector(vector<float> &) const;
    103 template void Array<Bool>::tovector(vector<bool> &) const;
    104 template void Array<Double>::tovector(vector<double> &) const;
    105 template void Array<Int>::tovector(vector<int> &) const;
    106 template void Array<std::complex<float> >::reference(const Array<std::complex<float> >&);
    10783template void LatticeUtilities::bin(MaskedArray<float>&, MaskedArray<float> const&, uInt, uInt);
    108 template class PtrHolder<Lattice<Float> >;
     84
    10985template class FrequencyAligner<Float>;
    110 template class InterpolateArray1D<Double, Float>;
    111 template Int binarySearchBrackets<Vector<Double>,Double>(Bool &, Vector<Double> const &, Double const &, uInt, Int);
     86
    11287template class BaseMappedArrayEngine<Float, Float>;
    11388
Note: See TracChangeset for help on using the changeset viewer.