599
|
1 |
# Copyright (c) 2008-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 |
# Params:
|
|
15 |
# SOURCES - list of .pkg files
|
|
16 |
# TARGET - not used
|
|
17 |
# OPTION OUTDIR - mandatory, it is tef_ecomswi
|
|
18 |
# OPTION INDIR - mandatory, path relative to bld.inf containing the
|
|
19 |
# .pkg files.
|
|
20 |
# OPTION CERTPEM - mandatory
|
|
21 |
# OPTION CERTKEY - mandatory
|
|
22 |
# OPTION STUBLIST - mandatory, identify stubs in $(SOURCES)
|
|
23 |
# OPTION SCRIPTNAME - mandatory, perl script to build SIS. Must be in
|
|
24 |
# same dir as .pkg files.
|
|
25 |
#
|
|
26 |
#
|
|
27 |
|
|
28 |
TMPROOT:=$(subst \,/,$(EPOCROOT))
|
|
29 |
EPOCROOT:=$(patsubst %/,%,$(TMPROOT))/
|
|
30 |
|
|
31 |
|
|
32 |
include $(EPOCROOT)epoc32/tools/shell/$(notdir $(basename $(SHELL))).mk
|
|
33 |
|
|
34 |
CERTPEM := $(subst /,$(/),$(CERTPEM))
|
|
35 |
CERTKEY := $(subst /,$(/),$(CERTKEY))
|
|
36 |
OUTDIR := $(subst /,$(/),$(OUTDIR))
|
|
37 |
INDIR := $(subst /,$(/),$(INDIR))
|
|
38 |
BASEDIR := $(EXTENSION_ROOT)/$(INDIR)
|
|
39 |
|
|
40 |
TARGETS := $(shell perl $(BASEDIR)/$(SCRIPTNAME) -platform $(PLATFORM_PATH) -cfg $(CFG_PATH) -outdir $(OUTDIR) -maketrgt RELEASABLES -sources "$(SOURCES)" -stublist "$(STUBLIST)")
|
|
41 |
EXTRA := $(shell perl $(BASEDIR)/$(SCRIPTNAME) -platform $(PLATFORM_PATH) -cfg $(CFG_PATH) -outdir $(OUTDIR) -maketrgt EXTRATARGET -sources "$(SOURCES)" -stublist "$(STUBLIST)")
|
|
42 |
|
|
43 |
|
|
44 |
$(TARGETS) :
|
|
45 |
@perl $(call slash2generic, $(BASEDIR)/$(SCRIPTNAME)) -basedir $(BASEDIR) -platform $(PLATFORM_PATH) -cfg $(CFG_PATH) -certpem $(CERTPEM) -certkey $(CERTKEY) -maketrgt FINAL $@
|
|
46 |
|
|
47 |
#
|
|
48 |
# The targets invoked by abld...
|
|
49 |
#
|
|
50 |
FINAL : $(TARGETS)
|
|
51 |
|
|
52 |
BLD MAKMAKE SAVESPACE FREEZE LIB CLEANLIB RESOURCE :
|
|
53 |
@echo do nothing
|
|
54 |
|
|
55 |
CLEAN :
|
|
56 |
-$(ERASE) $(TARGETS) $(EXTRA)
|
|
57 |
|
|
58 |
RELEASABLES :
|
|
59 |
@echo $(TARGETS) $(EXTRA)
|
|
60 |
|