4 # ---------------------------------------------
6 # ---------------------------------------------
8 %_wrap.cxx: ${srcdir}/%.i
9 $(SWIG) -c++ -shadow -python ${SWIG_CPPFLAGS} \
10 -o ${patsubst %.lo,%.cxx,$@} $<
13 ${RM} ${patsubst %.lo,.deps/%.Plo,$@}
14 make ${patsubst %.lo,.deps/%.Plo,$@}
15 $(top_builddir)/libtool --mode=compile $(CXX) ${CPPFLAGS} -c -o $@ ${patsubst %.lo,%.cxx,$@}
19 $(SWIG) -M -c++ -python -shadow ${SWIG_CPPFLAGS} $< > .deps/temp
20 sed -e "1s;${srcdir};.;" < .deps/temp > $@
24 #----------------------------------------------
25 # Install in subdirectories
26 #----------------------------------------------
28 bindir = ${exec_prefix}/bin/${PACKAGE}
29 datadir = ${prefix}/share/${PACKAGE}/resources
30 libdir = $(prefix)/lib/${PACKAGE}
31 includedir = $(prefix)/include/${PACKAGE}
32 pythondir = ${PYTHON_SITE_INSTALL}
34 #----------------------------------------------
35 # Post-installation rules
36 #----------------------------------------------
38 install-exec-hook: install-swig
40 install-swig: $(patsubst lib%.la, $(libdir)/_%.so, \
41 $(filter lib%SWIG.la, $(lib_LTLIBRARIES)))
43 $(libdir)/_%.so: $(libdir)/lib%.so