diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-02-05 10:48:37 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-02-05 10:48:37 +0000 |
| commit | 67fbe8354f27386235e0c8dc57bd036e34a4fe5e (patch) | |
| tree | 607f56f0b6284db691a2efeeffb8676f26f909fb /wrap/Makefile.am | |
| parent | 7d94983b2e0c55e9d6fa9bc39c102c5b8b8dd468 (diff) | |
dont make wrap a subdir of otk
Diffstat (limited to 'wrap/Makefile.am')
| -rw-r--r-- | wrap/Makefile.am | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/wrap/Makefile.am b/wrap/Makefile.am new file mode 100644 index 00000000..7c8e603a --- /dev/null +++ b/wrap/Makefile.am @@ -0,0 +1,35 @@ +# XXX - INSTALL THIS GLOBALLY!#&@(!!! +pythondir = $(libdir)/openbox/python + +CXXFLAGS = $(XFT_CFLAGS) $(filter-out -W -Wall,@CXXFLAGS@) + +INCLUDES = -I.. -I../swig + +python_LTLIBRARIES = otkpy.la + +otkpy_la_CXXFLAGS = $(PYTHON_CFLAGS) +otkpy_la_LDFLAGS = -module +otkpy_la_SOURCES = wrap_otk.cc +otkpy_la_LIBADD = ../otk/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 + +otk.i: $(wildcard ../otk/*.hh) + @touch $@ + +wrap_%.cc: %.i + swig $(INCLUDES) $(filter -I%,$(CXXFLAGS)) -python -shadow -c++ -nodefault -o $@ $< + |
