source: trunk/src/Makefile@ 63

Last change on this file since 63 was 61, checked in by mmarquar, 20 years ago

statically linked all the "external" libraries. Hardly adds any size to it.
Also stripping the library to save space.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 KB
Line 
1TARGET = ../lib/atnf_sd.so
2
3CXX = g++-3.2.3
4CXXFLAGS = -fPIC -w -g -fpermissive -O2
5
6AIPSROOT = $(word 1, $(AIPSPATH))
7
8AIPSINC = -I$(AIPSROOT)/code/include \
9 -I$(AIPSROOT)/code/atnf \
10 -I$(AIPSROOT)/code/trial \
11 -I$(AIPSROOT)/code/aips
12
13AIPSLIB = $(AIPSROOT)/linux_gnu/lib
14AIPSPPLIB = -L$(AIPSLIB) \
15 $(AIPSLIB)/version.o \
16 $(AIPSLIB)/libatnf.a \
17 $(AIPSLIB)/libtrial.a \
18 $(AIPSLIB)/libaips_f.a \
19 $(AIPSLIB)/libaips.a \
20 $(AIPSLIB)/libwcs.a \
21 $(AIPSLIB)/libglish.a \
22 $(AIPSLIB)/libedit.a \
23 $(AIPSLIB)/libsos.a \
24 $(AIPSLIB)/libnpd.a \
25 -llapack -lblas -lg2c -lcfitsio -lrpfits
26# -lglish -ledit -lsos -lnpd
27
28LINK = g++-3.2.3
29LFLAGS = -shared -Wl,-soname,$(TARGET)
30#-rpath,/home/mar637/lib
31#LFLAGS += -Xlinker -rpath -Xlinker -L$(AIPSLIB)
32
33BOOSTLIB = /nfs/atapplic/boost/linux/lib/libboost_python-gcc-mt.a
34BOOSTINC =
35
36PYTHONINC = -I/usr/include/python2.2
37PYTHONLIB = -lpython2.2
38
39CFITSIOINC = -I/usr/local/include/cfitsio
40
41INCDIRS = -I. $(AIPSINC) $(BOOSTINC) $(PYTHONINC) $(CFITSIOINC)
42LIBDIRS = $(BOOSTLIB) $(PYTHONLIB) $(AIPSPPLIB)
43
44OBJECTS = MathUtils.o \
45 SDContainer.o \
46 SDMemTable.o \
47 SDReader.o \
48 SDWriter.o \
49 SDMath.o \
50 SDTemplates.o \
51 python_SDMemTable.o \
52 python_SDReader.o \
53 python_SDWriter.o \
54 python_SDMath.o \
55 python_SD.o
56
57
58HEADERS = SDContainer.h \
59 SDMemTable.h \
60 SDReader.h \
61 SDWriter.h \
62 SDMath.h \
63 SDMemTableWrapper.h \
64 SDMathWrapper.h \
65 SDReaderWrapper.h \
66 SDWriterWrapper.h \
67 python_SD.h
68
69.SUFFIXES: .c .o .cpp .cc .cxx .C
70
71.cpp.o:
72 $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $<
73
74.cc.o:
75 $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $<
76
77.cxx.o:
78 $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $<
79
80.C.o:
81 $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $<
82
83$(TARGET): $(OBJECTS)
84 $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(LIBDIRS)
85 strip $(TARGET)
86
87$(OBJECTS): $(HEADERS)
88
89clean:
90 -rm -f $(OBJECTS)
91
92realclean: clean
93 -rm -f $(TARGET)
Note: See TracBrowser for help on using the repository browser.