sbsv2/raptor/lib/flm/tools2common.flm
branchwip
changeset 342 f0e42ff3359f
parent 319 17156855fe69
parent 225 d401dbd3a410
equal deleted inserted replaced
341:4fd571a5fb6a 342:f0e42ff3359f
    84 $(eval DEPENDFILENAME:=$(compile2object_TARGET).d)
    84 $(eval DEPENDFILENAME:=$(compile2object_TARGET).d)
    85 $(eval DEPENDFILE:=$(wildcard $(DEPENDFILENAME)))
    85 $(eval DEPENDFILE:=$(wildcard $(DEPENDFILENAME)))
    86 $(compile2object_TARGET): $(1) $(if (DEPENDFILE),,EXPORT)
    86 $(compile2object_TARGET): $(1) $(if (DEPENDFILE),,EXPORT)
    87 	$(call startrule,compile2object,,$(1)) \
    87 	$(call startrule,compile2object,,$(1)) \
    88 	$(if $(COMPILER_PATH),COMPILER_PATH="$(COMPILER_PATH)",) \
    88 	$(if $(COMPILER_PATH),COMPILER_PATH="$(COMPILER_PATH)",) \
    89 	$(COMPILER) $(CFLAGS) $(CDEFS.TOOLS2) -MD -MT"$$@" -MF"$(DEPENDFILENAME)" $(INCLUDES) $(OPT.O)"$$@" "$(1)" \
    89 	$(COMPILER) $(CFLAGS) $(CDEFS.TOOLS2) \
       
    90 	$(if $(NO_DEPEND_GENERATE),,-MD -MT"$$@" -MF"$(DEPENDFILENAME)") \
       
    91 	$(INCLUDES) $(OPT.O)"$$@" "$(1)" \
    90 	$(call endrule,compile2object)
    92 	$(call endrule,compile2object)
    91 
    93 
    92 CLEANTARGETS:=$$(CLEANTARGETS) $(DEPENDFILENAME)
    94 ifeq ($(NO_DEPEND_GENERATE),)
    93 ifneq "$(DEPENDFILE)" ""
    95   CLEANTARGETS:=$$(CLEANTARGETS) $(DEPENDFILENAME)
    94 ifeq ($(NO_DEPEND_INCLUDE),)
    96 endif
    95   ifeq "$(filter %CLEAN,$(call uppercase,$(MAKECMDGOALS)))" ""
    97 
    96     -include $(DEPENDFILE)
    98 ifneq ($(DEPENDFILE),)
       
    99   ifeq ($(NO_DEPEND_INCLUDE),)
       
   100     ifeq ($(filter %CLEAN,$(call uppercase,$(MAKECMDGOALS))),)
       
   101       -include $(DEPENDFILE)
       
   102     endif
    97   endif
   103   endif
    98 endif
       
    99 endif
   104 endif
   100 
   105 
   101 endef
   106 endef
   102 
   107 
   103 $(foreach SRC,$(CPPFILES),$(eval $(call compile2object,$(SRC),CPP)))
   108 $(foreach SRC,$(CPPFILES),$(eval $(call compile2object,$(SRC),CPP)))