office-gobmx/python/pyversion.Makefile
Norbert Thiebaud 86d2a9d3c4 provide a gnu-make compatible include for pyversion
Change-Id: I I7d0de9bc04c26e71c6bd915a659a15c3e1f712d2
2012-05-29 07:35:26 +02:00

25 lines
772 B
Makefile

# 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