source: trunk/src/Makefile@ 270

Last change on this file since 270 was 260, checked in by vor010, 20 years ago

SDMemTable & SDMemTableWrapper: formatSec and summary are now const functions.
Makefile has been updated to use the same version for both Narrabri and Epping

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.7 KB
RevLine 
[99]1TARGET := ../lib/_asap.so
[2]2
[260]3ifdef NARRABRI_ASAP
4CXX := /usr/bin/g++
5else
[65]6CXX := g++-3.2.3
[260]7endif
8
[65]9CXXFLAGS := -O -fPIC
[82]10#CXXFLAGS += -fpermissive # This should be removed.
[65]11#CXXFLAGS += -ansi
[82]12CXXFLAGS += -pedantic -Wno-long-long
[65]13#CXXFLAGS += -Wall -Wno-parentheses
[2]14
[193]15CFITSIOLIB := /usr/local/lib/libcfitsio_lfs.a #-lcfitsio
[72]16CFITSIOINC := -I/usr/local/include/cfitsio
[71]17
[82]18CASAROOT := $(word 1, $(AIPSPATH))
19CASAINC := -I$(CASAROOT)/code/include
20CASALIB := $(CASAROOT)/linux_gnu/lib
21CASAPPLIB := $(CASALIB)/version.o \
22 -L$(CASALIB) \
[193]23 -latnf -limages -lms -lcomponents -lcoordinates \
[82]24 -llattices -lfits -lmeasures -lmeasures_f \
25 -ltables -lscimath -lscimath_f -lcasa \
26 $(CASALIB)/libwcs.a -lmir \
[71]27 -lrpfits $(CFITSIOLIB) -llapack -lblas -lg2c
[2]28
[65]29LD := g++-3.2.3
30LDFLAGS := -shared -Wl,--soname=$(TARGET)
31LDFLAGS += -s
[2]32
[77]33BOOSTLIB := /nfs/atapplic/boost/linux/lib/libboost_python2.3-gcc-mt.a
[216]34BOOSTINC := -I/usr/local/include/boost
[2]35
[260]36
[77]37PYTHONINC := -I/usr/local/include/python2.3
38PYTHONLIB := -lpython2.3
[2]39
[82]40INCDIRS := -I. $(CASAINC) $(BOOSTINC) $(PYTHONINC) $(CFITSIOINC)
41LIBS := $(BOOSTLIB) $(PYTHONLIB) $(CASAPPLIB)
[2]42
[65]43OBJECTS := MathUtils.o \
[137]44 MathUtils2.o \
[65]45 SDContainer.o \
46 SDMemTable.o \
47 SDReader.o \
48 SDWriter.o \
49 SDMath.o \
[99]50 SDFitter.o \
[65]51 SDTemplates.o \
[168]52 SDMathWrapper.o \
[193]53 SDFITSImageWriter.o \
[201]54 SDAsciiWriter.o \
[65]55 python_SDMemTable.o \
56 python_SDReader.o \
57 python_SDWriter.o \
58 python_SDMath.o \
[99]59 python_SDFitter.o \
[65]60 python_SD.o
[31]61
[2]62
[216]63HEADERS := SDDefs.h \
64 SDContainer.h \
[65]65 SDMemTable.h \
66 SDReader.h \
67 SDWriter.h \
68 SDMath.h \
[99]69 SDFitter.h \
[65]70 SDMemTableWrapper.h \
71 SDMathWrapper.h \
72 SDReaderWrapper.h \
73 SDWriterWrapper.h \
[193]74 SDFITSImageWriter.h \
[201]75 SDAsciiWriter.h \
[65]76 python_SD.h
[2]77
[193]78
[2]79.SUFFIXES: .c .o .cpp .cc .cxx .C
80
81.cpp.o:
[65]82 -@ echo
83 $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $<
[2]84
85.cc.o:
[65]86 -@ echo
87 $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $<
[2]88
[65]89.cxx.o:
90 -@ echo
91 $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $<
[2]92
93.C.o:
[65]94 -@ echo
95 $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $<
[2]96
97
[65]98.PHONY : all clean objects realclean relink
[2]99
[65]100all : $(TARGET)
101
102relink : cleanso $(TARGET)
103
104objects : $(OBJECTS)
105
106$(TARGET) : $(OBJECTS)
107 -@ echo
108 $(LD) $(LDFLAGS) -o $(TARGET) $(OBJECTS) $(LIBS)
109
110$(OBJECTS) : $(HEADERS)
111
112clean :
[2]113 -rm -f $(OBJECTS)
114
[65]115cleanso :
[2]116 -rm -f $(TARGET)
[65]117
118realclean : clean cleanso
Note: See TracBrowser for help on using the repository browser.