source: trunk/src/Makefile@ 91

Last change on this file since 91 was 83, checked in by mar637, 20 years ago

chnaged namesapce form "atnf_sd" to "asap"

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