2da24afe45fa05d1cf3798ee7ceb476b6b183874
[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)/cv/include         \
10   -I$(top_srcdir)/cxcore/include     \
11   -I$(top_srcdir)/otherlibs/highgui
12
13 AM_CPPFLAGS = \
14   $(CV_INCLUDES)                     \
15   -DCV_NO_BACKWARD_COMPATIBILITY
16
17 noinst_HEADERS = cv.h constants.h
18
19
20 # SWIG ###############################################################################
21
22 # the following rules keep wrappers up to date, if SWIG is present
23 if UPDATE_SWIG_WRAPPERS
24
25 # this rule creates a single SWIG parseable header from cv.h and cxcore.h, etc.
26 cv.h: \
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 \
34   Makefile.in
35         $(CPP) -x c++ -I$(top_builddir) $(AM_CPPFLAGS) $(CPPFLAGS) -DSKIP_INCLUDES -o $@ $(top_srcdir)/cv/include/cv.h
36
37 # this rule creates a single SWIG parseable header from cv.h and cxcore.h, etc.
38 constants.h: \
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 \
45   Makefile.in
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     >> $@
52
53 endif