source: trunk/src/Makefile@ 112

Last change on this file since 112 was 99, checked in by mar637, 20 years ago

added fitter

  • 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) \
18 -latnf -lms -limages -lcomponents -lcoordinates \
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 \
38 SDContainer.o \
39 SDMemTable.o \
40 SDReader.o \
41 SDWriter.o \
42 SDMath.o \
[99]43 SDFitter.o \
[65]44 SDTemplates.o \
45 python_SDMemTable.o \
46 python_SDReader.o \
47 python_SDWriter.o \
48 python_SDMath.o \
[99]49 python_SDFitter.o \
[65]50 python_SD.o
[31]51
[2]52
[65]53HEADERS := SDContainer.h \
54 SDMemTable.h \
55 SDReader.h \
56 SDWriter.h \
57 SDMath.h \
[99]58 SDFitter.h \
[65]59 SDMemTableWrapper.h \
60 SDMathWrapper.h \
61 SDReaderWrapper.h \
62 SDWriterWrapper.h \
63 python_SD.h
[2]64
65.SUFFIXES: .c .o .cpp .cc .cxx .C
66
67.cpp.o:
[65]68 -@ echo
69 $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $<
[2]70
71.cc.o:
[65]72 -@ echo
73 $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $<
[2]74
[65]75.cxx.o:
76 -@ echo
77 $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $<
[2]78
79.C.o:
[65]80 -@ echo
81 $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $<
[2]82
83
[65]84.PHONY : all clean objects realclean relink
[2]85
[65]86all : $(TARGET)
87
88relink : cleanso $(TARGET)
89
90objects : $(OBJECTS)
91
92$(TARGET) : $(OBJECTS)
93 -@ echo
94 $(LD) $(LDFLAGS) -o $(TARGET) $(OBJECTS) $(LIBS)
95
96$(OBJECTS) : $(HEADERS)
97
98clean :
[2]99 -rm -f $(OBJECTS)
100
[65]101cleanso :
[2]102 -rm -f $(TARGET)
[65]103
104realclean : clean cleanso
Note: See TracBrowser for help on using the repository browser.