2003-02-05 10:39:14 +00:00
|
|
|
# XXX - INSTALL THIS GLOBALLY!#&@(!!!
|
|
|
|
pythondir = $(libdir)/openbox/python
|
|
|
|
|
|
|
|
CXXFLAGS = $(XFT_CFLAGS) $(filter-out -W -Wall,@CXXFLAGS@)
|
|
|
|
|
2003-02-05 10:48:37 +00:00
|
|
|
INCLUDES = -I.. -I../swig
|
2003-02-05 10:39:14 +00:00
|
|
|
|
|
|
|
python_LTLIBRARIES = otkpy.la
|
|
|
|
|
|
|
|
otkpy_la_CXXFLAGS = $(PYTHON_CFLAGS)
|
|
|
|
otkpy_la_LDFLAGS = -module
|
|
|
|
otkpy_la_SOURCES = wrap_otk.cc
|
2003-02-05 10:48:37 +00:00
|
|
|
otkpy_la_LIBADD = ../otk/libotk.la
|
2003-02-05 10:39:14 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2003-02-05 10:48:37 +00:00
|
|
|
otk.i: $(wildcard ../otk/*.hh)
|
|
|
|
@touch $@
|
|
|
|
|
|
|
|
wrap_%.cc: %.i
|
2003-02-05 10:39:14 +00:00
|
|
|
swig $(INCLUDES) $(filter -I%,$(CXXFLAGS)) -python -shadow -c++ -nodefault -o $@ $<
|
|
|
|
|