sbsv1/buildsystem/extension/base/nand_fbr_offset.mk
changeset 607 378360dbbdba
parent 599 fa7a3cc6effd
equal deleted inserted replaced
591:22486c9c7b15 607:378360dbbdba
       
     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 #
       
    15 
       
    16 # To guarantee there is a slash at the end of EPOCROOT in case there is not.
       
    17 # This is needed to ensure compatibility with SBSv1. 
       
    18 TMPROOT:=$(subst \,/,$(EPOCROOT))
       
    19 EPOCROOT:=$(patsubst %/,%,$(TMPROOT))/
       
    20 
       
    21 include $(EPOCROOT)epoc32/tools/shell/$(notdir $(basename $(SHELL))).mk
       
    22 
       
    23 
       
    24 # Build directory (EPOCBLD too long)
       
    25 BUILDLOC = $(EXTENSION_ROOT)/drivers
       
    26 
       
    27 ## Set the target name
       
    28 SRC := $(SRCDIR)/nand_fbr_offset.h
       
    29 TARGET = $(TARGETDIR)/nand_fbr_offset.inc
       
    30 
       
    31 
       
    32 
       
    33 #Include processing
       
    34 FULLINCLUDES := $(addprefix $(SRCDIR)/,$(INCLUDES))
       
    35 #Object processing
       
    36 FULLSRC := $(addprefix $(SRCDIR)/,$(SRC))
       
    37 
       
    38 ifdef PROCESS_INCLUDES
       
    39 GCCSRC := $(addprefix $(BUILDLOC)/,$(SRC))
       
    40 FULLINCLUDES := $(foreach f,$(FULLINCLUDES),$(basename $(f)).$(INCEXT))
       
    41 #Creation of headers
       
    42 $(FULLINCLUDES) : $(SRCDIR)/%.$(INCEXT) : %.inc
       
    43 	$(do_headers)
       
    44 else
       
    45 #Armasm sytax specifc asm rule goes here
       
    46 endif
       
    47 
       
    48 
       
    49 #Rules
       
    50 #vpath %.inc . $(SRCDIR) 
       
    51 
       
    52 
       
    53 MAKMAKE :
       
    54 	perl $(EPOCROOT)epoc32/tools/h2inc.pl $(SRC) $(TARGET) ARMASM
       
    55 #	echo Nothing to do
       
    56 
       
    57 FREEZE :
       
    58 	echo Nothing to do
       
    59 
       
    60 LIB :
       
    61 	echo Nothing to do
       
    62 
       
    63 CLEANLIB :
       
    64 	echo Nothing to do
       
    65 
       
    66 RESOURCE :
       
    67 	echo Nothing to do
       
    68 
       
    69 FINAL :
       
    70 	echo Nothing to do
       
    71 
       
    72 
       
    73 
       
    74 BLD SAVESPACE : 
       
    75 	echo Nothing to do
       
    76 
       
    77 RELEASABLES :
       
    78 	@echo "$(TARGET)"
       
    79 
       
    80 CLEAN :
       
    81 	-$(ERASE) $(call slash2generic,"$(TARGET)") 
       
    82 	-$(ERASE) $(call slash2generic,"$(BUILDLOC)/$(TARGET)") 
       
    83 #	-$(ERASE) "$(TARGET)")
       
    84 #	-$(ERASE) "$(BUILDLOC)/$(TARGET)")
       
    85