From 3f02e25624e0d691e91091ebda022a43bfabe775 Mon Sep 17 00:00:00 2001 From: Stefan Sayer Date: Mon, 4 Feb 2008 13:01:32 +0000 Subject: [PATCH] Makefile for py_sems examples git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@647 8eb893ce-cfd4-0310-b710-fb5ebe64c474 --- apps/examples/py_sems_ex/Makefile | 11 +++++++++++ apps/py_sems/Makefile | 21 +-------------------- apps/py_sems/Makefile.defs | 15 +++++++++++++++ 3 files changed, 27 insertions(+), 20 deletions(-) create mode 100644 apps/examples/py_sems_ex/Makefile create mode 100644 apps/py_sems/Makefile.defs diff --git a/apps/examples/py_sems_ex/Makefile b/apps/examples/py_sems_ex/Makefile new file mode 100644 index 00000000..5e735c07 --- /dev/null +++ b/apps/examples/py_sems_ex/Makefile @@ -0,0 +1,11 @@ + +NAME=py_sems_examples +VERSION=0.1.0-1 + +LIBDIR=. + +COREPATH=../../../core +PYSEMSPATH=../../py_sems + +include $(PYSEMSPATH)/Makefile.py_sems_application + diff --git a/apps/py_sems/Makefile b/apps/py_sems/Makefile index e1f84381..1022c51a 100644 --- a/apps/py_sems/Makefile +++ b/apps/py_sems/Makefile @@ -1,29 +1,10 @@ plug_in_name = py_sems +include Makefile.defs COREPATH ?=../../core -SCRIPT = Python TTS ?= y -# -# Python specific -# (no need to change this if you want to use perl) -# -# PYTHON_VERSION might also be 2.2 -- except for the use of GIL -# do a ls /usr/include/python2.3/Python.h to see if it's there -PYTHON_VERSION ?= `python -c 'import sys;print sys.version[0:3]';` -PY_VER = $(PYTHON_VERSION) -PY_EXE = python$(PY_VER) -# adjust to point to python include path -# can also be /usr/include/python$(PY_VER) -# look for Python.h in the specified path -# Python prefix is what you configured python with -# if you built from source (e.g. ./configure --with-prefix=/usr/local) -# on debian it's often /usr, on SuSE and FreeBSD /usr/local -PYTHON_PREFIX = /usr -PYTHON_DIR = $(PYTHON_PREFIX)/include/python$(PY_VER) -PYTHON_LIBDIR = $(PYTHON_PREFIX)/lib/python$(PY_VER) - # put used Python modules from lib-dynload here, e.g. time, mysql, _cvs.so etc. PYTHON_DYNLOAD_MODULES = $(wildcard $(PYTHON_LIBDIR)/lib-dynload/*.so) \ $(wildcard $(PYTHON_LIBDIR)/site-packages/*.so) diff --git a/apps/py_sems/Makefile.defs b/apps/py_sems/Makefile.defs new file mode 100644 index 00000000..fdef5a4b --- /dev/null +++ b/apps/py_sems/Makefile.defs @@ -0,0 +1,15 @@ +# PYTHON_VERSION might also be 2.2 -- except for the use of GIL +# do a ls /usr/include/python2.3/Python.h to see if it's there +PYTHON_VERSION ?= `python -c 'import sys;print sys.version[0:3]';` +PY_VER = $(PYTHON_VERSION) +PY_EXE = python$(PY_VER) + +# adjust to point to python include path +# can also be /usr/include/python$(PY_VER) +# look for Python.h in the specified path +# Python prefix is what you configured python with +# if you built from source (e.g. ./configure --with-prefix=/usr/local) +# on debian it's often /usr, on SuSE and FreeBSD /usr/local +PYTHON_PREFIX = /usr +PYTHON_DIR = $(PYTHON_PREFIX)/include/python$(PY_VER) +PYTHON_LIBDIR = $(PYTHON_PREFIX)/lib/python$(PY_VER)