source: trunk/src/Makefile@ 258

Last change on this file since 258 was 216, checked in by mar637, 20 years ago

added explicit boost include path
added SDDefs to dependecy list

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.6 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_lfs.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 -limages -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 := -I/usr/local/include/boost
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 SDFITSImageWriter.o \
48 SDAsciiWriter.o \
49 python_SDMemTable.o \
50 python_SDReader.o \
51 python_SDWriter.o \
52 python_SDMath.o \
53 python_SDFitter.o \
54 python_SD.o
55
56
57HEADERS := SDDefs.h \
58 SDContainer.h \
59 SDMemTable.h \
60 SDReader.h \
61 SDWriter.h \
62 SDMath.h \
63 SDFitter.h \
64 SDMemTableWrapper.h \
65 SDMathWrapper.h \
66 SDReaderWrapper.h \
67 SDWriterWrapper.h \
68 SDFITSImageWriter.h \
69 SDAsciiWriter.h \
70 python_SD.h
71
72
73.SUFFIXES: .c .o .cpp .cc .cxx .C
74
75.cpp.o:
76 -@ echo
77 $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $<
78
79.cc.o:
80 -@ echo
81 $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $<
82
83.cxx.o:
84 -@ echo
85 $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $<
86
87.C.o:
88 -@ echo
89 $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $<
90
91
92.PHONY : all clean objects realclean relink
93
94all : $(TARGET)
95
96relink : cleanso $(TARGET)
97
98objects : $(OBJECTS)
99
100$(TARGET) : $(OBJECTS)
101 -@ echo
102 $(LD) $(LDFLAGS) -o $(TARGET) $(OBJECTS) $(LIBS)
103
104$(OBJECTS) : $(HEADERS)
105
106clean :
107 -rm -f $(OBJECTS)
108
109cleanso :
110 -rm -f $(TARGET)
111
112realclean : clean cleanso
Note: See TracBrowser for help on using the repository browser.