Changeset 1915
- Timestamp:
- 08/30/10 15:13:13 (14 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile
r1899 r1915 43 43 @if ( test ! -d $(PYDIR)/asap ) ; then mkdir -p $(PYDIR)/asap ; fi 44 44 @if ( test ! -d $(PREFIX)/bin ) ; then mkdir -p $(PREFIX)/bin ; fi 45 @cd $(ASAPROOT)/$(ATNFD); make install 46 @cd $(ASAPROOT)/$(PYRAPD); make install 45 47 @for file in $(LIBS) ; do cp -f $$file $(PYDIR)/asap ; done 46 48 @for file in $(BINS) ; do cp -f $$file $(PREFIX)/bin ; done 47 49 @for file in $(PY) ; do cp -f $$file $(PYDIR)/asap ; done 48 @for file in $(APPS) ; do cp -f $$file $(PREFIX)/bin ; done49 50 @if ( test ! -d $(PREFIX)/share/asap ) ; then mkdir -p $(PREFIX)/share/asap ; fi 50 51 @cp -f share/ipythonrc-asap $(PREFIX)/share/asap/ 51 @cd $(ASAPROOT)/$(PYRAPD); make install 52 @cd $(ASAPROOT)/$(ATNFD); make install 52 @for file in $(APPS) ; do cp -f $$file $(PREFIX)/bin ; done 53 53 @echo "Successfully installed asap module to" $(PYDIR) 54 54 -
trunk/apps/Makefile
r1819 r1915 8 8 CASAARCH := $(word 2, $(CASAPATH)) 9 9 10 CORELIB := $(shell $(shell make -s -f $(CASAROOT)/$(CASAARCH)/makedefs VARS=CORELIB eval_vars) && echo $$CORELIB) 10 11 COREINCD := $(shell $(shell make -s -f $(CASAROOT)/$(CASAARCH)/makedefs VARS=COREINCD eval_vars) && echo $$COREINCD) 11 12 CASALIB := $(CASAROOT)/$(CASAARCH)/lib … … 17 18 18 19 # compiler flags 19 CXXFLAGS := -fPIC -O3 -g 20 CXXFLAGS += -ansi -Wno-long-long -Wall 21 CXXFLAGS := -Xlinker -rpath -Xlinker $(CASALIB) 20 CXXFLAGS := $(shell $(shell make -s -f $(CASAROOT)/$(CASAARCH)/makedefs VARS=CXXFLAGS eval_vars) && echo $$CXXFLAGS) 21 CXXFLAGS += -fPIC -O3 -Xlinker -rpath -Xlinker $(CASALIB) 22 22 23 23 24 24 INCDIRS := -I$(COREINCD) 25 LIBS := -L$(CASALIB) -lcasa_tables -lcasa_casa25 LIBS := -L$(CASALIB) $(CORELIB) 26 26 27 27 OBJECTS := asap2to3 -
trunk/external-alma/Makefile
r1898 r1915 40 40 CXXFLAGS += -fPIC 41 41 42 # casacore library dependencies43 CORELIBS := -lcasa_casa -lcasa_measures -lcasa_scimath -lcasa_ms -lcasa_tables44 45 42 # cfitsio 46 43 CFITSIOLIB := -lcfitsio … … 58 55 59 56 INCDIRS := -I$(COREINCD) -I$(CFITSIOINCD) -I$(EXTDIR) 60 LIBS := -L$(CFITSIOLIBD) $(CFITSIOLIB) -L$(RPFITSLIBD) $(RPFITSLIB) -L$(CASALIB) $(CORELIB S) -lgfortran57 LIBS := -L$(CFITSIOLIBD) $(CFITSIOLIB) -L$(RPFITSLIBD) $(RPFITSLIB) -L$(CASALIB) $(CORELIB) -lgfortran 61 58 62 59 OBJECTS := $(ATNFDIR)/pks/pks_maths.o \ -
trunk/external/libpyrap/Makefile
r1911 r1915 19 19 ifeq ($(shell uname), Darwin) 20 20 TARGET := libpyrap.dylib 21 TESTMOD := $(TESTDIR)/_tConvert. dylib21 TESTMOD := $(TESTDIR)/_tConvert.so 22 22 else 23 23 TARGET := libpyrap.so … … 40 40 # python 41 41 PYTHONROOT := $(shell $(shell make -s -f $(CASAROOT)/$(CASAARCH)/makedefs VARS=PYTHONROOT eval_vars) && echo $$PYTHONROOT) 42 PYTHONINCD := $( PYTHONROOT)/include/python2.542 PYTHONINCD := $(shell $(shell make -s -f $(CASAROOT)/$(CASAARCH)/makedefs VARS=PYTHONINCD eval_vars) && echo $$PYTHONINCD) 43 43 PYTHONLIBD := $(shell $(shell make -s -f $(CASAROOT)/$(CASAARCH)/makedefs VARS=PYTHONLIBD eval_vars) && echo $$PYTHONLIBD) 44 44 PYTHONLIB := $(shell $(shell make -s -f $(CASAROOT)/$(CASAARCH)/makedefs VARS=PYTHONLIB eval_vars) && echo $$PYTHONLIB) 45 45 46 46 # numpy (use numpy in CASA) 47 NUMPYROOT := $(PYTHONLIBD)/python2.5/site-packages/numpy48 NUMPYINCD := $(NUMPYROOT)/core/include47 #NUMPYROOT := $(PYTHONLIBD)/python2.5/site-packages/numpy 48 #NUMPYINCD := $(NUMPYROOT)/core/include 49 49 50 50 # the compiler … … 68 68 69 69 # include directories 70 INCDIRS := -I$(COREINCD) -I$(BOOSTINCD) -I$(NUMPYINCD)\71 -I$(PYRAPROOT) -I$(PYTHONINCD)70 INCDIRS := -I$(COREINCD) -I$(BOOSTINCD) \ 71 -I$(PYRAPROOT) $(addprefix -I, $(PYTHONINCD)) 72 72 73 73 # link option 74 LDFLAGS := -shared 74 LDFLAGS := $(shell $(shell make -s -f $(CASAROOT)/$(CASAARCH)/makedefs VARS=LD_FLAGS eval_vars) && echo $$LD_FLAGS) 75 LDFLAGS += -shared 75 76 76 77 OBJECTS := $(PYRAPDIR)/PycArray.o \ -
trunk/src/Makefile
r1906 r1915 44 44 45 45 # compiler flags 46 CXXFLAGS += -fPIC 47 CXXOPTS += -DHAVE_LIBPYRAP 48 49 CFITSIOLIB := -lcfitsio 50 51 #rpfits 52 RPFITSLIB := -lrpfits 53 54 G2CROOT := /usr 55 G2CLIB := -lgfortran 56 57 # pyrap 46 CXXFLAGS += -fPIC -DHAVE_LIBPYRAP 47 58 48 PYRAPD := $(ASAPROOT)/external/libpyrap 59 49 PYRAPLIBD := $(PYRAPD) … … 61 51 PYRAPLIB := -L$(PYRAPLIBD) -lpyrap 62 52 53 54 CFITSIOLIB := -lcfitsio 55 56 #rpfits 57 RPFITSLIB := -lrpfits 58 59 G2CROOT := /usr 60 G2CLIB := -lgfortran 61 63 62 # links to external libraries 64 CASAPPLIB := -L$(ASAPROOT)/$(ATNFD) -latnf $(CORELIB) $(PYRAPLIB) 63 CASAPPLIB := -L$(ASAPROOT)/$(ATNFD) -latnf $(CORELIB) $(PYRAPLIB)\ 65 64 -L$(WCSLIBLIBD) $(WCSLIBLIB) \ 66 65 -L$(RPFITSLIBD) $(RPFITSLIB) $(CFITSIOLIB) $(G2CLIB) -lstdc++ … … 83 82 84 83 # DO NOT MODIFY AFTER THIS 85 INCDIRS := -I. $(CASAINC) -I$(CFITSIOINCD) $(BOOSTINC) -I$(PYTHONINCD) -I$(ASAPROOT)/$(ATNFD) -I$(PYRAPINCD)84 INCDIRS := -I. $(CASAINC) -I$(CFITSIOINCD) $(BOOSTINC) $(addprefix -I, $(PYTHONINCD)) -I$(ASAPROOT)/$(ATNFD) -I$(PYRAPINCD) 86 85 LIBS := $(PYTHONLIB) $(BOOSTLIB) $(CASAPPLIB) 87 86
Note:
See TracChangeset
for help on using the changeset viewer.