summaryrefslogtreecommitdiffstats
path: root/python/pyversion.Makefile
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2012-05-20 09:11:40 -0500
committerDavid Tardon <dtardon@redhat.com>2012-05-29 07:35:26 +0200
commit86d2a9d3c4b61118aed2fa97dcff9df36557bc84 (patch)
treee3f68d87a0e1fe3eedba0070d2bd72e08fa60f03 /python/pyversion.Makefile
parentbin icuversion.mk, set the variables in configure (diff)
downloadcore-86d2a9d3c4b61118aed2fa97dcff9df36557bc84.tar.gz
core-86d2a9d3c4b61118aed2fa97dcff9df36557bc84.zip
provide a gnu-make compatible include for pyversion
Change-Id: I I7d0de9bc04c26e71c6bd915a659a15c3e1f712d2
Diffstat (limited to 'python/pyversion.Makefile')
-rw-r--r--python/pyversion.Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/python/pyversion.Makefile b/python/pyversion.Makefile
new file mode 100644
index 000000000000..4b4be9cb2431
--- /dev/null
+++ b/python/pyversion.Makefile
@@ -0,0 +1,25 @@
+# when you want to change the python version, you must update the d.lst
+# in the python project accordingly !!!
+PYMAJOR:=2
+PYMINOR:=6
+PYMICRO:=1
+PYVERSION:=$(PYMAJOR).$(PYMINOR).$(PYMICRO)
+
+ifeq ($(GUI),UNX)
+ifeq ($(OS),MACOSX)
+PY_FULL_DLL_NAME:=libpython$(PYMAJOR).$(PYMINOR).a
+PYTHONLIB=-F$(SOLARLIBDIR) -framework OOoPython
+CFLAGS+=-I$(SOLARLIBDIR)/OOoPython.framework/Versions/$(PYMAJOR).$(PYMINOR)/include/python$(PYMAJOR).$(PYMINOR)
+else
+PY_FULL_DLL_NAME:=libpython$(PYMAJOR).$(PYMINOR).so.1.0
+PYTHONLIB:=-lpython$(PYMAJOR).$(PYMINOR)
+endif
+else
+ifeq ($(COM),GCC)
+PY_FULL_DLL_NAME:=libpython$(PYMAJOR).$(PYMINOR).dll
+PYTHONLIB:=-lpython$(PYMAJOR).$(PYMINOR)
+else
+PY_FULL_DLL_NAME:=python$(PYMAJOR)$(PYMINOR).dll
+PYTHONLIB:=python$(PYMAJOR)$(PYMINOR).lib
+endif
+endif