source: trunk/src/Makefile@ 44

Last change on this file since 44 was 31, checked in by mcalabre, 20 years ago

Added support for SDWriter.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.8 KB
Line 
1TARGET = 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 -llapack -lblas -lg2c -lcfitsio -lrpfits \
21 -lglish -ledit -lsos -lnpd
22
23LINK = g++-3.2.3
24LFLAGS = -shared -Wl,-soname,$(TARGET)
25#-rpath,/home/mar637/lib
26#LFLAGS += -Xlinker -rpath -Xlinker -L$(AIPSLIB)
27
28BOOSTLIB = -lboost_python-mt
29BOOSTINC =
30
31PYTHONINC = -I/usr/include/python2.2
32PYTHONLIB = -lpython2.2
33
34CFITSIOINC = -I/usr/local/include/cfitsio
35
36INCDIRS = -I. $(AIPSINC) $(BOOSTINC) $(PYTHONINC) $(CFITSIOINC)
37LIBDIRS = $(BOOSTLIB) $(PYTHONLIB) $(AIPSPPLIB)
38
39OBJECTS = SDContainer.o \
40 SDMemTable.o \
41 SDReader.o \
42 SDWriter.o \
43 SDMath.o \
44 SDTemplates.o \
45 python_SDMemTable.o \
46 python_SDReader.o \
47 python_SDWriter.o \
48 python_SDMath.o \
49 python_SD.o
50
51HEADERS = SDContainer.h \
52 SDMemTable.h \
53 SDReader.h \
54 SDWriter.h \
55 SDMath.h \
56 SDMemTableWrapper.h \
57 python_SD.h
58
59.SUFFIXES: .c .o .cpp .cc .cxx .C
60
61.cpp.o:
62 $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $<
63
64.cc.o:
65 $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $<
66
67.cxx.o:
68 $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $<
69
70.C.o:
71 $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $<
72
73$(TARGET): $(OBJECTS)
74 $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(LIBDIRS)
75
76$(OBJECTS): $(HEADERS)
77
78clean:
79 -rm -f $(OBJECTS)
80
81realclean: clean
82 -rm -f $(TARGET)
Note: See TracBrowser for help on using the repository browser.