]> Dogcows Code - chaz/openbox/blob - wrap/Makefile.am
break, dont return
[chaz/openbox] / wrap / Makefile.am
1 oblibdir = $(libdir)/openbox
2
3 #pythondir = $(oblibdir)/python
4 obpythondir = $(oblibdir)/python
5
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
9
10 obpython_LTLIBRARIES = otkpy.la obpy.la
11 obpython_PYTHON = otk.py ob.py
12
13 otkpy_la_SOURCES = wrap_otk.cc
14 #otkpy_la_LIBADD = ../otk/libotk.la # do this for the global version of otk
15
16 obpy_la_SOURCES = wrap_ob.cc
17
18 EXTRA_DIST = otk.i ob.i callback.i
19
20 CLEANFILES = wrap_* *.py
21 MAINTAINERCLEANFILES = Makefile.in
22
23 install-exec-hook:
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
30
31 uninstall-am:
32 $(RM) "$(DESTDIR)$(obpythondir)/_otk.so"
33 $(RM) "$(DESTDIR)$(obpythondir)/_ob.so"
34 -rmdir -p $(obpythondir)
35
36 %.py: wrap_%.cc
37
38 otk.i: $(wildcard ../otk/*.hh)
39 @touch $@
40
41 ob.i: $(addprefix ../src/,openbox.hh screen.hh client.hh python.hh frame.hh)
42 @touch $@
43
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 $@ $<
46
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 $@ $<
49
This page took 0.041303 seconds and 4 git commands to generate.