Update contrib.
1 # Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
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".
8 # Initial Contributors:
9 # Nokia Corporation - initial contribution.
15 # SOURCES - list of .pkg files
17 # OPTION OUTDIR - mandatory, it is tef_ecomswi
18 # OPTION INDIR - mandatory, path relative to bld.inf containing the
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.
29 TMPROOT:=$(subst \,/,$(EPOCROOT))
30 EPOCROOT:=$(patsubst %/,%,$(TMPROOT))/
33 include $(EPOCROOT)epoc32/tools/shell/$(notdir $(basename $(SHELL))).mk
35 CERTPEM := $(subst /,$(/),$(CERTPEM))
36 CERTKEY := $(subst /,$(/),$(CERTKEY))
37 OUTDIR := $(subst /,$(/),$(OUTDIR))
38 INDIR := $(subst /,$(/),$(INDIR))
39 BASEDIR := $(EXTENSION_ROOT)/$(INDIR)
41 TARGETS := $(shell perl $(BASEDIR)/$(SCRIPTNAME) -platform $(PLATFORM_PATH) -cfg $(CFG_PATH) -outdir $(OUTDIR) -maketrgt RELEASABLES -sources "$(SOURCES)" -stublist "$(STUBLIST)")
42 EXTRA := $(shell perl $(BASEDIR)/$(SCRIPTNAME) -platform $(PLATFORM_PATH) -cfg $(CFG_PATH) -outdir $(OUTDIR) -maketrgt EXTRATARGET -sources "$(SOURCES)" -stublist "$(STUBLIST)")
45 # The targets invoked by abld...
48 $(call createdir,$(subst /,$(/),$(EPOCROOT)epoc32/data/z/$(OUTDIR)/$(CFG_PATH)))
49 @perl $(call slash2generic, $(BASEDIR)/$(SCRIPTNAME)) -basedir $(BASEDIR) -platform $(PLATFORM_PATH) -cfg $(CFG_PATH) -certpem $(CERTPEM) -certkey $(CERTKEY) -maketrgt FINAL cachedresolverstub.sis
50 $(CP) $(subst /,$(/),$(BASEDIR)/cachedresolverstub.sis) $(subst /,$(/),$(EPOCROOT)epoc32/data/z/$(OUTDIR)/cachedresolverstub.sis)
51 @perl $(call slash2generic, $(BASEDIR)/$(SCRIPTNAME)) -basedir $(BASEDIR) -platform $(PLATFORM_PATH) -cfg $(CFG_PATH) -certpem $(CERTPEM) -certkey $(CERTKEY) -maketrgt FINAL cachedresolverupg2signed.sis
52 $(CP) $(subst /,$(/),$(BASEDIR)/cachedresolverupg2signed.sis) $(subst /,$(/),$(EPOCROOT)epoc32/data/z/$(OUTDIR)/$(CFG_PATH)/cachedresolverupg2signed.sis)
53 @perl $(call slash2generic, $(BASEDIR)/$(SCRIPTNAME)) -basedir $(BASEDIR) -platform $(PLATFORM_PATH) -cfg $(CFG_PATH) -certpem $(CERTPEM) -certkey $(CERTKEY) -maketrgt FINAL cachedresolverupg9signed.sis
54 $(CP) $(subst /,$(/),$(BASEDIR)/cachedresolverupg9signed.sis) $(subst /,$(/),$(EPOCROOT)epoc32/data/z/$(OUTDIR)/$(CFG_PATH)/cachedresolverupg9signed.sis)
56 BLD MAKMAKE SAVESPACE FREEZE LIB CLEANLIB RESOURCE :
60 -$(ERASE) $(TARGETS) $(EXTRA)
63 @echo $(TARGETS) $(EXTRA)