sbsv2/raptor/lib/flm/msvctools.flm
branchfix
changeset 383 770bd0892cdd
parent 5 593a8820b912
child 384 e5b9f05748b8
equal deleted inserted replaced
352:2489b07138d3 383:770bd0892cdd
     1 # Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 # Copyright (c) 2008-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".
    57 
    57 
    58 # macros
    58 # macros
    59 DEFINES:=$(call makemacrodef,$(OPT.DEFINE),$(CDEFS) $(BASE_MACRO) $(CFLAGS.ADD))
    59 DEFINES:=$(call makemacrodef,$(OPT.DEFINE),$(CDEFS) $(BASE_MACRO) $(CFLAGS.ADD))
    60 
    60 
    61 # other
    61 # other
    62 PDBFILE:=$(if $(GENDEBUGINFO),$(RELEASEPATH)/$(TARGET).pdb,)
    62 CLEANTARGETS:=$(CLEANTARGETS)
    63 CLEANTARGETS:=$(CLEANTARGETS) $(PDBFILE)
       
    64 
    63 
    65 #compile
    64 #compile
    66 define msvctoolscompile
    65 define msvctoolscompile
    67   $(BUILDPATH)/$(basename $(notdir $(1))).obj: $(1) $(PROJECT_META) $(if $(HAVE_ORDERONLY),|,)  EXPORT
    66   $(BUILDPATH)/$(basename $(notdir $(1))).obj: $(1) $(PROJECT_META) $(if $(HAVE_ORDERONLY),|,)  EXPORT
    68 	$(call startrule,msvctoolscompile,,$(1)) \
    67 	$(call startrule,msvctoolscompile,,$(1)) \
    69 	$(CC) \
    68 	$(CC) \
    70 	$(if $(findstring staticlib,$(BASE_TYPE)),,$(CFLAGS.LIB)) \
    69 	$(if $(findstring staticlib,$(BASE_TYPE)),,$(CFLAGS.LIB)) \
    71 	$(CFLAGS) $$(subst /,-,$(OPTION_MSVC)) \
    70 	$(CFLAGS) $$(subst /,-,$(OPTION_MSVC)) \
    72 	$(if $(findstring /W,$(OPTION_MSVC)),,$(CFLAGS.DEFAULT.WARNLEVEL)) \
    71 	$(if $(findstring /W,$(OPTION_MSVC)),,$(CFLAGS.DEFAULT.WARNLEVEL)) \
    73 	$(if $(PDBFILE),$$(call msvcformatarg,$(OPT.PDBFILE),$(PDBFILE)),) \
       
    74 	$(DEFINES) $(INCLUDES) \
    72 	$(DEFINES) $(INCLUDES) \
    75 	$$(call msvcformatarg,$(OPT.BROWSEFILE),$(BUILDPATH)/$(basename $(notdir $(1))).sbr) \
    73 	$$(call msvcformatarg,$(OPT.BROWSEFILE),$(BUILDPATH)/$(basename $(notdir $(1))).sbr) \
    76 	$$(call msvcformatarg,$(OPT.OBJECTFILE),$$@) $(1) \
    74 	$$(call msvcformatarg,$(OPT.OBJECTFILE),$$@) $(1) \
    77 	$(call endrule,msvctoolscompile)
    75 	$(call endrule,msvctoolscompile)
    78 endef
    76 endef