sl@0: # Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: # All rights reserved. sl@0: # This component and the accompanying materials are made available sl@0: # under the terms of "Eclipse Public License v1.0" sl@0: # which accompanies this distribution, and is available sl@0: # at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: # sl@0: # Initial Contributors: sl@0: # Nokia Corporation - initial contribution. sl@0: # sl@0: # Contributors: sl@0: # sl@0: # Description: sl@0: # Params: sl@0: # SOURCES - list of .pkg files sl@0: # TARGET - not used sl@0: # OPTION OUTDIR - mandatory, it is tef_ecomswi sl@0: # OPTION INDIR - mandatory, path relative to bld.inf containing the sl@0: # .pkg files. sl@0: # OPTION CERTPEM - mandatory sl@0: # OPTION CERTKEY - mandatory sl@0: # OPTION STUBLIST - mandatory, identify stubs in $(SOURCES) sl@0: # OPTION SCRIPTNAME - mandatory, perl script to build SIS. Must be in sl@0: # same dir as .pkg files. sl@0: # sl@0: # sl@0: sl@0: .SUFFIXES: .sis .pkg sl@0: TMPROOT:=$(subst \,/,$(EPOCROOT)) sl@0: EPOCROOT:=$(patsubst %/,%,$(TMPROOT))/ sl@0: sl@0: sl@0: include $(EPOCROOT)epoc32/tools/shell/$(notdir $(basename $(SHELL))).mk sl@0: sl@0: CERTPEM := $(subst /,$(/),$(CERTPEM)) sl@0: CERTKEY := $(subst /,$(/),$(CERTKEY)) sl@0: OUTDIR := $(subst /,$(/),$(OUTDIR)) sl@0: INDIR := $(subst /,$(/),$(INDIR)) sl@0: BASEDIR := $(EXTENSION_ROOT)/$(INDIR) sl@0: sl@0: TARGETS := $(shell perl $(BASEDIR)/$(SCRIPTNAME) -platform $(PLATFORM_PATH) -cfg $(CFG_PATH) -outdir $(OUTDIR) -maketrgt RELEASABLES -sources "$(SOURCES)" -stublist "$(STUBLIST)") sl@0: EXTRA := $(shell perl $(BASEDIR)/$(SCRIPTNAME) -platform $(PLATFORM_PATH) -cfg $(CFG_PATH) -outdir $(OUTDIR) -maketrgt EXTRATARGET -sources "$(SOURCES)" -stublist "$(STUBLIST)") sl@0: sl@0: # sl@0: # The targets invoked by abld... sl@0: # sl@0: FINAL : sl@0: $(call createdir,$(subst /,$(/),$(EPOCROOT)epoc32/data/z/$(OUTDIR)/$(CFG_PATH))) sl@0: @perl $(call slash2generic, $(BASEDIR)/$(SCRIPTNAME)) -basedir $(BASEDIR) -platform $(PLATFORM_PATH) -cfg $(CFG_PATH) -certpem $(CERTPEM) -certkey $(CERTKEY) -maketrgt FINAL cachedresolverstub.sis sl@0: $(CP) $(subst /,$(/),$(BASEDIR)/cachedresolverstub.sis) $(subst /,$(/),$(EPOCROOT)epoc32/data/z/$(OUTDIR)/cachedresolverstub.sis) sl@0: @perl $(call slash2generic, $(BASEDIR)/$(SCRIPTNAME)) -basedir $(BASEDIR) -platform $(PLATFORM_PATH) -cfg $(CFG_PATH) -certpem $(CERTPEM) -certkey $(CERTKEY) -maketrgt FINAL cachedresolverupg2signed.sis sl@0: $(CP) $(subst /,$(/),$(BASEDIR)/cachedresolverupg2signed.sis) $(subst /,$(/),$(EPOCROOT)epoc32/data/z/$(OUTDIR)/$(CFG_PATH)/cachedresolverupg2signed.sis) sl@0: @perl $(call slash2generic, $(BASEDIR)/$(SCRIPTNAME)) -basedir $(BASEDIR) -platform $(PLATFORM_PATH) -cfg $(CFG_PATH) -certpem $(CERTPEM) -certkey $(CERTKEY) -maketrgt FINAL cachedresolverupg9signed.sis sl@0: $(CP) $(subst /,$(/),$(BASEDIR)/cachedresolverupg9signed.sis) $(subst /,$(/),$(EPOCROOT)epoc32/data/z/$(OUTDIR)/$(CFG_PATH)/cachedresolverupg9signed.sis) sl@0: sl@0: BLD MAKMAKE SAVESPACE FREEZE LIB CLEANLIB RESOURCE : sl@0: @echo do nothing sl@0: sl@0: CLEAN : sl@0: -$(ERASE) $(TARGETS) $(EXTRA) sl@0: sl@0: RELEASABLES : sl@0: @echo $(TARGETS) $(EXTRA) sl@0: