]> icculus.org git repositories - mikachu/openbox.git/blob - wrap/Makefile.am
put the desktop names in the right variable
[mikachu/openbox.git] / 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
45         $(SWIG) $(SWIG_PYTHON_OPT) $(filter -I%,$(CPPFLAGS)) -nodefault -o $@ $<
46
47 wrap_ob.cc: ob.i callback.i
48         $(SWIG) $(SWIG_PYTHON_OPT) $(filter -I%,$(CPPFLAGS)) -nodefault -o $@ $<
49