Last change
on this file since 33 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
|
Rev | Line | |
---|
[2] | 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) \
|
---|
[31] | 15 | $(AIPSLIB)/version.o \
|
---|
[2] | 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 |
|
---|
[31] | 34 | CFITSIOINC = -I/usr/local/include/cfitsio
|
---|
| 35 |
|
---|
| 36 | INCDIRS = -I. $(AIPSINC) $(BOOSTINC) $(PYTHONINC) $(CFITSIOINC)
|
---|
[2] | 37 | LIBDIRS = $(BOOSTLIB) $(PYTHONLIB) $(AIPSPPLIB)
|
---|
| 38 |
|
---|
| 39 | OBJECTS = SDContainer.o \
|
---|
[31] | 40 | SDMemTable.o \
|
---|
| 41 | SDReader.o \
|
---|
| 42 | SDWriter.o \
|
---|
[2] | 43 | SDMath.o \
|
---|
[31] | 44 | SDTemplates.o \
|
---|
| 45 | python_SDMemTable.o \
|
---|
| 46 | python_SDReader.o \
|
---|
| 47 | python_SDWriter.o \
|
---|
| 48 | python_SDMath.o \
|
---|
| 49 | python_SD.o
|
---|
[2] | 50 |
|
---|
| 51 | HEADERS = SDContainer.h \
|
---|
[31] | 52 | SDMemTable.h \
|
---|
| 53 | SDReader.h \
|
---|
| 54 | SDWriter.h \
|
---|
| 55 | SDMath.h \
|
---|
| 56 | SDMemTableWrapper.h \
|
---|
| 57 | python_SD.h
|
---|
[2] | 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 |
|
---|
| 78 | clean:
|
---|
| 79 | -rm -f $(OBJECTS)
|
---|
| 80 |
|
---|
| 81 | realclean: clean
|
---|
| 82 | -rm -f $(TARGET)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.