source: trunk/src/Makefile@ 452

Last change on this file since 452 was 416, checked in by kil064, 20 years ago

add SDPol

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.8 KB
RevLine 
[99]1TARGET := ../lib/_asap.so
[2]2
[260]3ifdef NARRABRI_ASAP
4CXX := /usr/bin/g++
5else
[65]6CXX := g++-3.2.3
[260]7endif
8
[65]9CXXFLAGS := -O -fPIC
[414]10
[65]11#CXXFLAGS += -ansi
[82]12CXXFLAGS += -pedantic -Wno-long-long
[65]13#CXXFLAGS += -Wall -Wno-parentheses
[2]14
[193]15CFITSIOLIB := /usr/local/lib/libcfitsio_lfs.a #-lcfitsio
[72]16CFITSIOINC := -I/usr/local/include/cfitsio
[71]17
[82]18CASAROOT := $(word 1, $(AIPSPATH))
19CASAINC := -I$(CASAROOT)/code/include
20CASALIB := $(CASAROOT)/linux_gnu/lib
21CASAPPLIB := $(CASALIB)/version.o \
22 -L$(CASALIB) \
[193]23 -latnf -limages -lms -lcomponents -lcoordinates \
[82]24 -llattices -lfits -lmeasures -lmeasures_f \
25 -ltables -lscimath -lscimath_f -lcasa \
26 $(CASALIB)/libwcs.a -lmir \
[71]27 -lrpfits $(CFITSIOLIB) -llapack -lblas -lg2c
[2]28
[65]29LD := g++-3.2.3
30LDFLAGS := -shared -Wl,--soname=$(TARGET)
31LDFLAGS += -s
[2]32
[77]33BOOSTLIB := /nfs/atapplic/boost/linux/lib/libboost_python2.3-gcc-mt.a
[216]34BOOSTINC := -I/usr/local/include/boost
[2]35
[260]36
[77]37PYTHONINC := -I/usr/local/include/python2.3
38PYTHONLIB := -lpython2.3
[2]39
[82]40INCDIRS := -I. $(CASAINC) $(BOOSTINC) $(PYTHONINC) $(CFITSIOINC)
41LIBS := $(BOOSTLIB) $(PYTHONLIB) $(CASAPPLIB)
[2]42
[65]43OBJECTS := MathUtils.o \
[137]44 MathUtils2.o \
[356]45 SDAttr.o \
[65]46 SDContainer.o \
[416]47 SDPol.o \
[65]48 SDMemTable.o \
49 SDReader.o \
50 SDWriter.o \
51 SDMath.o \
[99]52 SDFitter.o \
[65]53 SDTemplates.o \
[168]54 SDMathWrapper.o \
[193]55 SDFITSImageWriter.o \
[201]56 SDAsciiWriter.o \
[297]57 SDLineFinder.o \
[65]58 python_SDMemTable.o \
59 python_SDReader.o \
60 python_SDWriter.o \
61 python_SDMath.o \
[99]62 python_SDFitter.o \
[297]63 python_SDLineFinder.o \
[65]64 python_SD.o
[31]65
[2]66
[216]67HEADERS := SDDefs.h \
[356]68 SDAttr.h \
[216]69 SDContainer.h \
[65]70 SDMemTable.h \
[416]71 SDPol.h \
[65]72 SDReader.h \
73 SDWriter.h \
74 SDMath.h \
[99]75 SDFitter.h \
[65]76 SDMemTableWrapper.h \
77 SDMathWrapper.h \
78 SDReaderWrapper.h \
79 SDWriterWrapper.h \
[193]80 SDFITSImageWriter.h \
[201]81 SDAsciiWriter.h \
[297]82 SDLineFinder.h \
[65]83 python_SD.h
[2]84
[193]85
[2]86.SUFFIXES: .c .o .cpp .cc .cxx .C
87
88.cpp.o:
[65]89 -@ echo
90 $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $<
[2]91
92.cc.o:
[65]93 -@ echo
94 $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $<
[2]95
[65]96.cxx.o:
97 -@ echo
98 $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $<
[2]99
100.C.o:
[65]101 -@ echo
102 $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $<
[2]103
104
[65]105.PHONY : all clean objects realclean relink
[2]106
[65]107all : $(TARGET)
108
109relink : cleanso $(TARGET)
110
111objects : $(OBJECTS)
112
113$(TARGET) : $(OBJECTS)
114 -@ echo
115 $(LD) $(LDFLAGS) -o $(TARGET) $(OBJECTS) $(LIBS)
116
117$(OBJECTS) : $(HEADERS)
118
119clean :
[2]120 -rm -f $(OBJECTS)
121
[65]122cleanso :
[2]123 -rm -f $(TARGET)
[65]124
125realclean : clean cleanso
Note: See TracBrowser for help on using the repository browser.