extension/h2_genbootinc.mk
changeset 56 0d178dffddca
equal deleted inserted replaced
52:164db16a7f09 56:0d178dffddca
       
     1 # Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 # All rights reserved.
       
     3 # This component and the accompanying materials are made available
       
     4 # under the terms of "Eclipse Public License v1.0"
       
     5 # which accompanies this distribution, and is available
       
     6 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 #
       
     8 # Initial Contributors:
       
     9 # Nokia Corporation - initial contribution.
       
    10 #
       
    11 # Contributors:
       
    12 #
       
    13 # Description:
       
    14 # Generate assembler inc files from header files
       
    15 # 
       
    16 #
       
    17 
       
    18 # To guarantee there is a slash at the end of EPOCROOT in case there is not.
       
    19 # This is needed to ensure compatibility with SBSv1. 
       
    20 TMPROOT:=$(subst \,/,$(EPOCROOT))
       
    21 EPOCROOT:=$(patsubst %/,%,$(TMPROOT))/
       
    22 
       
    23 include $(EPOCROOT)epoc32/tools/shell/$(notdir $(basename $(SHELL))).mk
       
    24 
       
    25 
       
    26 XINCDIR := $(INC_PATH)/h2
       
    27 XINCDIR2 := $(INC_PATH)/assp/omap1610
       
    28 
       
    29 MAKMAKE : all
       
    30 
       
    31 FREEZE :
       
    32 
       
    33 LIB : all
       
    34 
       
    35 CLEANLIB :
       
    36 
       
    37 RESOURCE :
       
    38 
       
    39 FINAL :
       
    40 
       
    41 BLD SAVESPACE : all
       
    42 
       
    43 RELEASABLES :
       
    44 	@echo $(XINCDIR)/h2const.inc
       
    45 	@echo $(XINCDIR)/nand_fbr_offset.inc
       
    46 	@echo $(XINCDIR2)/omapconst.inc
       
    47 
       
    48 CLEAN :
       
    49 	-$(ERASE) $(call slash2generic,$(XINCDIR)/h2const.inc) 
       
    50 	-$(ERASE) $(call slash2generic,$(XINCDIR)/nand_fbr_offset.inc) 
       
    51 #	-$(ERASE) $(XINCDIR)/h2const.inc
       
    52 #	-$(ERASE) $(XINCDIR)/nand_fbr_offset.inc
       
    53 	@echo $(XINCDIR2)/omapconst.inc
       
    54 
       
    55 all: $(XINCDIR)/h2const.inc $(XINCDIR)/nand_fbr_offset.inc $(XINCDIR2)/omapconst.inc
       
    56 
       
    57 $(XINCDIR)/h2const.inc : $(XINCDIR)/h2const.h
       
    58 	perl $(EPOCROOT)epoc32/tools/h2inc.pl $(XINCDIR)/h2const.h $(XINCDIR)/h2const.inc ARMASM
       
    59 
       
    60 $(XINCDIR)/nand_fbr_offset.inc : $(XINCDIR)/nand_fbr_offset.h
       
    61 	perl $(EPOCROOT)epoc32/tools/h2inc.pl $(XINCDIR)/nand_fbr_offset.h $(XINCDIR)/nand_fbr_offset.inc ARMASM
       
    62 
       
    63 $(XINCDIR2)/omapconst.inc : $(XINCDIR2)/omapconst.h
       
    64 	perl $(EPOCROOT)epoc32/tools/h2inc.pl $(XINCDIR2)/omapconst.h $(XINCDIR2)/omapconst.inc ARMASM