sbsv1/buildsystem/extension/base/copy_default.mk
author Zheng Shen <zheng.shen@nokia.com>
Thu, 09 Sep 2010 19:09:10 +0800
changeset 633 a4eca1f021ac
parent 599 fa7a3cc6effd
permissions -rw-r--r--
ROMTools-13.1.0.2 Bug 3415 - SBS failing to build open C libraries
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
599
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
     1
# Copyright (c) 1999-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
SOURCE_COPY=$(EPOCROOT)epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)/$(SOURCES)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    25
TARGET_COPY=$(EPOCROOT)epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)/$(TARGET)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    26
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    27
$(TARGET_COPY) : $(SOURCE_COPY)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    28
	$(call cpfeature,"$(SOURCE_COPY)","$(TARGET_COPY)")
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    29
#	perl $(EPOCROOT)epoc32/tools/copyfeaturevariants.pl "$(SOURCE_COPY)" "$(TARGET_COPY)"
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    30
#	$(CP) "$?" "$@"
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
# The targets invoked by abld...
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    34
#
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    35
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    36
MAKMAKE BLD SAVESPACE FREEZE LIB CLEANLIB RESOURCE :
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    37
	@echo Nothing to do for "$@"
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    38
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    39
CLEAN : 
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    40
	-$(ERASE) $(TARGET_COPY)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    41
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    42
RELEASABLES : 
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    43
	@echo $(TARGET_COPY)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    44
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    45
# we have to wait until the SOURCE_COPY is built before we can copy it...
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    46
#
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    47
FINAL : $(TARGET_COPY)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    48