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
RevLine 
[65]1TARGET := ../lib/atnf_sd.so
[2]2
[65]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
[2]9
[65]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
[2]16
[65]17LD := g++-3.2.3
18LDFLAGS := -shared -Wl,--soname=$(TARGET)
19LDFLAGS += -s
[2]20
[65]21BOOSTLIB := /nfs/atapplic/boost/linux/lib/libboost_python-gcc-mt.a
22BOOSTINC :=
[2]23
[65]24PYTHONINC := -I/usr/include/python2.2
25PYTHONLIB := -lpython2.2
[2]26
[65]27CFITSIOINC := -I/usr/local/include/cfitsio
[2]28
[65]29INCDIRS := -I. $(AIPSINC) $(BOOSTINC) $(PYTHONINC) $(CFITSIOINC)
30LIBS := $(BOOSTLIB) $(PYTHONLIB) $(AIPSPPLIB)
[2]31
[65]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
[31]44
[2]45
[65]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
[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]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 :
[2]91 -rm -f $(OBJECTS)
92
[65]93cleanso :
[2]94 -rm -f $(TARGET)
[65]95
96realclean : clean cleanso
Note: See TracBrowser for help on using the repository browser.