Changeset 789 for branches/Release12
- Timestamp:
- 12/08/05 14:51:17 (19 years ago)
- Location:
- branches/Release12/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Release12/src/Makefile
r717 r789 1 1 TARGET := /tmp/_asap.so 2 3 4 # the casa environment AIPSPATH has to be defined 5 CASAROOT := $(word 1, $(AIPSPATH)) 6 CASAARCH := $(word 2, $(AIPSPATH)) 7 CASAINC := -I$(CASAROOT)/code/include -I$(CASAROOT)/code/casa 8 CASALIB := $(CASAROOT)/$(CASAARCH)/lib 9 10 11 # the compiler 2 12 ifndef CXX 3 13 CXX := g++ 4 14 endif 15 16 # compiler flags 5 17 CXXFLAGS := -O3 -fPIC 6 CXXFLAGS += -ansi 7 CXXFLAGS += -pedantic -Wno-long-long 18 CXXFLAGS += -ansi -pedantic -Wno-long-long 8 19 CXXOPTS := -DAIPS_NO_TEMPLATE_SRC 9 20 10 CFITSIOROOT := /usr/local If aips++ is build with LFS you need to have 21 # darwin specific flags 22 ifeq "$(CASAARCH)" "darwin" 23 CXXFLAGS := -O2 -DAIPS_DARWIN 24 CXXFLAGS += -ansi -pedantic -Wno-long-long -Wno-long-double 25 endif 26 27 28 # cfitsio 29 CFITSIOROOT := /usr/local 30 # If aips++ is build with LFS you need to have 11 31 # libcfitsio with lfs support 12 CFITSIO LIB := /usr/local/lib/libcfitsio_lfs.a13 #CFITSIOINC := -I$(CFITSIOROOT)/include/cfitsio 32 CFITSIOINC := -I$(CFITSIOROOT)/include 33 CFITSIOLIB := $(CFITSIOROOT)/lib/libcfitsio_lfs.a 14 34 #CFITSIOLIB := -L$(CFITSIOROOT) -lcfitsio 15 35 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 37 RPFITSROOT := /usr/local 38 RPFITSLIB := $(RPFITSROOT)/lib/librpfits.a 22 39 23 40 # This assumes all casa libs are static only (*.a) 24 41 # if not than there might by symbol resolution errors. 25 42 CASAPPLIB := $(CASALIB)/version.o \ 26 -L$(CASALIB) -static\43 -L$(CASALIB) \ 27 44 -latnf -limages -lms -lcomponents -lcoordinates \ 28 45 -llattices -lfits -lmeasures -lmeasures_f \ 29 46 -ltables -lscimath -lscimath_f -lcasa \ 30 47 $(CASALIB)/libwcs.a \ 31 -lrpfits $(CFITSIOLIB) -dy -llapack -lblas -lg2c48 $(RPFITSLIB) $(CFITSIOLIB) -lg2c -lstdc++ 32 49 50 # darwin specific CASA flags 51 ifeq "$(CASAARCH)" "darwin" 52 CASAPPLIB += -framework vecLib 53 else 54 CASAPPLIB += -llapack -lblas 55 endif 56 57 # the linker 33 58 LD := $(CXX) 59 34 60 LDFLAGS := -shared -Wl$(TARGET) -s 61 ifeq "$(CASAARCH)" "darwin" 62 LDFLAGS := -dynamiclib -single_module 63 endif 35 64 65 # python only 2.3 has been tested 36 66 PYVERSION := 2.3 37 67 PYTHONROOT := /usr … … 39 69 PYTHONLIB := -L$(PYTHONROOT)/lib -lpython$(PYVERSION) 40 70 41 71 # has to be build with same g++ version as casa 42 72 BOOSTROOT := /usr 43 73 BOOSTLIB := -L$(BOOSTROOT)/lib -lboost_python … … 45 75 46 76 77 # DO NOT MODIFY AFTER THIS 47 78 INCDIRS := -I. $(CASAINC) $(BOOSTINC) $(PYTHONINC) $(CFITSIOINC) 48 79 LIBS := $(PYTHONLIB) $(BOOSTLIB) $(CASAPPLIB) -
branches/Release12/src/SDTemplates.cc
r701 r789 34 34 #include <casa/namespace.h> 35 35 #include <casa/Exceptions/Error.cc> 36 #include <casa/Exceptions/Error2.cc>36 //#include <casa/Exceptions/Error2.cc> 37 37 #include <casa/Utilities/CountedPtr.cc> 38 #include <casa/Utilities/CountedPtr2.cc>38 //#include <casa/Utilities/CountedPtr2.cc> 39 39 40 40 namespace asap { … … 53 53 #include <casa/Arrays/Array.cc> 54 54 #include <casa/Arrays/Vector.h> 55 #include <casa/Arrays/Vector2.cc>56 #include <casa/Arrays/Vector.cc>57 #include <casa/Utilities/PtrHolder.cc>58 55 #include <casa/Utilities/BinarySearch.cc> 59 56 #include <coordinates/Coordinates/FrequencyAligner.cc> 60 57 #include <lattices/Lattices/Lattice.h> 61 58 #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>66 59 #include <scimath/Mathematics/InterpolateArray1D.cc> 67 60 #include <tables/Tables/BaseMappedArrayEngine.cc> … … 69 62 template void convertArray<Bool, uChar>(Array<Bool> &, Array<uChar> const &); 70 63 template 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 75 65 template Array<Float>& operator/=<Float>(Array<Float>&, MaskedArray<Float> const&); 76 66 template MaskedArray<Float> const& operator*=<Float>(MaskedArray<Float> const&, Float const&); … … 90 80 template Float sumsquares<Float>(MaskedArray<Float> const&); 91 81 template Float avdev<Float>(MaskedArray<Float> const&); 92 template class CompiledFunction<AutoDiff<Float> >;93 template class CompiledParam<AutoDiff<Float> >;94 82 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> >&);107 83 template void LatticeUtilities::bin(MaskedArray<float>&, MaskedArray<float> const&, uInt, uInt); 108 template class PtrHolder<Lattice<Float> >; 84 109 85 template 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 112 87 template class BaseMappedArrayEngine<Float, Float>; 113 88
Note:
See TracChangeset
for help on using the changeset viewer.