source: trunk/src/Makefile@ 78

Last change on this file since 78 was 77, checked in by mar637, 20 years ago

Update to use python 2.3.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.2 KB
Line 
1TARGET := ../lib/atnf_sd.so
2
3CXX := g++-3.2.3
4CXXFLAGS := -O -fPIC
5CXXFLAGS += -fpermissive # This should be removed.
6#CXXFLAGS += -ansi
7#CXXFLAGS += -pedantic -Wno-long-long
8#CXXFLAGS += -Wall -Wno-parentheses
9
10CFITSIOLIB := /usr/local/lib/libcfitsio.a #-lcfitsio
11CFITSIOINC := -I/usr/local/include/cfitsio
12
13AIPSROOT := $(word 1, $(AIPSPATH))
14AIPSINC := -I$(AIPSROOT)/code/include
15AIPSLIB := $(AIPSROOT)/linux_gnu/lib
16AIPSPPLIB := $(AIPSLIB)/version.o \
17 -L$(AIPSLIB) -latnf -ltrial -laips -laips_f \
18 $(AIPSLIB)/libwcs.a \
19 -lrpfits $(CFITSIOLIB) -llapack -lblas -lg2c
20
21LD := g++-3.2.3
22LDFLAGS := -shared -Wl,--soname=$(TARGET)
23LDFLAGS += -s
24
25BOOSTLIB := /nfs/atapplic/boost/linux/lib/libboost_python2.3-gcc-mt.a
26BOOSTINC :=
27
28PYTHONINC := -I/usr/local/include/python2.3
29PYTHONLIB := -lpython2.3
30
31INCDIRS := -I. $(AIPSINC) $(BOOSTINC) $(PYTHONINC) $(CFITSIOINC)
32LIBS := $(BOOSTLIB) $(PYTHONLIB) $(AIPSPPLIB)
33
34OBJECTS := MathUtils.o \
35 SDContainer.o \
36 SDMemTable.o \
37 SDReader.o \
38 SDWriter.o \
39 SDMath.o \
40 SDTemplates.o \
41 python_SDMemTable.o \
42 python_SDReader.o \
43 python_SDWriter.o \
44 python_SDMath.o \
45 python_SD.o
46
47
48HEADERS := SDContainer.h \
49 SDMemTable.h \
50 SDReader.h \
51 SDWriter.h \
52 SDMath.h \
53 SDMemTableWrapper.h \
54 SDMathWrapper.h \
55 SDReaderWrapper.h \
56 SDWriterWrapper.h \
57 python_SD.h
58
59.SUFFIXES: .c .o .cpp .cc .cxx .C
60
61.cpp.o:
62 -@ echo
63 $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $<
64
65.cc.o:
66 -@ echo
67 $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $<
68
69.cxx.o:
70 -@ echo
71 $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $<
72
73.C.o:
74 -@ echo
75 $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $<
76
77
78.PHONY : all clean objects realclean relink
79
80all : $(TARGET)
81
82relink : cleanso $(TARGET)
83
84objects : $(OBJECTS)
85
86$(TARGET) : $(OBJECTS)
87 -@ echo
88 $(LD) $(LDFLAGS) -o $(TARGET) $(OBJECTS) $(LIBS)
89
90$(OBJECTS) : $(HEADERS)
91
92clean :
93 -rm -f $(OBJECTS)
94
95cleanso :
96 -rm -f $(TARGET)
97
98realclean : clean cleanso
Note: See TracBrowser for help on using the repository browser.