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)/cv/include \
10 -I$(top_srcdir)/cxcore/include \
11 -I$(top_srcdir)/otherlibs/highgui
15 -DCV_NO_BACKWARD_COMPATIBILITY
17 noinst_HEADERS = cv.h constants.h
20 # SWIG ###############################################################################
22 # the following rules keep wrappers up to date, if SWIG is present
23 if UPDATE_SWIG_WRAPPERS
25 # this rule creates a single SWIG parseable header from cv.h and cxcore.h, etc.
27 $(top_srcdir)/cv/include/cv.h \
28 $(top_srcdir)/cv/include/cvtypes.h \
29 $(top_srcdir)/cxcore/include/cxcore.h \
30 $(top_srcdir)/cxcore/include/cxcore.hpp \
31 $(top_srcdir)/cxcore/include/cvver.h \
32 $(top_srcdir)/cxcore/include/cxtypes.h \
33 $(top_srcdir)/cxcore/include/cxerror.h \
35 $(CPP) -x c++ -I$(top_builddir) $(AM_CPPFLAGS) $(CPPFLAGS) -DSKIP_INCLUDES -o $@ $(top_srcdir)/cv/include/cv.h
37 # this rule creates a single SWIG parseable header from cv.h and cxcore.h, etc.
39 $(top_srcdir)/cv/include/cv.h \
40 $(top_srcdir)/cv/include/cvtypes.h \
41 $(top_srcdir)/cxcore/include/cxcore.h \
42 $(top_srcdir)/cxcore/include/cxcore.hpp \
43 $(top_srcdir)/cxcore/include/cxtypes.h \
44 $(top_srcdir)/cxcore/include/cxerror.h \
46 $(PYTHON) $(top_srcdir)/utils/extract_constants.py $(top_srcdir)/cxcore/include/cxcore.h > $@
47 $(PYTHON) $(top_srcdir)/utils/extract_constants.py $(top_srcdir)/cxcore/include/cvver.h >> $@
48 $(PYTHON) $(top_srcdir)/utils/extract_constants.py $(top_srcdir)/cxcore/include/cxtypes.h >> $@
49 $(PYTHON) $(top_srcdir)/utils/extract_constants.py $(top_srcdir)/cxcore/include/cxerror.h >> $@
50 $(PYTHON) $(top_srcdir)/utils/extract_constants.py $(top_srcdir)/cv/include/cv.h >> $@
51 $(PYTHON) $(top_srcdir)/utils/extract_constants.py $(top_srcdir)/cv/include/cvtypes.h >> $@