source: trunk/src/Makefile@ 67

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
Line 
1TARGET := ../lib/atnf_sd.so
2
3CXX := g++-3.2.3
4CXXFLAGS := -O -fPIC
5CXXFLAGS += -w -fpermissive # This should be removed.
6#CXXFLAGS += -ansi
7#CXXFLAGS += -pedantic -Wno-long-long
8#CXXFLAGS += -Wall -Wno-parentheses
9
10AIPSROOT := $(word 1, $(AIPSPATH))
11AIPSINC := -I$(AIPSROOT)/code/include
12AIPSLIB := $(AIPSROOT)/linux_gnu/lib
13AIPSPPLIB := $(AIPSLIB)/version.o \
14 -L$(AIPSLIB) -latnf -ltrial -laips -laips_f -lmir -lwcs \
15 -lrpfits -lcfitsio -llapack -lblas -lg2c
16
17LD := g++-3.2.3
18LDFLAGS := -shared -Wl,--soname=$(TARGET)
19LDFLAGS += -s
20
21BOOSTLIB := /nfs/atapplic/boost/linux/lib/libboost_python-gcc-mt.a
22BOOSTINC :=
23
24PYTHONINC := -I/usr/include/python2.2
25PYTHONLIB := -lpython2.2
26
27CFITSIOINC := -I/usr/local/include/cfitsio
28
29INCDIRS := -I. $(AIPSINC) $(BOOSTINC) $(PYTHONINC) $(CFITSIOINC)
30LIBS := $(BOOSTLIB) $(PYTHONLIB) $(AIPSPPLIB)
31
32OBJECTS := 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
44
45
46HEADERS := 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
56
57.SUFFIXES: .c .o .cpp .cc .cxx .C
58
59.cpp.o:
60 -@ echo
61 $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $<
62
63.cc.o:
64 -@ echo
65 $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $<
66
67.cxx.o:
68 -@ echo
69 $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $<
70
71.C.o:
72 -@ echo
73 $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $<
74
75
76.PHONY : all clean objects realclean relink
77
78all : $(TARGET)
79
80relink : cleanso $(TARGET)
81
82objects : $(OBJECTS)
83
84$(TARGET) : $(OBJECTS)
85 -@ echo
86 $(LD) $(LDFLAGS) -o $(TARGET) $(OBJECTS) $(LIBS)
87
88$(OBJECTS) : $(HEADERS)
89
90clean :
91 -rm -f $(OBJECTS)
92
93cleanso :
94 -rm -f $(TARGET)
95
96realclean : clean cleanso
Note: See TracBrowser for help on using the repository browser.