Last change
on this file since 3025 was 2, checked in by mmarquar, 20 years ago |
Initial revision
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
1.6 KB
|
Line | |
---|
1 | TARGET = atnf_sd.so
|
---|
2 |
|
---|
3 | CXX = g++-3.2.3
|
---|
4 | CXXFLAGS = -fPIC -w -g -fpermissive -O2
|
---|
5 |
|
---|
6 | AIPSROOT = $(word 1, $(AIPSPATH))
|
---|
7 |
|
---|
8 | AIPSINC = -I$(AIPSROOT)/code/include \
|
---|
9 | -I$(AIPSROOT)/code/atnf \
|
---|
10 | -I$(AIPSROOT)/code/trial \
|
---|
11 | -I$(AIPSROOT)/code/aips
|
---|
12 |
|
---|
13 | AIPSLIB = $(AIPSROOT)/linux_gnu/lib
|
---|
14 | AIPSPPLIB = -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 |
|
---|
23 | LINK = g++-3.2.3
|
---|
24 | LFLAGS = -shared -Wl,-soname,$(TARGET)
|
---|
25 | #-rpath,/home/mar637/lib
|
---|
26 | #LFLAGS += -Xlinker -rpath -Xlinker -L$(AIPSLIB)
|
---|
27 |
|
---|
28 | BOOSTLIB = -lboost_python-mt
|
---|
29 | BOOSTINC =
|
---|
30 |
|
---|
31 | PYTHONINC = -I/usr/include/python2.2
|
---|
32 | PYTHONLIB = -lpython2.2
|
---|
33 |
|
---|
34 | INCDIRS = -I. $(AIPSINC) $(BOOSTINC) $(PYTHONINC)
|
---|
35 | LIBDIRS = $(BOOSTLIB) $(PYTHONLIB) $(AIPSPPLIB)
|
---|
36 |
|
---|
37 | OBJECTS = SDContainer.o \
|
---|
38 | SDMemTable.o \
|
---|
39 | SDReader.o \
|
---|
40 | SDMath.o \
|
---|
41 | SDTemplates.o \
|
---|
42 | python_SDMemTable.o \
|
---|
43 | python_SDReader.o \
|
---|
44 | python_SDMath.o \
|
---|
45 | python_SD.o
|
---|
46 |
|
---|
47 | HEADERS = SDContainer.h \
|
---|
48 | SDMemTable.h \
|
---|
49 | SDReader.h \
|
---|
50 | SDMath.h \
|
---|
51 | SDMemTableWrapper.h \
|
---|
52 | python_SD.h
|
---|
53 |
|
---|
54 | .SUFFIXES: .c .o .cpp .cc .cxx .C
|
---|
55 |
|
---|
56 | .cpp.o:
|
---|
57 | $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $<
|
---|
58 |
|
---|
59 | .cc.o:
|
---|
60 | $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $<
|
---|
61 |
|
---|
62 | .cxx.o:
|
---|
63 | $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $<
|
---|
64 |
|
---|
65 | .C.o:
|
---|
66 | $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $<
|
---|
67 |
|
---|
68 | $(TARGET): $(OBJECTS)
|
---|
69 | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(LIBDIRS)
|
---|
70 |
|
---|
71 | $(OBJECTS): $(HEADERS)
|
---|
72 |
|
---|
73 | clean:
|
---|
74 | -rm -f $(OBJECTS)
|
---|
75 |
|
---|
76 | realclean: clean
|
---|
77 | -rm -f $(TARGET)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.