Last change
on this file since 58 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
|
Rev | Line | |
---|
[45] | 1 | TARGET = ../lib/atnf_sd.so
|
---|
[2] | 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 \
|
---|
[45] | 21 | -lglish -ledit -lsos -lnpd -lwcs
|
---|
[2] | 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 |
|
---|
[45] | 39 | OBJECTS = MathUtils.o \
|
---|
| 40 | SDContainer.o \
|
---|
| 41 | SDMemTable.o \
|
---|
| 42 | SDReader.o \
|
---|
[31] | 43 | SDWriter.o \
|
---|
[2] | 44 | SDMath.o \
|
---|
[31] | 45 | SDTemplates.o \
|
---|
| 46 | python_SDMemTable.o \
|
---|
| 47 | python_SDReader.o \
|
---|
| 48 | python_SDWriter.o \
|
---|
| 49 | python_SDMath.o \
|
---|
| 50 | python_SD.o
|
---|
[2] | 51 |
|
---|
| 52 | HEADERS = SDContainer.h \
|
---|
[31] | 53 | SDMemTable.h \
|
---|
| 54 | SDReader.h \
|
---|
| 55 | SDWriter.h \
|
---|
| 56 | SDMath.h \
|
---|
| 57 | SDMemTableWrapper.h \
|
---|
| 58 | python_SD.h
|
---|
[2] | 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 |
|
---|
| 79 | clean:
|
---|
| 80 | -rm -f $(OBJECTS)
|
---|
| 81 |
|
---|
| 82 | realclean: clean
|
---|
| 83 | -rm -f $(TARGET)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.