source: trunk/src/Makefile@ 357

Last change on this file since 357 was 356, checked in by kil064, 20 years ago

add SDAttr

  • 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
[82]10#CXXFLAGS += -fpermissive # This should be removed.
[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 \
47 SDMemTable.o \
48 SDReader.o \
49 SDWriter.o \
50 SDMath.o \
[99]51 SDFitter.o \
[65]52 SDTemplates.o \
[168]53 SDMathWrapper.o \
[193]54 SDFITSImageWriter.o \
[201]55 SDAsciiWriter.o \
[297]56 SDLineFinder.o \
[65]57 python_SDMemTable.o \
58 python_SDReader.o \
59 python_SDWriter.o \
60 python_SDMath.o \
[99]61 python_SDFitter.o \
[297]62 python_SDLineFinder.o \
[65]63 python_SD.o
[31]64
[2]65
[216]66HEADERS := SDDefs.h \
[356]67 SDAttr.h \
[216]68 SDContainer.h \
[65]69 SDMemTable.h \
70 SDReader.h \
71 SDWriter.h \
72 SDMath.h \
[99]73 SDFitter.h \
[65]74 SDMemTableWrapper.h \
75 SDMathWrapper.h \
76 SDReaderWrapper.h \
77 SDWriterWrapper.h \
[193]78 SDFITSImageWriter.h \
[201]79 SDAsciiWriter.h \
[297]80 SDLineFinder.h \
[65]81 python_SD.h
[2]82
[193]83
[2]84.SUFFIXES: .c .o .cpp .cc .cxx .C
85
86.cpp.o:
[65]87 -@ echo
88 $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $<
[2]89
90.cc.o:
[65]91 -@ echo
92 $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $<
[2]93
[65]94.cxx.o:
95 -@ echo
96 $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $<
[2]97
98.C.o:
[65]99 -@ echo
100 $(CXX) -c $(CXXFLAGS) $(INCDIRS) -o $@ $<
[2]101
102
[65]103.PHONY : all clean objects realclean relink
[2]104
[65]105all : $(TARGET)
106
107relink : cleanso $(TARGET)
108
109objects : $(OBJECTS)
110
111$(TARGET) : $(OBJECTS)
112 -@ echo
113 $(LD) $(LDFLAGS) -o $(TARGET) $(OBJECTS) $(LIBS)
114
115$(OBJECTS) : $(HEADERS)
116
117clean :
[2]118 -rm -f $(OBJECTS)
119
[65]120cleanso :
[2]121 -rm -f $(TARGET)
[65]122
123realclean : clean cleanso
Note: See TracBrowser for help on using the repository browser.