1 # Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 # Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 # All rights reserved. |
2 # All rights reserved. |
3 # This component and the accompanying materials are made available |
3 # This component and the accompanying materials are made available |
4 # under the terms of the License "Eclipse Public License v1.0" |
4 # under the terms of the License "Eclipse Public License v1.0" |
5 # which accompanies this distribution, and is available |
5 # which accompanies this distribution, and is available |
6 # at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 # at the URL "http://www.eclipse.org/legal/epl-v10.html". |
16 # |
16 # |
17 # |
17 # |
18 |
18 |
19 ## Input parameters |
19 ## Input parameters |
20 |
20 |
21 OUTPUTPATH:=$(OUTPUTPATH)/$(TARGET)_$(TARGETTYPE)/tools2/$(VARIANTTYPE)$(TOOLPLATFORMDIR) |
|
22 |
|
23 ifeq ($(OSTYPE),cygwin) |
21 ifeq ($(OSTYPE),cygwin) |
24 CDEFS.TOOLS2:=$(CDEFS.WIN32) $(CDEFS) |
22 CDEFS.TOOLS2:=$(CDEFS.WIN32) $(CDEFS) |
25 CFLAGS:=$(CFLAGS.WIN32) $(CFLAGS) $(OPTION_GCC) |
23 CFLAGS:=$(CFLAGS.WIN32) $(CFLAGS) $(OPTION_GCC) |
26 COMPILER_PATH:=$(COMPILER_PATH.WIN32) |
24 COMPILER_PATH:=$(COMPILER_PATH.WIN32) |
|
25 OUTPUTPATH:=$(OUTPUTPATH)/$(TARGET)_$(TARGETTYPE)/tools2/$(VARIANTTYPE)$(TOOLPLATFORMDIR) |
27 else |
26 else |
|
27 ifneq ($(TOOLS2WIN32),) |
|
28 # Build win32 tools in Linux |
|
29 CDEFS.TOOLS2:=$(CDEFS.WIN32) $(CDEFS) |
|
30 CFLAGS:=$(CFLAGS.WIN32) $(CFLAGS) $(OPTION_GCC) |
|
31 COMPILER_PATH:=$(COMPILER_PATH.WIN32) |
|
32 OUTPUTPATH:=$(OUTPUTPATH)/$(TARGET)_$(TARGETTYPE)/tools2/$(VARIANTTYPE) |
|
33 else |
|
34 # Build linux tools in Linux |
28 CDEFS.TOOLS2:=$(CDEFS.LINUX) $(CDEFS) |
35 CDEFS.TOOLS2:=$(CDEFS.LINUX) $(CDEFS) |
29 CFLAGS:=$(CFLAGS) $(OPTION_GCC) |
36 CFLAGS:=$(CFLAGS) $(OPTION_GCC) |
30 COMPILER_PATH=$(COMPILER_PATH.LINUX) |
37 COMPILER_PATH=$(COMPILER_PATH.LINUX) |
|
38 OUTPUTPATH:=$(OUTPUTPATH)/$(TARGET)_$(TARGETTYPE)/tools2/$(VARIANTTYPE)$(TOOLPLATFORMDIR) |
31 endif |
39 endif |
|
40 endif |
|
41 |
|
42 |
32 CDEFS.TOOLS2:=$(call makemacrodef,$(OPT.D),$(CDEFS.TOOLS2)) |
43 CDEFS.TOOLS2:=$(call makemacrodef,$(OPT.D),$(CDEFS.TOOLS2)) |
33 |
44 |
34 ## Locally used variables |
45 ## Locally used variables |
35 CREATABLEPATHS:=$(OUTPUTPATH) $(RELEASEPATH) $(TOOLSPATH) |
46 CREATABLEPATHS:=$(OUTPUTPATH) $(RELEASEPATH) $(TOOLSPATH) |
36 |
47 |