From 5869cc29ef15181427e65079d9a52c5d21190206 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 24 Dec 2002 21:27:16 +0000 Subject: wrap otk with swig/python --- otk/Makefile.am | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'otk/Makefile.am') diff --git a/otk/Makefile.am b/otk/Makefile.am index 3f32a45e..568ade0e 100644 --- a/otk/Makefile.am +++ b/otk/Makefile.am @@ -1,4 +1,4 @@ -CPPFLAGS=$(XFT_CFLAGS) @CPPFLAGS@ +CPPFLAGS=$(XFT_CFLAGS) $(PYTHON_CFLAGS) @CPPFLAGS@ INCLUDES= -I../src @@ -9,7 +9,10 @@ libotk_a_SOURCES= color.cc display.cc font.cc gccache.cc image.cc \ texture.cc timer.cc timerqueuemanager.cc style.cc \ configuration.cc util.cc widget.cc focuswidget.cc \ button.cc eventhandler.cc eventdispatcher.cc \ - label.cc focuslabel.cc application.cc appwidget.cc + label.cc focuslabel.cc application.cc appwidget.cc \ + otk_wrap.cc + +#libotk_a_LDFLAGS = $(PYTHON_LDFLAGS) MAINTAINERCLEANFILES= Makefile.in @@ -19,6 +22,12 @@ distclean-local: otk_test: libotk.a otk_test.cc $(CXX) $(CPPFLAGS) -DHAVE_CONFIG_H -I. -I. -I.. -I../src $(XFT_CFLAGS) -Wall -W -pedantic -DNDEBUG -g -O2 -o otk_test otk_test.cc $(XFT_LIBS) ./libotk.a +otk.i: $(wildcard *.hh) + touch $@ + +otk_wrap.cc: otk.i + swig -python -c++ -nodefault -o $@ $< + # local dependencies application.o: application.cc application.hh eventdispatcher.hh \ eventhandler.hh display.hh configuration.hh timerqueuemanager.hh \ -- cgit v1.2.3