source: trunk/src/Makefile@ 529

Last change on this file since 529 was 465, checked in by mar637, 20 years ago

Added SDFitTable to handle fits and expose them to python vi the sdfit class.

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