]> Dogcows Code - chaz/openbox/blobdiff - otk/Makefile.am
add the swig generated files
[chaz/openbox] / otk / Makefile.am
index 6b1f42c1701ebef56ed5527f4190bce5f0399de3..568ade0edf1ad22deb4b5cf25c03238f8a326d6e 100644 (file)
@@ -1,4 +1,4 @@
-CPPFLAGS=$(XFT_CFLAGS) @CPPFLAGS@
+CPPFLAGS=$(XFT_CFLAGS) $(PYTHON_CFLAGS) @CPPFLAGS@
 
 INCLUDES= -I../src
 
@@ -10,7 +10,9 @@ libotk_a_SOURCES= color.cc display.cc font.cc gccache.cc image.cc \
                   configuration.cc util.cc widget.cc focuswidget.cc \
                   button.cc eventhandler.cc eventdispatcher.cc \
                   label.cc focuslabel.cc application.cc appwidget.cc \
-                  basewidget.cc
+                  otk_wrap.cc
+
+#libotk_a_LDFLAGS = $(PYTHON_LDFLAGS)
 
 MAINTAINERCLEANFILES= Makefile.in
 
@@ -20,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 \
This page took 0.021114 seconds and 4 git commands to generate.