3
+ − 1
#
+ − 2
# Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
+ − 3
# All rights reserved.
+ − 4
# This component and the accompanying materials are made available
+ − 5
# under the terms of the License "Eclipse Public License v1.0"
+ − 6
# which accompanies this distribution, and is available
+ − 7
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
+ − 8
#
+ − 9
# Initial Contributors:
+ − 10
# Nokia Corporation - initial contribution.
+ − 11
#
+ − 12
# Contributors:
+ − 13
#
+ − 14
# Description:
+ − 15
# Utility makefile
+ − 16
#
+ − 17
+ − 18
# Build Python for Raptor
+ − 19
+ − 20
RAPTOR_PYTHON_VER:=2.6.2
+ − 21
+ − 22
PYTHON_SOURCEDIR:=$(OUTPUTPATH)/Python-$(RAPTOR_PYTHON_VER)
+ − 23
PYTHON_TAR:=$(SBS_HOME)/util/ext/Python-$(RAPTOR_PYTHON_VER).tgz
+ − 24
PYINSTALLROOT:=$(INSTALLROOT)/python$(subst .,,$(RAPTOR_PYTHON_VER))
+ − 25
+ − 26
define b_python
+ − 27
.PHONY:: python
+ − 28
+ − 29
all:: python
+ − 30
+ − 31
python: $(PYINSTALLROOT)/bin/python
+ − 32
+ − 33
$(PYINSTALLROOT)/bin/python: $(PYTHON_TAR)
+ − 34
rm -rf $(PYTHON_SOURCEDIR) && \
+ − 35
cd $(OUTPUTPATH) && \
+ − 36
tar -xzf $(PYTHON_TAR) && \
+ − 37
( \
+ − 38
cd $(PYTHON_SOURCEDIR) && \
+ − 39
CFLAGS="-O3 $(GCCTUNE) -s" ./configure --prefix=$(PYINSTALLROOT) --enable-shared --with-threads && \
+ − 40
$(MAKE) -j8 && $(MAKE) install \
+ − 41
)
+ − 42
endef
+ − 43
+ − 44
$(eval $(b_python))
+ − 45