Last change
on this file since 67 was 65, checked in by mcalabre, 20 years ago |
Removed Glish libraries from the link list after restructuring libatnf.a, but
libmir.a is now required; added potential C++ warning options, but commented
out till the code compiles; revamped the makefile somewhat.
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
2.1 KB
|
Rev | Line | |
---|
[65] | 1 | TARGET := ../lib/atnf_sd.so
|
---|
[2] | 2 |
|
---|
[65] | 3 | CXX := g++-3.2.3
|
---|
| 4 | CXXFLAGS := -O -fPIC
|
---|
| 5 | CXXFLAGS += -w -fpermissive # This should be removed.
|
---|
| 6 | #CXXFLAGS += -ansi
|
---|
| 7 | #CXXFLAGS += -pedantic -Wno-long-long
|
---|
| 8 | #CXXFLAGS += -Wall -Wno-parentheses
|
---|
[2] | 9 |
|
---|
[65] | 10 | AIPSROOT := $(word 1, $(AIPSPATH))
|
---|
| 11 | AIPSINC := -I$(AIPSROOT)/code/include
|
---|
| 12 | AIPSLIB := $(AIPSROOT)/linux_gnu/lib
|
---|
| 13 | AIPSPPLIB := $(AIPSLIB)/version.o \
|
---|
| 14 | -L$(AIPSLIB) -latnf -ltrial -laips -laips_f -lmir -lwcs \
|
---|
| 15 | -lrpfits -lcfitsio -llapack -lblas -lg2c
|
---|
[2] | 16 |
|
---|
[65] | 17 | LD := g++-3.2.3
|
---|
| 18 | LDFLAGS := -shared -Wl,--soname=$(TARGET)
|
---|
| 19 | LDFLAGS += -s
|
---|
[2] | 20 |
|
---|
[65] | 21 | BOOSTLIB := /nfs/atapplic/boost/linux/lib/libboost_python-gcc-mt.a
|
---|
| 22 | BOOSTINC :=
|
---|
[2] | 23 |
|
---|
[65] | 24 | PYTHONINC := -I/usr/include/python2.2
|
---|
| 25 | PYTHONLIB := -lpython2.2
|
---|
[2] | 26 |
|
---|
[65] | 27 | CFITSIOINC := -I/usr/local/include/cfitsio
|
---|
[2] | 28 |
|
---|
[65] | 29 | INCDIRS := -I. $(AIPSINC) $(BOOSTINC) $(PYTHONINC) $(CFITSIOINC)
|
---|
| 30 | LIBS := $(BOOSTLIB) $(PYTHONLIB) $(AIPSPPLIB)
|
---|
[2] | 31 |
|
---|
[65] | 32 | OBJECTS := MathUtils.o \
|
---|
| 33 | SDContainer.o \
|
---|
| 34 | SDMemTable.o \
|
---|
| 35 | SDReader.o \
|
---|
| 36 | SDWriter.o \
|
---|
| 37 | SDMath.o \
|
---|
| 38 | SDTemplates.o \
|
---|
| 39 | python_SDMemTable.o \
|
---|
| 40 | python_SDReader.o \
|
---|
| 41 | python_SDWriter.o \
|
---|
| 42 | python_SDMath.o \
|
---|
| 43 | python_SD.o
|
---|
[31] | 44 |
|
---|
[2] | 45 |
|
---|
[65] | 46 | HEADERS := SDContainer.h \
|
---|
| 47 | SDMemTable.h \
|
---|
| 48 | SDReader.h \
|
---|
| 49 | SDWriter.h \
|
---|
| 50 | SDMath.h \
|
---|
| 51 | SDMemTableWrapper.h \
|
---|
| 52 | SDMathWrapper.h \
|
---|
| 53 | SDReaderWrapper.h \
|
---|
| 54 | SDWriterWrapper.h \
|
---|
| 55 | python_SD.h
|
---|
[2] | 56 |
|
---|
| 57 | .SUFFIXES: .c .o .cpp .cc .cxx .C
|
---|
| 58 |
|
---|
| 59 | .cpp.o:
|
---|
[65] | 60 | -@ echo
|
---|
| 61 | $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $<
|
---|
[2] | 62 |
|
---|
| 63 | .cc.o:
|
---|
[65] | 64 | -@ echo
|
---|
| 65 | $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $<
|
---|
[2] | 66 |
|
---|
[65] | 67 | .cxx.o:
|
---|
| 68 | -@ echo
|
---|
| 69 | $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $<
|
---|
[2] | 70 |
|
---|
| 71 | .C.o:
|
---|
[65] | 72 | -@ echo
|
---|
| 73 | $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $<
|
---|
[2] | 74 |
|
---|
| 75 |
|
---|
[65] | 76 | .PHONY : all clean objects realclean relink
|
---|
[2] | 77 |
|
---|
[65] | 78 | all : $(TARGET)
|
---|
| 79 |
|
---|
| 80 | relink : cleanso $(TARGET)
|
---|
| 81 |
|
---|
| 82 | objects : $(OBJECTS)
|
---|
| 83 |
|
---|
| 84 | $(TARGET) : $(OBJECTS)
|
---|
| 85 | -@ echo
|
---|
| 86 | $(LD) $(LDFLAGS) -o $(TARGET) $(OBJECTS) $(LIBS)
|
---|
| 87 |
|
---|
| 88 | $(OBJECTS) : $(HEADERS)
|
---|
| 89 |
|
---|
| 90 | clean :
|
---|
[2] | 91 | -rm -f $(OBJECTS)
|
---|
| 92 |
|
---|
[65] | 93 | cleanso :
|
---|
[2] | 94 | -rm -f $(TARGET)
|
---|
[65] | 95 |
|
---|
| 96 | realclean : clean cleanso
|
---|
Note:
See
TracBrowser
for help on using the repository browser.