599
|
1 |
# Copyright (c) 2006-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 |
# Builds the World Database
|
|
15 |
#
|
|
16 |
#
|
|
17 |
|
|
18 |
# To ensure that EPOCROOT always ends with a forward slash
|
|
19 |
TMPROOT:=$(subst \,/,$(EPOCROOT))
|
|
20 |
EPOCROOT:=$(patsubst %/,%,$(TMPROOT))/
|
|
21 |
|
|
22 |
include $(EPOCROOT)epoc32/tools/shell/$(notdir $(basename $(SHELL))).mk
|
|
23 |
|
|
24 |
|
|
25 |
TARGETDIR=$(EPOCROOT)epoc32/data/z/resource/worldserver
|
|
26 |
|
|
27 |
ifeq ($(PLATFORM), WINS)
|
|
28 |
TARGETDIR=$(EPOCROOT)epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)/z/resource/worldserver
|
|
29 |
else
|
|
30 |
ifeq ($(PLATFORM), WINSCW)
|
|
31 |
TARGETDIR=$(EPOCROOT)epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)/z/resource/worldserver
|
|
32 |
endif
|
|
33 |
endif
|
|
34 |
|
|
35 |
$(TARGETDIR) :
|
|
36 |
@$(call createdir,"$(TARGETDIR)")
|
|
37 |
|
|
38 |
WLDCOMP=$(EPOCROOT)epoc32/release/winc/udeb/wldcomp.exe
|
|
39 |
DATABASE=$(TARGETDIR)/$(TARGET)
|
|
40 |
|
|
41 |
# We don't build multiple languages - that's a problem
|
|
42 |
# for someone else...
|
|
43 |
|
|
44 |
$(DATABASE) : $(EXTENSION_ROOT)/$(SOURCES) $(WLDCOMP)
|
|
45 |
$(WLDCOMP) $(EXTENSION_ROOT)/$(SOURCES) $(DATABASE) -locale-01
|
|
46 |
|
|
47 |
do_nothing :
|
|
48 |
# do nothing
|
|
49 |
|
|
50 |
#
|
|
51 |
# The targets invoked by bld...
|
|
52 |
#
|
|
53 |
|
|
54 |
MAKMAKE : do_nothing
|
|
55 |
|
|
56 |
BLD : $(TARGETDIR) $(DATABASE)
|
|
57 |
|
|
58 |
SAVESPACE : BLD
|
|
59 |
|
|
60 |
CLEAN :
|
|
61 |
-$(ERASE) $(DATABASE)
|
|
62 |
|
|
63 |
FREEZE : do_nothing
|
|
64 |
|
|
65 |
LIB : do_nothing
|
|
66 |
|
|
67 |
CLEANLIB : do_nothing
|
|
68 |
|
|
69 |
RESOURCE : do_nothing
|
|
70 |
|
|
71 |
FINAL : do_nothing
|
|
72 |
|
|
73 |
RELEASABLES :
|
|
74 |
@echo $(DATABASE)
|
|
75 |
|
|
76 |
ROMFILE : do_nothing
|