1 oblibdir = $(libdir)/openbox
3 #pythondir = $(oblibdir)/python
4 obpythondir = $(oblibdir)/python
6 CPPFLAGS = -I$(srcdir)/../otk -I$(srcdir)/../src $(XFT_CFLAGS) $(SWIG_PYTHON_CFLAGS) @CPPFLAGS@
7 CXXFLAGS = $(filter-out -W -Wall,@CXXFLAGS@)
8 LDFLAGS = -module -avoid-version
10 obpython_LTLIBRARIES = otkpy.la obpy.la
11 obpython_PYTHON = otk.py ob.py
13 otkpy_la_SOURCES = wrap_otk.cc
14 #otkpy_la_LIBADD = ../otk/libotk.la # do this for the global version of otk
16 obpy_la_SOURCES = wrap_ob.cc
18 EXTRA_DIST = otk.i ob.i callback.i
20 CLEANFILES = wrap_* *.py
21 MAINTAINERCLEANFILES = Makefile.in
24 $(mkinstalldirs) "$(DESTDIR)$(obpythondir)"
25 cd "$(DESTDIR)$(obpythondir)" && \
26 $(RM) -f _otk.so && $(LN_S) otkpy.so _otk.so
27 $(mkinstalldirs) "$(DESTDIR)$(obpythondir)"
28 cd "$(DESTDIR)$(obpythondir)" && \
29 $(RM) -f _ob.so && $(LN_S) obpy.so _ob.so
32 $(RM) "$(DESTDIR)$(obpythondir)/_otk.so"
33 $(RM) "$(DESTDIR)$(obpythondir)/_ob.so"
34 -rmdir -p $(obpythondir)
38 otk.i: $(wildcard ../otk/*.hh)
41 ob.i: $(addprefix ../src/,openbox.hh screen.hh client.hh python.hh frame.hh)
44 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
45 $(SWIG) $(SWIG_PYTHON_OPT) $(filter -I%,$(CPPFLAGS)) -nodefault -o $@ $<
47 wrap_ob.cc: ob.i ob_callback.i ob_client.i ob_screen.i ob_openbox.i ob_frame.i ob_python.i
48 $(SWIG) $(SWIG_PYTHON_OPT) $(filter -I%,$(CPPFLAGS)) -nodefault -o $@ $<