sbsv1/buildsystem/extension/base/nand_fbr_offset.mk
author kelvzhu
Thu, 08 Jul 2010 11:07:48 +0800
changeset 611 75fabbc53db5
parent 599 fa7a3cc6effd
permissions -rw-r--r--
Release-Update
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
599
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
     1
# Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
     2
# All rights reserved.
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
     3
# This component and the accompanying materials are made available
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
     4
# under the terms of "Eclipse Public License v1.0"
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
     5
# which accompanies this distribution, and is available
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
     6
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
     7
#
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
     8
# Initial Contributors:
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
     9
# Nokia Corporation - initial contribution.
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    10
#
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    11
# Contributors:
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    12
#
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    13
# Description:
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    14
#
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    15
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    16
# To guarantee there is a slash at the end of EPOCROOT in case there is not.
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    17
# This is needed to ensure compatibility with SBSv1. 
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    18
TMPROOT:=$(subst \,/,$(EPOCROOT))
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    19
EPOCROOT:=$(patsubst %/,%,$(TMPROOT))/
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    20
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    21
include $(EPOCROOT)epoc32/tools/shell/$(notdir $(basename $(SHELL))).mk
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    22
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    23
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    24
# Build directory (EPOCBLD too long)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    25
BUILDLOC = $(EXTENSION_ROOT)/drivers
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    26
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    27
## Set the target name
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    28
SRC := $(SRCDIR)/nand_fbr_offset.h
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    29
TARGET = $(TARGETDIR)/nand_fbr_offset.inc
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    30
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    31
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    32
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    33
#Include processing
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    34
FULLINCLUDES := $(addprefix $(SRCDIR)/,$(INCLUDES))
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    35
#Object processing
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    36
FULLSRC := $(addprefix $(SRCDIR)/,$(SRC))
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    37
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    38
ifdef PROCESS_INCLUDES
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    39
GCCSRC := $(addprefix $(BUILDLOC)/,$(SRC))
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    40
FULLINCLUDES := $(foreach f,$(FULLINCLUDES),$(basename $(f)).$(INCEXT))
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    41
#Creation of headers
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    42
$(FULLINCLUDES) : $(SRCDIR)/%.$(INCEXT) : %.inc
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    43
	$(do_headers)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    44
else
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    45
#Armasm sytax specifc asm rule goes here
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    46
endif
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    47
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    48
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    49
#Rules
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    50
#vpath %.inc . $(SRCDIR) 
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    51
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    52
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    53
MAKMAKE :
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    54
	perl $(EPOCROOT)epoc32/tools/h2inc.pl $(SRC) $(TARGET) ARMASM
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    55
#	echo Nothing to do
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    56
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    57
FREEZE :
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    58
	echo Nothing to do
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    59
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    60
LIB :
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    61
	echo Nothing to do
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    62
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    63
CLEANLIB :
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    64
	echo Nothing to do
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    65
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    66
RESOURCE :
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    67
	echo Nothing to do
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    68
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    69
FINAL :
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    70
	echo Nothing to do
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    71
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    72
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    73
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    74
BLD SAVESPACE : 
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    75
	echo Nothing to do
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    76
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    77
RELEASABLES :
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    78
	@echo "$(TARGET)"
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    79
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    80
CLEAN :
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    81
	-$(ERASE) $(call slash2generic,"$(TARGET)") 
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    82
	-$(ERASE) $(call slash2generic,"$(BUILDLOC)/$(TARGET)") 
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    83
#	-$(ERASE) "$(TARGET)")
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    84
#	-$(ERASE) "$(BUILDLOC)/$(TARGET)")
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    85