1 oblibdir = $(libdir)/openbox
3 #pythondir = $(oblibdir)/python
4 obpythondir = $(oblibdir)/python
6 CPPFLAGS = $(XFT_CFLAGS) $(SWIG_PYTHON_CFLAGS) @CPPFLAGS@
7 CXXFLAGS = $(filter-out -W -Wall,@CXXFLAGS@)
8 LDFLAGS = -module -avoid-version
9 INCLUDES = -I.. -I../otk -I../src
11 obpython_LTLIBRARIES = otkpy.la obpy.la
12 obpython_PYTHON = otk.py ob.py
14 otkpy_la_SOURCES = wrap_otk.cc
15 #otkpy_la_LIBADD = ../otk/libotk.la # do this for the global version of otk
17 obpy_la_SOURCES = wrap_ob.cc
19 EXTRA_DIST = otk.i ob.i callback.i
21 CLEANFILES = wrap_* *.py
22 MAINTAINERCLEANFILES = Makefile.in
25 $(mkinstalldirs) "$(DESTDIR)$(obpythondir)"
26 cd "$(DESTDIR)$(obpythondir)" && \
27 $(RM) -f _otk.so && $(LN_S) otkpy.so _otk.so
28 $(mkinstalldirs) "$(DESTDIR)$(obpythondir)"
29 cd "$(DESTDIR)$(obpythondir)" && \
30 $(RM) -f _ob.so && $(LN_S) obpy.so _ob.so
33 $(RM) "$(DESTDIR)$(obpythondir)/_otk.so"
34 $(RM) "$(DESTDIR)$(obpythondir)/_ob.so"
35 rmdir -p $(obpythondir) || true
39 otk.i: $(wildcard ../otk/*.hh)
42 ob.i: $(addprefix ../src/,openbox.hh screen.hh client.hh python.hh frame.hh)
46 $(SWIG) $(SWIG_PYTHON_OPT) $(INCLUDES) $(filter -I%,$(CPPFLAGS)) -nodefault -o $@ $<
48 wrap_ob.cc: ob.i callback.i
49 $(SWIG) $(SWIG_PYTHON_OPT) $(INCLUDES) $(filter -I%,$(CPPFLAGS)) -nodefault -o $@ $<