diff options
Diffstat (limited to 'src/Makefile.am')
| -rw-r--r-- | src/Makefile.am | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 0b35f72a..154791dd 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -7,7 +7,8 @@ CXXFLAGS=$(XFT_CFLAGS) $(PYTHON_CFLAGS) @CXXFLAGS@ \ -DDEFAULTMENU=\"$(DEFAULT_MENU)\" \ -DDEFAULTSTYLE=\"$(DEFAULT_STYLE)\" \ -DLOCALEDIR=\"$(localedir)\" \ --DSCRIPTDIR=\"$(scriptdir)\" +-DSCRIPTDIR=\"$(scriptdir)\" -DSWIG_GLOBAL +# -DSWIG_GLOBAL is for the swigruntime.cc (see swigruntime.i for explanation) LIBS=$(XFT_LIBS) $(PYTHON_LIBS) @LIBS@ @@ -15,12 +16,12 @@ INCLUDES= -I.. bin_PROGRAMS= openbox3 -openbox3_LDADD=-L../otk -lotk -lswigpy @LIBINTL@ +openbox3_LDADD=-L../otk -lotk @LIBINTL@ openbox3_SOURCES= actions.cc client.cc frame.cc openbox.cc screen.cc \ main.cc backgroundwidget.cc labelwidget.cc \ buttonwidget.cc python.cc bindings.cc \ - openbox_wrap.cc + swigruntime.cc openbox_wrap.cc openbox3_LDFLAGS= $(PYTHON_LDFLAGS) script_DATA = ob.py @@ -38,4 +39,7 @@ openbox.i: openbox.hh screen.hh client.hh python.hh frame.hh %_wrap.cc: %.i swig -c -I../otk $(filter -I%,$(CXXFLAGS)) -python -shadow -c++ -nodefault -o $@ $< +swigruntime.cc: swigruntime.i + swig -python -c++ -o $@ $< + # local dependencies |
