sbsv2/raptor/lib/flm/template_ext.flm
changeset 57 95b7851a2e80
parent 54 622c1ddc0579
child 157 458e67e95043
equal deleted inserted replaced
56:c02a2a09d864 57:95b7851a2e80
    83 
    83 
    84 UNIQ:=$(TEMPLATE_EXTENSION_MAKEFILE)$(PLATFORM)$(TO_ROOT)$(TO_BLDINF)$(EPOCBLD)$(EXTENSION_ROOT)$(TEMCOUNT)
    84 UNIQ:=$(TEMPLATE_EXTENSION_MAKEFILE)$(PLATFORM)$(TO_ROOT)$(TO_BLDINF)$(EPOCBLD)$(EXTENSION_ROOT)$(TEMCOUNT)
    85 UNIQ:=$(word 1,$(shell echo $(UNIQ) | $(GNUMD5SUM)))
    85 UNIQ:=$(word 1,$(shell echo $(UNIQ) | $(GNUMD5SUM)))
    86 
    86 
    87 # Work out the other FINAL target if we're building both udeb and urel
    87 # Work out the other FINAL target if we're building both udeb and urel
    88 ifneq ($($(UNIQ)),)
       
    89 
    88 
    90 ifeq ($(CFG),urel)
    89 ifeq ($(CFG),urel)
    91 OTHER_CFG:=udeb
    90 OTHER_CFG:=udeb
    92 endif
    91 endif
    93 ifeq ($(CFG),udeb)
    92 ifeq ($(CFG),udeb)
    98 endif
    97 endif
    99 ifeq ($(CFG),deb)
    98 ifeq ($(CFG),deb)
   100 OTHER_CFG:=rel
    99 OTHER_CFG:=rel
   101 endif
   100 endif
   102 
   101 
       
   102 ifneq ($($(UNIQ)_$(OTHER_CFG)),)
   103 OTHER_MAKMAKE:=$(UNIQ)_$(OTHER_CFG)_MAKMAKE
   103 OTHER_MAKMAKE:=$(UNIQ)_$(OTHER_CFG)_MAKMAKE
   104 OTHER_BLD:=$(UNIQ)_$(OTHER_CFG)_BLD
   104 OTHER_BLD:=$(UNIQ)_$(OTHER_CFG)_BLD
   105 OTHER_FREEZE:=$(UNIQ)_$(OTHER_CFG)_FREEZE
   105 OTHER_FREEZE:=$(UNIQ)_$(OTHER_CFG)_FREEZE
   106 OTHER_LIB:=$(UNIQ)_$(OTHER_CFG)_LIB
   106 OTHER_LIB:=$(UNIQ)_$(OTHER_CFG)_LIB
   107 OTHER_CLEANLIB:=$(UNIQ)_$(OTHER_CFG)_CLEANLIB
   107 OTHER_CLEANLIB:=$(UNIQ)_$(OTHER_CFG)_CLEANLIB
   109 OTHER_CLEAN:=$(UNIQ)_$(OTHER_CFG)_CLEAN
   109 OTHER_CLEAN:=$(UNIQ)_$(OTHER_CFG)_CLEAN
   110 OTHER_FINAL:=$(UNIQ)_$(OTHER_CFG)_FINAL
   110 OTHER_FINAL:=$(UNIQ)_$(OTHER_CFG)_FINAL
   111 endif # ifneq ($($(UNIQ)),)
   111 endif # ifneq ($($(UNIQ)),)
   112 
   112 
   113 # Set $($(UNIQ)) so it can be detected if we're run again
   113 # Set $($(UNIQ)) so it can be detected if we're run again
   114 $(UNIQ):=1
   114 $(UNIQ)_$(CFG):=1
   115 
   115 
   116 tem_$(notdir $(TEMPLATE_EXTENSION_MAKEFILE))_$(PLATFORM)_$(CFG):=$(tem_$(notdir $(TEMPLATE_EXTENSION_MAKEFILE))_$(PLATFORM)_$(CFG)) $(UNIQ)_$(CFG)
   116 tem_$(notdir $(TEMPLATE_EXTENSION_MAKEFILE))_$(PLATFORM)_$(CFG):=$(tem_$(notdir $(TEMPLATE_EXTENSION_MAKEFILE))_$(PLATFORM)_$(CFG)) $(UNIQ)_$(CFG)
   117 
   117 
   118 TEPARAMETERS:= \
   118 TEPARAMETERS:= \
   119 	EPOCROOT PLATFORM CFG TO_ROOT TO_BLDINF \
   119 	EPOCROOT PLATFORM CFG TO_ROOT TO_BLDINF \