summaryrefslogtreecommitdiff
path: root/otk/wrap/Makefile.am
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-02-05 10:39:14 +0000
committerDana Jansens <danakj@orodu.net>2003-02-05 10:39:14 +0000
commit423367e8cda46f9d0f69932f617054cc15702aeb (patch)
tree6ea6f46496246767adf5f488307f4c6427f21a97 /otk/wrap/Makefile.am
parenta5a712f9ae652e500c81b42db548d213bde4712e (diff)
move the otk wrapper stuff into its own dir
Diffstat (limited to 'otk/wrap/Makefile.am')
-rw-r--r--otk/wrap/Makefile.am32
1 files changed, 32 insertions, 0 deletions
diff --git a/otk/wrap/Makefile.am b/otk/wrap/Makefile.am
new file mode 100644
index 00000000..4c2de002
--- /dev/null
+++ b/otk/wrap/Makefile.am
@@ -0,0 +1,32 @@
+# XXX - INSTALL THIS GLOBALLY!#&@(!!!
+pythondir = $(libdir)/openbox/python
+
+CXXFLAGS = $(XFT_CFLAGS) $(filter-out -W -Wall,@CXXFLAGS@)
+
+INCLUDES = -I.. -I../..
+
+python_LTLIBRARIES = otkpy.la
+
+otkpy_la_CXXFLAGS = $(PYTHON_CFLAGS)
+otkpy_la_LDFLAGS = -module
+otkpy_la_SOURCES = wrap_otk.cc
+otkpy_la_LIBADD = ../libotk.la
+
+CLEANFILES = wrap_* otk.py
+MAINTAINERCLEANFILES = Makefile.in
+
+python_PYTHON = otk.py
+
+install-exec-hook:
+ $(mkinstalldirs) "$(DESTDIR)$(pythondir)"
+ cd "$(DESTDIR)$(pythondir)" && \
+ $(RM) -f _otk.so && $(LN_S) otkpy.so _otk.so
+
+uninstall-local:
+ rm -f "$(DESTDIR)$(pythondir)/_otk.so"
+
+%.py: wrap_%.cc
+
+wrap_%.cc: %.i $(wildcard ../*.hh)
+ swig $(INCLUDES) $(filter -I%,$(CXXFLAGS)) -python -shadow -c++ -nodefault -o $@ $<
+