source: trunk/src/Makefile@ 194

Last change on this file since 194 was 193, checked in by kil064, 20 years ago

add SDFITSImageWRiter
use cfitsio_lfs.a (Large FIle Support)

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