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 |
CHAR_BLANK:=
|
|
19 |
CHAR_SPACE:=$(CHAR_BLANK) $(CHAR_BLANK)
|
|
20 |
|
|
21 |
HOSTPLATFORM:=$(shell $(SBS_HOME)/bin/gethost.sh)
|
|
22 |
HOSTPLATFORM_DIR:=$(shell $(SBS_HOME)/bin/gethost.sh -d)
|
|
23 |
|
|
24 |
ifeq ($(filter $(HOSTPLATFORM),win),win)
|
|
25 |
PROGRAMEXT:=.exe
|
|
26 |
HOSTMACROS:=-DHOST_WIN -DHOST_DIR=$(HOSTPLATFORM_DIR)
|
|
27 |
else
|
|
28 |
PROGRAMEXT:=
|
|
29 |
HOSTMACROS:=-DHOST_LINUX -DHOST_DIR=$(HOSTPLATFORM_DIR)
|
|
30 |
endif
|
|
31 |
|
|
32 |
GCCTUNE:=
|
|
33 |
ifeq ($(filter $(HOSTPLATFORM),x86_64),x86_64)
|
|
34 |
else
|
|
35 |
GCCTUNE:=-mtune=i686
|
|
36 |
endif
|
|
37 |
|
|
38 |
BUILDDIR:=$(subst \,/,$(SBS_HOME))/util/build
|
|
39 |
INSTALLROOT:=$(subst \,/,$(SBS_HOME))/$(HOSTPLATFORM_DIR)
|
|
40 |
BINDIR:=$(INSTALLROOT)/bin
|
|
41 |
OUTPUTPATH:=$(BUILDDIR)/$(HOSTPLATFORM_DIR)
|
|
42 |
|
|
43 |
define cleanlog
|
|
44 |
ifneq ($(CLEANMODE),)
|
|
45 |
$$(info <clean>)
|
|
46 |
$$(foreach O,$$(CLEANFILES),$$(info <file>$$(O)</file>))
|
|
47 |
$$(info </clean>)
|
|
48 |
endif
|
|
49 |
endef
|
|
50 |
|