source: trunk/src/Makefile@ 464

Last change on this file since 464 was 460, checked in by kil064, 20 years ago

add SDPol2

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