Update to 2.0.0 tree from current Fremantle build
[opencv] / interfaces / swig / filtered / Makefile.am
1
2 # opencv/interfaces/swig/filtered/Makefile.am
3 # 2005-05-07, Mark Asbach <asbach@ient.rwth-aachen.de>
4
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
7
8 CV_INCLUDES = \
9   -I$(top_srcdir)/include/opencv
10
11 AM_CPPFLAGS = \
12   $(CV_INCLUDES)                     \
13   -DCV_NO_BACKWARD_COMPATIBILITY
14
15 noinst_HEADERS = cv.h constants.h
16
17
18 # SWIG ###############################################################################
19
20 # the following rules keep wrappers up to date, if SWIG is present
21 if UPDATE_SWIG_WRAPPERS
22
23 # this rule creates a single SWIG parseable header from cv.h and cxcore.h, etc.
24 cv.h: \
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 \
32   Makefile.in
33         $(CPP) -x c++ -I$(top_builddir) $(AM_CPPFLAGS) $(CPPFLAGS) -DSKIP_INCLUDES -o $@ $(top_srcdir)/include/opencv/cv.h
34
35 # this rule creates a single SWIG parseable header from cv.h and cxcore.h, etc.
36 constants.h: \
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 \
43   Makefile.in
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 >> $@
50
51 endif