os/ossrv/lowlevellibsandfws/pluginfw/Group/ecom3_buildsis.mk
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
# Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
# All rights reserved.
sl@0
     3
# This component and the accompanying materials are made available
sl@0
     4
# under the terms of "Eclipse Public License v1.0"
sl@0
     5
# which accompanies this distribution, and is available
sl@0
     6
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
#
sl@0
     8
# Initial Contributors:
sl@0
     9
# Nokia Corporation - initial contribution.
sl@0
    10
#
sl@0
    11
# Contributors:
sl@0
    12
#
sl@0
    13
# Description:
sl@0
    14
# Params:
sl@0
    15
# SOURCES - list of .pkg files
sl@0
    16
# TARGET - not used
sl@0
    17
# OPTION OUTDIR - mandatory, it is tef_ecomswi
sl@0
    18
# OPTION INDIR - mandatory, path relative to bld.inf containing the 
sl@0
    19
# .pkg files.
sl@0
    20
# OPTION CERTPEM - mandatory
sl@0
    21
# OPTION CERTKEY - mandatory
sl@0
    22
# OPTION STUBLIST - mandatory, identify stubs in $(SOURCES)
sl@0
    23
# OPTION SCRIPTNAME - mandatory, perl script to build SIS. Must be in
sl@0
    24
# same dir as .pkg files.
sl@0
    25
# 
sl@0
    26
#
sl@0
    27
sl@0
    28
.SUFFIXES: .sis .pkg
sl@0
    29
TMPROOT:=$(subst \,/,$(EPOCROOT))
sl@0
    30
EPOCROOT:=$(patsubst %/,%,$(TMPROOT))/
sl@0
    31
sl@0
    32
sl@0
    33
include $(EPOCROOT)epoc32/tools/shell/$(notdir $(basename $(SHELL))).mk
sl@0
    34
sl@0
    35
CERTPEM := $(subst /,$(/),$(CERTPEM))
sl@0
    36
CERTKEY := $(subst /,$(/),$(CERTKEY))
sl@0
    37
OUTDIR := $(subst /,$(/),$(OUTDIR))
sl@0
    38
INDIR := $(subst /,$(/),$(INDIR))
sl@0
    39
BASEDIR := $(EXTENSION_ROOT)/$(INDIR)
sl@0
    40
sl@0
    41
TARGETS := $(shell perl $(BASEDIR)/$(SCRIPTNAME) -platform $(PLATFORM_PATH) -cfg $(CFG_PATH) -outdir $(OUTDIR) -maketrgt RELEASABLES -sources "$(SOURCES)" -stublist "$(STUBLIST)")
sl@0
    42
EXTRA := $(shell perl $(BASEDIR)/$(SCRIPTNAME) -platform $(PLATFORM_PATH) -cfg $(CFG_PATH) -outdir $(OUTDIR) -maketrgt EXTRATARGET -sources "$(SOURCES)" -stublist "$(STUBLIST)")
sl@0
    43
sl@0
    44
#
sl@0
    45
# The targets invoked by abld...
sl@0
    46
#
sl@0
    47
FINAL :
sl@0
    48
	$(call createdir,$(subst /,$(/),$(EPOCROOT)epoc32/data/z/$(OUTDIR)/$(CFG_PATH)))
sl@0
    49
	@perl $(call slash2generic, $(BASEDIR)/$(SCRIPTNAME)) -basedir $(BASEDIR) -platform $(PLATFORM_PATH) -cfg $(CFG_PATH) -certpem $(CERTPEM) -certkey $(CERTKEY) -maketrgt FINAL cachedresolverstub.sis
sl@0
    50
	$(CP) $(subst /,$(/),$(BASEDIR)/cachedresolverstub.sis) $(subst /,$(/),$(EPOCROOT)epoc32/data/z/$(OUTDIR)/cachedresolverstub.sis)
sl@0
    51
	@perl $(call slash2generic, $(BASEDIR)/$(SCRIPTNAME)) -basedir $(BASEDIR) -platform $(PLATFORM_PATH) -cfg $(CFG_PATH) -certpem $(CERTPEM) -certkey $(CERTKEY) -maketrgt FINAL cachedresolverupg2signed.sis
sl@0
    52
	$(CP) $(subst /,$(/),$(BASEDIR)/cachedresolverupg2signed.sis) $(subst /,$(/),$(EPOCROOT)epoc32/data/z/$(OUTDIR)/$(CFG_PATH)/cachedresolverupg2signed.sis)
sl@0
    53
	@perl $(call slash2generic, $(BASEDIR)/$(SCRIPTNAME)) -basedir $(BASEDIR) -platform $(PLATFORM_PATH) -cfg $(CFG_PATH) -certpem $(CERTPEM) -certkey $(CERTKEY) -maketrgt FINAL  cachedresolverupg9signed.sis
sl@0
    54
	$(CP) $(subst /,$(/),$(BASEDIR)/cachedresolverupg9signed.sis) $(subst /,$(/),$(EPOCROOT)epoc32/data/z/$(OUTDIR)/$(CFG_PATH)/cachedresolverupg9signed.sis)
sl@0
    55
sl@0
    56
BLD MAKMAKE SAVESPACE FREEZE LIB CLEANLIB RESOURCE :
sl@0
    57
	@echo do nothing
sl@0
    58
sl@0
    59
CLEAN : 
sl@0
    60
	-$(ERASE) $(TARGETS) $(EXTRA)
sl@0
    61
sl@0
    62
RELEASABLES : 
sl@0
    63
	@echo $(TARGETS) $(EXTRA)
sl@0
    64