source: trunk/src/Makefile@ 71

Last change on this file since 71 was 71, checked in by mmarquar, 20 years ago

Statically linking libwcs. Removed -w option.

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