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.
14 # Different from ecom3_postbuild.mk in that on armv5 the RAMONLYTARGETDIR
15 # is not \epoc32\data\z\ramonly. It is \epoc32\release\armv5\<CFG>\z\ramonly.
16 # This template has to preserve the udeb/urel targets.
18 # SOURCES - list of .exe and .dll files to relocate
20 # OPTION TARGETDIR - mandatory, it is "ramonly" for ecom testing.
21 # OPTION TARGETBASE - optional, overrides \epoc32\release\<platform>\<cfg>\z
22 # OPTION SOURCEDIR - optional, overrides \epoc32\release\<platform>\<cfg>
26 TMPROOT:=$(subst \,/,$(EPOCROOT))
27 EPOCROOT:=$(patsubst %/,%,$(TMPROOT))/
29 include $(EPOCROOT)epoc32/tools/shell/$(notdir $(basename $(SHELL))).mk
31 # $(/) is actually back slash in Windows environment. Since bld.inf are written
32 # with forward slashes and $(CP) is "copy", this substitution is important.
33 TARGETDIR := $(subst /,$(/),$(TARGETDIR))
36 TARGETBASE := $(subst PLATFORM,$(PLATFORM_PATH),$(TARGETBASE))
37 TARGETBASE := $(subst CFG,$(CFG_PATH),$(TARGETBASE))
38 TARGETBASE := $(subst /,$(/),$(TARGETBASE))
39 DESTDIR:=$(TARGETBASE)/$(TARGETDIR)
41 DESTDIR:=$(EPOCROOT)epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)/z/$(TARGETDIR)
45 SOURCEDIR := $(subst PLATFORM,$(PLATFORM_PATH),$(SOURCEDIR))
46 SOURCEDIR := $(subst CFG,$(CFG_PATH),$(SOURCEDIR))
47 SOURCEDIR := $(subst /,$(/),$(SOURCEDIR))
49 SOURCEDIR := $(EPOCROOT)epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)
52 TARGET_COPY := $(foreach f,$(SOURCES),$(DESTDIR)/$(f) )
55 $(call createdir,"$@")
58 $(CP) $(call slash2generic, $(SOURCEDIR)/$(notdir $@) $@)
59 -$(ERASE) $(call slash2generic, $(SOURCEDIR)/$(notdir $@))
62 # The targets invoked by abld...
64 BLD : $(DESTDIR) $(TARGET_COPY)
66 MAKMAKE SAVESPACE FREEZE LIB CLEANLIB RESOURCE FINAL :
70 -$(ERASE) $(TARGET_COPY)