sbsv2/raptor/lib/flm/gnumakefile.flm
changeset 28 b8fa7dfeeaa1
parent 13 c327db0664bb
equal deleted inserted replaced
27:3a31ca4b29c4 28:b8fa7dfeeaa1
     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".
   170 
   170 
   171 endif
   171 endif
   172 endef
   172 endef
   173 
   173 
   174 DO_NOTHING:: $(UNIQ)_DO_NOTHING 
   174 DO_NOTHING:: $(UNIQ)_DO_NOTHING 
   175 $(UNIQ)_DO_NOTHING: ;
   175 $(UNIQ)_DO_NOTHING: 
   176 
   176 
   177 $(foreach EXTTRG,$(EXTMAKETARGETS),$(eval $(call callgnumake,$(EXTTRG))))
   177 $(foreach EXTTRG,$(EXTMAKETARGETS),$(eval $(call callgnumake,$(EXTTRG))))
   178 
   178 
   179 ## Do ROMFILE target in romstuff.mke
   179 ## Do ROMFILE target in romstuff.mke
   180 ifeq ($(ROMFILE_$(call sanitise,$(EXTMAKEFILENAME))),)
   180 ROMFILEUNIQ:=$(call sanitise,$(DIRECTORY)$(EXTMAKEFILENAME)$(TO_ROOT)$(EPOCBLD)$(TO_BLDINF)$(PLATFORM))
   181 ROMFILE_$(call sanitise,$(EXTMAKEFILENAME)):=1
       
   182 
   181 
   183 ROMDIR:=$(subst $(OLD_EPOCROOT),$(OLD_EPOCROOT)epoc32/rom/,$(TO_BLDINF))
   182 ifeq ($(ROMFILE_$(ROMFILEUNIQ)),)
       
   183 ROMFILE_$(ROMFILEUNIQ):=1
       
   184 TOBLDINF:=$(dir $(subst :,,$(subst $(OLD_EPOCROOT),,$(COMPONENT_META))))
       
   185 ROMDIR:=$(OLD_EPOCROOT)epoc32/rom/$(TOBLDINF)
   184 
   186 
   185 define RomfileRomstuff
   187 define RomfileRomstuff
   186 ROMFILE::
   188 ROMFILE::
   187 	@$(MAKEVAR) --no-print-directory $(if $(USENMAKE),,-C "$(subst /,\,$(DIRECTORY))") -f "$(EXTMAKEFILENAME)" ROMFILE >> $(ROMDIR)/ARMV5TEST.IBY
   189 	@$(MAKEVAR) --no-print-directory $(if $(USENMAKE),,-C "$(subst /,\,$(DIRECTORY))") -f "$(EXTMAKEFILENAME)" ROMFILE >> $(ROMDIR)/ARMV5TEST.IBY
   188 endef
   190 endef