source: trunk/src/Makefile@ 443

Last change on this file since 443 was 416, checked in by kil064, 20 years ago

add SDPol

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