sbsv1/buildsystem/extension/syslibs/test/ecom3_buildsis.mk
author Zheng Shen <zheng.shen@nokia.com>
Tue, 20 Jul 2010 15:02:28 +0800
changeset 617 3a747a240983
parent 599 fa7a3cc6effd
permissions -rw-r--r--
ROM Tools 12.2.0.4 Postlinker 2.2.5 Revert package_definition.xml to changeset 360bd6b35136
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
599
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
     1
# Copyright (c) 2008-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
# Params:
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    15
# SOURCES - list of .pkg files
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    16
# TARGET - not used
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    17
# OPTION OUTDIR - mandatory, it is tef_ecomswi
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    18
# OPTION INDIR - mandatory, path relative to bld.inf containing the 
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    19
# .pkg files.
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    20
# OPTION CERTPEM - mandatory
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    21
# OPTION CERTKEY - mandatory
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    22
# OPTION STUBLIST - mandatory, identify stubs in $(SOURCES)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    23
# OPTION SCRIPTNAME - mandatory, perl script to build SIS. Must be in
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    24
# same dir as .pkg files.
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    25
# 
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    26
#
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    27
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    28
TMPROOT:=$(subst \,/,$(EPOCROOT))
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    29
EPOCROOT:=$(patsubst %/,%,$(TMPROOT))/
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
include $(EPOCROOT)epoc32/tools/shell/$(notdir $(basename $(SHELL))).mk
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    33
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    34
CERTPEM := $(subst /,$(/),$(CERTPEM))
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    35
CERTKEY := $(subst /,$(/),$(CERTKEY))
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    36
OUTDIR := $(subst /,$(/),$(OUTDIR))
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    37
INDIR := $(subst /,$(/),$(INDIR))
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    38
BASEDIR := $(EXTENSION_ROOT)/$(INDIR)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    39
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    40
TARGETS := $(shell perl $(BASEDIR)/$(SCRIPTNAME) -platform $(PLATFORM_PATH) -cfg $(CFG_PATH) -outdir $(OUTDIR) -maketrgt RELEASABLES -sources "$(SOURCES)" -stublist "$(STUBLIST)")
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    41
EXTRA := $(shell perl $(BASEDIR)/$(SCRIPTNAME) -platform $(PLATFORM_PATH) -cfg $(CFG_PATH) -outdir $(OUTDIR) -maketrgt EXTRATARGET -sources "$(SOURCES)" -stublist "$(STUBLIST)")
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    42
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    43
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    44
$(TARGETS) :
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    45
	@perl $(call slash2generic, $(BASEDIR)/$(SCRIPTNAME)) -basedir $(BASEDIR) -platform $(PLATFORM_PATH) -cfg $(CFG_PATH) -certpem $(CERTPEM) -certkey $(CERTKEY) -maketrgt FINAL $@
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    46
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    47
#
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    48
# The targets invoked by abld...
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    49
#
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    50
FINAL : $(TARGETS)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    51
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    52
BLD MAKMAKE SAVESPACE FREEZE LIB CLEANLIB RESOURCE :
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    53
	@echo do nothing
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    54
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    55
CLEAN : 
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    56
	-$(ERASE) $(TARGETS) $(EXTRA)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    57
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    58
RELEASABLES : 
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    59
	@echo $(TARGETS) $(EXTRA)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    60