X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2FMakefile.am;h=efb49e1ffa78416769442ce5f3a17749d19441d3;hb=a5a712f9ae652e500c81b42db548d213bde4712e;hp=5ea811f0ac949863e9e48561fdd6dc59c3bc0824;hpb=b34824a4e2ddc0247099fa1b3952de426bfde05b;p=chaz%2Fopenbox diff --git a/src/Makefile.am b/src/Makefile.am index 5ea811f0..efb49e1f 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -3,7 +3,7 @@ scriptdir = $(libdir)/openbox/python DEFAULT_MENU=$(pkgdatadir)/menu DEFAULT_STYLE=$(pkgdatadir)/styles/mbdtex -CPPFLAGS=$(XFT_CFLAGS) $(PYTHON_CFLAGS) @CPPFLAGS@ \ +CXXFLAGS=$(XFT_CFLAGS) $(PYTHON_CFLAGS) @CXXFLAGS@ \ -DDEFAULTMENU=\"$(DEFAULT_MENU)\" \ -DDEFAULTSTYLE=\"$(DEFAULT_STYLE)\" \ -DLOCALEDIR=\"$(localedir)\" \ @@ -11,25 +11,36 @@ CPPFLAGS=$(XFT_CFLAGS) $(PYTHON_CFLAGS) @CPPFLAGS@ \ LIBS=$(XFT_LIBS) $(PYTHON_LIBS) @LIBS@ -INCLUDES= -I../otk +INCLUDES= -I.. bin_PROGRAMS= openbox3 openbox3_LDADD=-L../otk -lotk @LIBINTL@ openbox3_SOURCES= actions.cc client.cc frame.cc openbox.cc screen.cc \ - main.cc rootwindow.cc backgroundwidget.cc labelwidget.cc \ - buttonwidget.cc python.cc openbox_wrap.cc + main.cc backgroundwidget.cc labelwidget.cc \ + buttonwidget.cc python.cc bindings.cc \ + openbox_wrap.cc +noinst_HEADERS= actions.hh backgroundwidget.hh bindings.hh buttonwidget.hh \ + client.hh frame.hh labelwidget.hh openbox.hh python.hh \ + screen.hh widgetbase.hh +openbox3_LDFLAGS= $(PYTHON_LDFLAGS) + +script_DATA = ob.py + +EXTRA_DIST = $(script_DATA) MAINTAINERCLEANFILES= Makefile.in distclean-local: rm -f *\~ *.orig *.rej .\#* -openbox.i: openbox.hh screen.hh client.hh +openbox.i: openbox.hh screen.hh client.hh python.hh frame.hh touch $@ -openbox_wrap.cc: openbox.i - swig $(filter -I%,$(CFLAGS)) -python -c++ -nodefault -o $@ $< +%.py: %_wrap.cc + +%_wrap.cc: %.i + swig -c -I../otk $(filter -I%,$(CXXFLAGS)) -python -shadow -c++ -nodefault -o $@ $< # local dependencies