mirror of
https://github.com/dyne/FreeJ.git
synced 2026-06-16 12:59:33 +02:00
bindings/python/Makefile.am cleanup
use updated version of make variables plus cleanups
This commit is contained in:
+13
-16
@@ -1,29 +1,26 @@
|
||||
INCLUDES = @FREEJ_STATIC_INCLUDES@
|
||||
AM_CPPFLAGS = @FREEJ_STATIC_INCLUDES@
|
||||
|
||||
FREEJ_FLAGS = @SDL_CFLAGS@ @FT2_CFLAGS@ @XIPH_CFLAGS@ @UNICAP_CFLAGS@ \
|
||||
@FFMPEG_CFLAGS@ @MOZJS_CFLAGS@ @SDLGFX_CFLAGS@
|
||||
|
||||
BUILT_SOURCES = freej_py.cpp
|
||||
swig_source = freej_py.cpp
|
||||
python_module = freej.py
|
||||
python_header = freej_py.h
|
||||
|
||||
freej_py.cpp: $(top_srcdir)/bindings/freej.i
|
||||
@SWIG_COMMAND@ -python -threads -shadow -o freej_py.cpp @SWIG_IFACE@
|
||||
BUILT_SOURCES = $(swig_source)
|
||||
|
||||
$(swig_source): $(SWIG_IFACE)
|
||||
$(SWIG_COMMAND) $(SWIG_PYTHON_OPT) -threads -shadow -o $(swig_source) $(SWIG_IFACE)
|
||||
|
||||
pkgpython_PYTHON = __init__.py
|
||||
nodist_pkgpython_PYTHON = freej.py
|
||||
nodist_pkgpython_PYTHON = $(python_module)
|
||||
pkgpyexec_LTLIBRARIES = _freej.la
|
||||
pkgpython_instdir = $(pythondir)
|
||||
#pkgpython_inst_PYTHON = freej.pth
|
||||
|
||||
|
||||
nodist__freej_la_SOURCES = freej_py.cpp
|
||||
_freej_la_CXXFLAGS = $(FREEJ_FLAGS) @PYTHON_CPPFLAGS@
|
||||
nodist__freej_la_SOURCES = $(swig_source)
|
||||
_freej_la_CXXFLAGS = $(FREEJ_FLAGS) $(SWIG_PYTHON_CPPFLAGS)
|
||||
_freej_la_LDFLAGS = -module -avoid-version
|
||||
_freej_la_LIBADD = $(PY_LIBS) -L$(top_builddir)/src/.libs -lfreej
|
||||
_freej_la_LIBADD = -L$(top_builddir)/src/.libs -lfreej
|
||||
|
||||
clean-local:
|
||||
rm -rf .libs _libs
|
||||
test -z "_freej.la" || rm -f _freej.la
|
||||
rm -f "./so_locations"
|
||||
rm -f *.o
|
||||
rm -f *.lo
|
||||
rm -f freej_py.cpp freej_py.h freej.py
|
||||
CLEANFILES = $(swig_source) $(python_module) $(python_header)
|
||||
|
||||
Reference in New Issue
Block a user