2 # opencv/interfaces/swig/filtered/Makefile.am
3 # 2005-05-07, Mark Asbach <asbach@ient.rwth-aachen.de>
5 # depending on the Automake conditionals set by configure, we will build the various
6 # script language interfaces that SWIG is capable of generating wrappers for
9 -I$(top_srcdir)/include/opencv
13 -DCV_NO_BACKWARD_COMPATIBILITY
15 noinst_HEADERS = cv.h constants.h
18 # SWIG ###############################################################################
20 # the following rules keep wrappers up to date, if SWIG is present
21 if UPDATE_SWIG_WRAPPERS
23 # this rule creates a single SWIG parseable header from cv.h and cxcore.h, etc.
25 $(top_srcdir)/include/opencv/cv.h \
26 $(top_srcdir)/include/opencv/cvtypes.h \
27 $(top_srcdir)/include/opencv/cxcore.h \
28 $(top_srcdir)/include/opencv/cxcore.hpp \
29 $(top_srcdir)/include/opencv/cvver.h \
30 $(top_srcdir)/include/opencv/cxtypes.h \
31 $(top_srcdir)/include/opencv/cxerror.h \
33 $(CPP) -x c++ -I$(top_builddir) $(AM_CPPFLAGS) $(CPPFLAGS) -DSKIP_INCLUDES -o $@ $(top_srcdir)/include/opencv/cv.h
35 # this rule creates a single SWIG parseable header from cv.h and cxcore.h, etc.
37 $(top_srcdir)/include/opencv/cv.h \
38 $(top_srcdir)/include/opencv/cvtypes.h \
39 $(top_srcdir)/include/opencv/cxcore.h \
40 $(top_srcdir)/include/opencv/cxcore.hpp \
41 $(top_srcdir)/include/opencv/cxtypes.h \
42 $(top_srcdir)/include/opencv/cxerror.h \
44 $(PYTHON) $(top_srcdir)/utils/extract_constants.py $(top_srcdir)/include/opencv/cxcore.h > $@
45 $(PYTHON) $(top_srcdir)/utils/extract_constants.py $(top_srcdir)/include/opencv/cvver.h >> $@
46 $(PYTHON) $(top_srcdir)/utils/extract_constants.py $(top_srcdir)/include/opencv/cxtypes.h >> $@
47 $(PYTHON) $(top_srcdir)/utils/extract_constants.py $(top_srcdir)/include/opencv/cxerror.h >> $@
48 $(PYTHON) $(top_srcdir)/utils/extract_constants.py $(top_srcdir)/include/opencv/cv.h >> $@
49 $(PYTHON) $(top_srcdir)/utils/extract_constants.py $(top_srcdir)/include/opencv/cvtypes.h >> $@