source: trunk/src/Makefile@ 308

Last change on this file since 308 was 297, checked in by vor010, 20 years ago

SDLineFinder: C++ class and python binder
have been added. This is an initial version, but it works in some simple

cases. Makefile and install.sh were updated to account for new source files

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