diff -r 22ecbfc20eb4 -r 7830b8253b5a sbsv2/raptor/lib/flm/tools2common.flm --- a/sbsv2/raptor/lib/flm/tools2common.flm Fri Mar 05 14:30:49 2010 +0000 +++ b/sbsv2/raptor/lib/flm/tools2common.flm Fri Mar 05 14:34:56 2010 +0000 @@ -1,4 +1,4 @@ -# Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). +# Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). # All rights reserved. # This component and the accompanying materials are made available # under the terms of the License "Eclipse Public License v1.0" @@ -75,17 +75,22 @@ $(compile2object_TARGET): $(1) $(if (DEPENDFILE),,EXPORT) $(call startrule,compile2object,,$(1)) \ $(if $(COMPILER_PATH),COMPILER_PATH="$(COMPILER_PATH)",) \ - $(COMPILER) $(CFLAGS) $(CDEFS.TOOLS2) -MD -MT"$$@" -MF"$(DEPENDFILENAME)" $(INCLUDES) $(OPT.O)"$$@" "$(1)" \ + $(COMPILER) $(CFLAGS) $(CDEFS.TOOLS2) \ + $(if $(NO_DEPEND_GENERATE),,-MD -MT"$$@" -MF"$(DEPENDFILENAME)") \ + $(INCLUDES) $(OPT.O)"$$@" "$(1)" \ $(call endrule,compile2object) -CLEANTARGETS:=$$(CLEANTARGETS) $(DEPENDFILENAME) -ifneq "$(DEPENDFILE)" "" -ifeq ($(NO_DEPEND_INCLUDE),) - ifeq "$(filter %CLEAN,$(call uppercase,$(MAKECMDGOALS)))" "" - -include $(DEPENDFILE) +ifeq ($(NO_DEPEND_GENERATE),) + CLEANTARGETS:=$$(CLEANTARGETS) $(DEPENDFILENAME) +endif + +ifneq ($(DEPENDFILE),) + ifeq ($(NO_DEPEND_INCLUDE),) + ifeq ($(filter %CLEAN,$(call uppercase,$(MAKECMDGOALS))),) + -include $(DEPENDFILE) + endif endif endif -endif endef