source: trunk/src/Makefile@ 146

Last change on this file since 146 was 137, checked in by kil064, 20 years ago

split MathUtils::hanning function into MathUtils2.cc as the
new MU::statistics function is not templated

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