source: trunk/src/Makefile@ 48

Last change on this file since 48 was 45, checked in by mmarquar, 20 years ago

Added MathUtils, and -lwcs

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.9 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 -llapack -lblas -lg2c -lcfitsio -lrpfits \
21 -lglish -ledit -lsos -lnpd -lwcs
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 = MathUtils.o \
40 SDContainer.o \
41 SDMemTable.o \
42 SDReader.o \
43 SDWriter.o \
44 SDMath.o \
45 SDTemplates.o \
46 python_SDMemTable.o \
47 python_SDReader.o \
48 python_SDWriter.o \
49 python_SDMath.o \
50 python_SD.o
51
52HEADERS = SDContainer.h \
53 SDMemTable.h \
54 SDReader.h \
55 SDWriter.h \
56 SDMath.h \
57 SDMemTableWrapper.h \
58 python_SD.h
59
60.SUFFIXES: .c .o .cpp .cc .cxx .C
61
62.cpp.o:
63 $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $<
64
65.cc.o:
66 $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $<
67
68.cxx.o:
69 $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $<
70
71.C.o:
72 $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $<
73
74$(TARGET): $(OBJECTS)
75 $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(LIBDIRS)
76
77$(OBJECTS): $(HEADERS)
78
79clean:
80 -rm -f $(OBJECTS)
81
82realclean: clean
83 -rm -f $(TARGET)
Note: See TracBrowser for help on using the repository browser.