openbox/wrap/Makefile.am
Dana Jansens 4534151926 split up the otk stuff into separate files.
wrap otk::Property properly with typemaps so that it is usable.
wrap otk::Timer properly so that you can use it with a python callback
2003-02-17 21:25:52 +00:00

49 lines
1.6 KiB
Makefile

oblibdir = $(libdir)/openbox
#pythondir = $(oblibdir)/python
obpythondir = $(oblibdir)/python
CPPFLAGS = -I$(srcdir)/../otk -I$(srcdir)/../src $(XFT_CFLAGS) $(SWIG_PYTHON_CFLAGS) @CPPFLAGS@
CXXFLAGS = $(filter-out -W -Wall,@CXXFLAGS@)
LDFLAGS = -module -avoid-version
obpython_LTLIBRARIES = otkpy.la obpy.la
obpython_PYTHON = otk.py ob.py
otkpy_la_SOURCES = wrap_otk.cc
#otkpy_la_LIBADD = ../otk/libotk.la # do this for the global version of otk
obpy_la_SOURCES = wrap_ob.cc
EXTRA_DIST = otk.i ob.i callback.i
CLEANFILES = wrap_* *.py
MAINTAINERCLEANFILES = Makefile.in
install-exec-hook:
$(mkinstalldirs) "$(DESTDIR)$(obpythondir)"
cd "$(DESTDIR)$(obpythondir)" && \
$(RM) -f _otk.so && $(LN_S) otkpy.so _otk.so
$(mkinstalldirs) "$(DESTDIR)$(obpythondir)"
cd "$(DESTDIR)$(obpythondir)" && \
$(RM) -f _ob.so && $(LN_S) obpy.so _ob.so
uninstall-am:
$(RM) "$(DESTDIR)$(obpythondir)/_otk.so"
$(RM) "$(DESTDIR)$(obpythondir)/_ob.so"
-rmdir -p $(obpythondir)
%.py: wrap_%.cc
otk.i: $(wildcard ../otk/*.hh)
@touch $@
ob.i: $(addprefix ../src/,openbox.hh screen.hh client.hh python.hh frame.hh)
@touch $@
wrap_otk.cc: otk.i otk_point.i otk_rect.i otk_size.i otk_rendercolor.i otk_rendertexture.i otk_ustring.i otk_font.i otk_renderstyle.i otk_widget.i otk_label.i otk_button.i otk_appwidget.i otk_application.i otk_strut.i otk_property.i otk_timer.i
$(SWIG) $(SWIG_PYTHON_OPT) $(filter -I%,$(CPPFLAGS)) -nodefault -o $@ $<
wrap_ob.cc: ob.i ob_callback.i ob_client.i ob_screen.i ob_openbox.i ob_frame.i ob_python.i
$(SWIG) $(SWIG_PYTHON_OPT) $(filter -I%,$(CPPFLAGS)) -nodefault -o $@ $<