599
|
1 |
# Copyright (c) 2007-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 |
#
|
|
15 |
|
|
16 |
TMPROOT:=$(subst \,/,$(EPOCROOT))
|
|
17 |
EPOCROOT:=$(patsubst %/,%,$(TMPROOT))/
|
|
18 |
|
|
19 |
include $(EPOCROOT)epoc32/tools/shell/$(notdir $(basename $(SHELL))).mk
|
|
20 |
|
|
21 |
ifeq ($(findstring WINS,$(PLATFORM)),WINS)
|
|
22 |
EPOCDATADIR:=$(EPOCROOT)epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)
|
|
23 |
else
|
|
24 |
EPOCDATADIR:=$(EPOCROOT)epoc32/data
|
|
25 |
endif
|
|
26 |
|
|
27 |
BINSOURCEDIR:=$(EPOCROOT)epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)
|
|
28 |
RESOURCESOURCEDIR:=$(EPOCDATADIR)/z/resource/plugins
|
|
29 |
|
|
30 |
FILE1:=normal_plugin.dll
|
|
31 |
FILE2:=hanging_plugin.dll
|
|
32 |
FILE3:=corrupt_plugin.dll
|
|
33 |
FILE4:=reconciliation_plugin.dll
|
|
34 |
FILE5:=ab_normal_plugin.dll
|
|
35 |
FILE6:=bc_enhanced_plugin.dll
|
|
36 |
FILE7:=slowstart_plugin.dll
|
|
37 |
FILE8:=invalid_plugin.dll
|
|
38 |
FILE9:=normal_plugin.rsc
|
|
39 |
FILE10:=hanging_plugin.rsc
|
|
40 |
FILE11:=corrupt_plugin.rsc
|
|
41 |
FILE12:=reconciliation_plugin.rsc
|
|
42 |
FILE13:=ab_normal_plugin.rsc
|
|
43 |
FILE14:=bc_enhanced_plugin.rsc
|
|
44 |
FILE15:=slowstart_plugin.rsc
|
|
45 |
FILE16:=invalid_plugin.rsc
|
|
46 |
|
|
47 |
TARGETDIR:=$(EPOCDATADIR)/z/test/efm/plugins
|
|
48 |
# we copy the normal plugin files to the resource folder on C: drive for the plugin ignoring test
|
|
49 |
PLUGINTARGETDIR:=$(EPOCROOT)epoc32/winscw/c/sys/bin
|
|
50 |
RESOURCETARGETDIR:=$(EPOCROOT)epoc32/winscw/c/resource/plugins
|
|
51 |
|
|
52 |
$(TARGETDIR) :
|
|
53 |
$(call createdir,"$@")
|
|
54 |
|
|
55 |
$(PLUGINTARGETDIR) :
|
|
56 |
$(call createdir,"$@")
|
|
57 |
|
|
58 |
$(RESOURCETARGETDIR) :
|
|
59 |
$(call createdir,"$@")
|
|
60 |
|
|
61 |
COPYFILES : $(TARGETDIR) $(PLUGINTARGETDIR) $(RESOURCETARGETDIR)
|
|
62 |
$(call forcecopy,$(BINSOURCEDIR)/$(FILE1),$(TARGETDIR)/$(FILE1))
|
|
63 |
$(call forcecopy,$(BINSOURCEDIR)/$(FILE1),$(PLUGINTARGETDIR)/$(FILE1))
|
|
64 |
$(call forcecopy,$(BINSOURCEDIR)/$(FILE2),$(TARGETDIR)/$(FILE2))
|
|
65 |
$(call forcecopy,$(BINSOURCEDIR)/$(FILE3),$(TARGETDIR)/$(FILE3))
|
|
66 |
$(call forcecopy,$(BINSOURCEDIR)/$(FILE4),$(TARGETDIR)/$(FILE4))
|
|
67 |
$(call forcecopy,$(BINSOURCEDIR)/$(FILE5),$(TARGETDIR)/$(FILE5))
|
|
68 |
$(call forcecopy,$(BINSOURCEDIR)/$(FILE6),$(TARGETDIR)/$(FILE6))
|
|
69 |
$(call forcecopy,$(BINSOURCEDIR)/$(FILE7),$(TARGETDIR)/$(FILE7))
|
|
70 |
$(call forcecopy,$(BINSOURCEDIR)/$(FILE8),$(TARGETDIR)/$(FILE8))
|
|
71 |
$(call forcecopy,$(RESOURCESOURCEDIR)/$(FILE9),$(TARGETDIR)/$(FILE9))
|
|
72 |
$(call forcecopy,$(RESOURCESOURCEDIR)/$(FILE9),$(RESOURCETARGETDIR)/$(FILE9))
|
|
73 |
$(call forcecopy,$(RESOURCESOURCEDIR)/$(FILE10),$(TARGETDIR)/$(FILE10))
|
|
74 |
$(call forcecopy,$(RESOURCESOURCEDIR)/$(FILE11),$(TARGETDIR)/$(FILE11))
|
|
75 |
$(call forcecopy,$(RESOURCESOURCEDIR)/$(FILE12),$(TARGETDIR)/$(FILE12))
|
|
76 |
$(call forcecopy,$(RESOURCESOURCEDIR)/$(FILE13),$(TARGETDIR)/$(FILE13))
|
|
77 |
$(call forcecopy,$(RESOURCESOURCEDIR)/$(FILE14),$(TARGETDIR)/$(FILE14))
|
|
78 |
$(call forcecopy,$(RESOURCESOURCEDIR)/$(FILE15),$(TARGETDIR)/$(FILE15))
|
|
79 |
$(call forcecopy,$(RESOURCESOURCEDIR)/$(FILE16),$(TARGETDIR)/$(FILE16))
|
|
80 |
|
|
81 |
ERASEFILES : $(call slash2generic,$(foreach FILE, $(FILE1) $(FILE2) $(FILE3) $(FILE4) $(FILE5) $(FILE6) $(FILE7) $(FILE8), $(TARGETDIR)/$(FILE)) $(PLUGINTARGETDIR)/$(FILE1))
|
|
82 |
$(call forceremove,$(BINSOURCEDIR)/$(FILE1))
|
|
83 |
$(call forceremove,$(BINSOURCEDIR)/$(FILE2))
|
|
84 |
$(call forceremove,$(BINSOURCEDIR)/$(FILE3))
|
|
85 |
$(call forceremove,$(BINSOURCEDIR)/$(FILE4))
|
|
86 |
$(call forceremove,$(BINSOURCEDIR)/$(FILE5))
|
|
87 |
$(call forceremove,$(BINSOURCEDIR)/$(FILE6))
|
|
88 |
$(call forceremove,$(BINSOURCEDIR)/$(FILE7))
|
|
89 |
$(call forceremove,$(BINSOURCEDIR)/$(FILE8))
|
|
90 |
|
|
91 |
DO_NOTHING:
|
|
92 |
@echo do nothing
|
|
93 |
|
|
94 |
#
|
|
95 |
# The targets invoked by bld...
|
|
96 |
#
|
|
97 |
|
|
98 |
BLD : DO_NOTHING
|
|
99 |
|
|
100 |
CLEAN :
|
|
101 |
$(call forceremove,$(TARGETDIR)/$(FILE1))
|
|
102 |
$(call forceremove,$(PLUGINTARGETDIR)/$(FILE1))
|
|
103 |
$(call forceremove,$(TARGETDIR)/$(FILE2))
|
|
104 |
$(call forceremove,$(TARGETDIR)/$(FILE3))
|
|
105 |
$(call forceremove,$(TARGETDIR)/$(FILE4))
|
|
106 |
$(call forceremove,$(TARGETDIR)/$(FILE5))
|
|
107 |
$(call forceremove,$(TARGETDIR)/$(FILE6))
|
|
108 |
$(call forceremove,$(TARGETDIR)/$(FILE7))
|
|
109 |
$(call forceremove,$(TARGETDIR)/$(FILE8))
|
|
110 |
$(call forceremove,$(TARGETDIR)/$(FILE9))
|
|
111 |
$(call forceremove,$(RESOURCETARGETDIR)/$(FILE9))
|
|
112 |
$(call forceremove,$(TARGETDIR)/$(FILE10))
|
|
113 |
$(call forceremove,$(TARGETDIR)/$(FILE11))
|
|
114 |
$(call forceremove,$(TARGETDIR)/$(FILE12))
|
|
115 |
$(call forceremove,$(TARGETDIR)/$(FILE13))
|
|
116 |
$(call forceremove,$(TARGETDIR)/$(FILE14))
|
|
117 |
$(call forceremove,$(TARGETDIR)/$(FILE15))
|
|
118 |
$(call forceremove,$(TARGETDIR)/$(FILE16))
|
|
119 |
$(call forceremove,$(RESOURCESOURCEDIR)/$(FILE9))
|
|
120 |
$(call forceremove,$(RESOURCESOURCEDIR)/$(FILE10))
|
|
121 |
$(call forceremove,$(RESOURCESOURCEDIR)/$(FILE11))
|
|
122 |
$(call forceremove,$(RESOURCESOURCEDIR)/$(FILE12))
|
|
123 |
$(call forceremove,$(RESOURCESOURCEDIR)/$(FILE13))
|
|
124 |
$(call forceremove,$(RESOURCESOURCEDIR)/$(FILE14))
|
|
125 |
$(call forceremove,$(RESOURCESOURCEDIR)/$(FILE15))
|
|
126 |
$(call forceremove,$(RESOURCESOURCEDIR)/$(FILE16))
|
|
127 |
|
|
128 |
RELEASABLES :
|
|
129 |
@echo $(TARGETDIR)/$(FILE1)
|
|
130 |
@echo $(PLUGINTARGETDIR)/$(FILE1)
|
|
131 |
@echo $(TARGETDIR)/$(FILE2)
|
|
132 |
@echo $(TARGETDIR)/$(FILE3)
|
|
133 |
@echo $(TARGETDIR)/$(FILE4)
|
|
134 |
@echo $(TARGETDIR)/$(FILE5)
|
|
135 |
@echo $(TARGETDIR)/$(FILE6)
|
|
136 |
@echo $(TARGETDIR)/$(FILE7)
|
|
137 |
@echo $(TARGETDIR)/$(FILE8)
|
|
138 |
@echo $(TARGETDIR)/$(FILE9)
|
|
139 |
@echo $(RESOURCETARGETDIR)/$(FILE9)
|
|
140 |
@echo $(TARGETDIR)/$(FILE10)
|
|
141 |
@echo $(TARGETDIR)/$(FILE11)
|
|
142 |
@echo $(TARGETDIR)/$(FILE12)
|
|
143 |
@echo $(TARGETDIR)/$(FILE13)
|
|
144 |
@echo $(TARGETDIR)/$(FILE14)
|
|
145 |
@echo $(TARGETDIR)/$(FILE15)
|
|
146 |
@echo $(TARGETDIR)/$(FILE16)
|
|
147 |
|
|
148 |
MAKMAKE : DO_NOTHING
|
|
149 |
|
|
150 |
SAVESPACE : DO_NOTHING
|
|
151 |
|
|
152 |
LIB : DO_NOTHING
|
|
153 |
|
|
154 |
CLEANLIB : DO_NOTHING
|
|
155 |
|
|
156 |
FREEZE : DO_NOTHING
|
|
157 |
|
|
158 |
RESOURCE : DO_NOTHING
|
|
159 |
|
|
160 |
FINAL : COPYFILES ERASEFILES
|
|
161 |
|
|
162 |
ROMFILE : DO_NOTHING
|