source: trunk/src/Makefile@ 184

Last change on this file since 184 was 168, checked in by kil064, 20 years ago

add SDMathWrapper.o (now has cc file)

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