Changeset 1899
- Timestamp:
- 08/25/10 16:11:40 (14 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile
r1894 r1899 14 14 endif 15 15 ATNFD := external-alma 16 PYRAPD := external/libpyrap 16 17 17 18 #PY := $(wildcard python/*.py) … … 29 30 module: 30 31 @if ( test -f getsvnrev.sh ) ; then /bin/bash getsvnrev.sh ; fi 32 @cd $(ASAPROOT)/$(PYRAPD); make 31 33 @cd $(ASAPROOT)/$(ATNFD); make 32 34 @cd $(ASAPROOT)/src; make … … 47 49 @if ( test ! -d $(PREFIX)/share/asap ) ; then mkdir -p $(PREFIX)/share/asap ; fi 48 50 @cp -f share/ipythonrc-asap $(PREFIX)/share/asap/ 51 @cd $(ASAPROOT)/$(PYRAPD); make install 49 52 @cd $(ASAPROOT)/$(ATNFD); make install 50 53 @echo "Successfully installed asap module to" $(PYDIR) … … 55 58 @cd $(ASAPROOT)/$(ATNFD); make realclean 56 59 @cd $(ASAPROOT)/apps; make clean 60 @cd $(ASAPROOT)/$(PYRAPD); make clean 57 61 58 62 datadist: -
trunk/external/libpyrap/Makefile
r1895 r1899 16 16 CASAROOT := $(word 1, $(CASAPATH)) 17 17 CASAARCH := $(word 2, $(CASAPATH)) 18 ifeq "$(CASAARCH)" "darwin"19 CASADIST := /opt/casa20 else21 CASADIST := /usr/lib/casapy22 endif23 18 24 19 TARGET := libpyrap.so … … 38 33 BOOSTLIB := -L$(BOOSTLIBD) -lboost_python 39 34 40 # numpy (use numpy in CASA)41 NUMPYROOT := $(CASADIST)/lib/python2.5/site-packages/numpy42 NUMPYINCD := $(NUMPYROOT)/core/include43 NUMPYLIBD := $(NUMPYROOT)/core/44 NUMPYLIB := #-L$(NUMPYLIBD) -lmultiarray45 46 35 # python 47 36 PYTHONROOT := $(shell $(shell make -s -f $(CASAROOT)/$(CASAARCH)/makedefs VARS=PYTHONROOT eval_vars) && echo $$PYTHONROOT) 48 37 PYTHONINCD := $(PYTHONROOT)/include/python2.5 38 39 # numpy (use numpy in CASA) 40 PYTHONLIBD := $(shell $(shell make -s -f $(CASAROOT)/$(CASAARCH)/makedefs VARS=PYTHONLIBD eval_vars) && echo $$PYTHONLIBD) 41 NUMPYROOT := $(PYTHONLIBD)/python2.5/site-packages/numpy 42 NUMPYINCD := $(NUMPYROOT)/core/include 49 43 50 44 # the compiler … … 62 56 63 57 # links to external libraries 64 LIBS := $(CORELIB) $(BOOSTLIB) $(NUMPYLIB)58 LIBS := $(CORELIB) $(BOOSTLIB) 65 59 66 60 # include directories … … 103 97 104 98 clean: 105 rm -rf $(OBJECTS) $(TARGET) 106 rm -rf $(TESTDIR)/$(TESTMOD) $(TESTDIR)/$(TESTOBJ) 99 rm -f $(OBJECTS) $(TARGET) 100 rm -f $(TESTDIR)/$(TESTMOD) $(TESTDIR)/$(TESTOBJ) 101 rm -f $(INSTDIR)/$(TARGET) 107 102 108 103 install: -
trunk/src/Makefile
r1898 r1899 45 45 # compiler flags 46 46 CXXFLAGS += -fPIC 47 #CXXOPTS += -DHAVE_LIBPYRAP 47 48 48 49 CFITSIOLIB := -lcfitsio … … 54 55 G2CLIB := -lgfortran 55 56 57 # pyrap 58 PYRAPD := $(ASAPROOT)/external/libpyrap 59 PYRAPLIBD := $(PYRAPD) 60 PYRAPINCD := $(PYRAPD)/pyrap-0.3.2 61 PYRAPLIB := -L$(PYRAPLIBD) -lpyrap 62 56 63 # links to external libraries 57 CASAPPLIB := -L$(ASAPROOT)/$(ATNFD) -latnf $(CORELIB) \64 CASAPPLIB := -L$(ASAPROOT)/$(ATNFD) -latnf $(CORELIB) $(PYRAPLIB) \ 58 65 -L$(WCSLIBLIBD) $(WCSLIBLIB) \ 59 66 -L$(RPFITSLIBD) $(RPFITSLIB) $(CFITSIOLIB) $(G2CLIB) -lstdc++ … … 76 83 77 84 # DO NOT MODIFY AFTER THIS 78 INCDIRS := -I. $(CASAINC) -I$(CFITSIOINCD) $(BOOSTINC) -I$(PYTHONINCD) -I$(ASAPROOT)/$(ATNFD) 85 INCDIRS := -I. $(CASAINC) -I$(CFITSIOINCD) $(BOOSTINC) -I$(PYTHONINCD) -I$(ASAPROOT)/$(ATNFD) -I$(PYRAPINCD) 79 86 LIBS := $(PYTHONLIB) $(BOOSTLIB) $(CASAPPLIB) 80 87
Note:
See TracChangeset
for help on using the changeset viewer.