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". |
73 $(eval DEPENDFILENAME:=$(compile2object_TARGET).d) |
73 $(eval DEPENDFILENAME:=$(compile2object_TARGET).d) |
74 $(eval DEPENDFILE:=$(wildcard $(DEPENDFILENAME))) |
74 $(eval DEPENDFILE:=$(wildcard $(DEPENDFILENAME))) |
75 $(compile2object_TARGET): $(1) $(if (DEPENDFILE),,EXPORT) |
75 $(compile2object_TARGET): $(1) $(if (DEPENDFILE),,EXPORT) |
76 $(call startrule,compile2object,,$(1)) \ |
76 $(call startrule,compile2object,,$(1)) \ |
77 $(if $(COMPILER_PATH),COMPILER_PATH="$(COMPILER_PATH)",) \ |
77 $(if $(COMPILER_PATH),COMPILER_PATH="$(COMPILER_PATH)",) \ |
78 $(COMPILER) $(CFLAGS) $(CDEFS.TOOLS2) -MD -MT"$$@" -MF"$(DEPENDFILENAME)" $(INCLUDES) $(OPT.O)"$$@" "$(1)" \ |
78 $(COMPILER) $(CFLAGS) $(CDEFS.TOOLS2) \ |
|
79 $(if $(NO_DEPEND_GENERATE),,-MD -MT"$$@" -MF"$(DEPENDFILENAME)") \ |
|
80 $(INCLUDES) $(OPT.O)"$$@" "$(1)" \ |
79 $(call endrule,compile2object) |
81 $(call endrule,compile2object) |
80 |
82 |
81 CLEANTARGETS:=$$(CLEANTARGETS) $(DEPENDFILENAME) |
83 ifeq ($(NO_DEPEND_GENERATE),) |
82 ifneq "$(DEPENDFILE)" "" |
84 CLEANTARGETS:=$$(CLEANTARGETS) $(DEPENDFILENAME) |
83 ifeq ($(NO_DEPEND_INCLUDE),) |
85 endif |
84 ifeq "$(filter %CLEAN,$(call uppercase,$(MAKECMDGOALS)))" "" |
86 |
85 -include $(DEPENDFILE) |
87 ifneq ($(DEPENDFILE),) |
|
88 ifeq ($(NO_DEPEND_INCLUDE),) |
|
89 ifeq ($(filter %CLEAN,$(call uppercase,$(MAKECMDGOALS))),) |
|
90 -include $(DEPENDFILE) |
|
91 endif |
86 endif |
92 endif |
87 endif |
|
88 endif |
93 endif |
89 |
94 |
90 endef |
95 endef |
91 |
96 |
92 $(foreach SRC,$(CPPFILES),$(eval $(call compile2object,$(SRC),CPP))) |
97 $(foreach SRC,$(CPPFILES),$(eval $(call compile2object,$(SRC),CPP))) |