source: branches/atnf/src/Makefile@ 355

Last change on this file since 355 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 
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
34INCDIRS = -I. $(AIPSINC) $(BOOSTINC) $(PYTHONINC)
35LIBDIRS = $(BOOSTLIB) $(PYTHONLIB) $(AIPSPPLIB)
36
37OBJECTS = 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
47HEADERS = 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
73clean:
74 -rm -f $(OBJECTS)
75
76realclean: clean
77 -rm -f $(TARGET)
Note: See TracBrowser for help on using the repository browser.