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 |
# To ensure that EPOCROOT always ends with a forward slash
|
|
17 |
TMPROOT:=$(subst \,/,$(EPOCROOT))
|
|
18 |
EPOCROOT:=$(patsubst %/,%,$(TMPROOT))/
|
|
19 |
|
|
20 |
include $(EPOCROOT)epoc32/tools/shell/$(notdir $(basename $(SHELL))).mk
|
|
21 |
|
|
22 |
|
|
23 |
SOURCE_ARCHIVE:=$(EXTENSION_ROOT)/$(SOURCE_ARCHIVE)
|
|
24 |
|
|
25 |
ISPATH:=$(call settPath)
|
|
26 |
|
|
27 |
ifeq "$(ISPATH)" "1"
|
|
28 |
Path:=$(EPOCROOT)epoc32/gcc_mingw/bin;$(Path)
|
|
29 |
PATH:=$(Path)
|
|
30 |
endif
|
|
31 |
|
|
32 |
|
|
33 |
EXTRACT_DIR=$(EPOCROOT)epoc32/build
|
|
34 |
STL_DIR=$(EXTRACT_DIR)/STLport-$(STLPORT_VERSION)
|
|
35 |
BUILD_DIR=$(STL_DIR)/build/lib
|
|
36 |
UNZIPPED=$(STL_DIR)/unzipped.ok
|
|
37 |
|
|
38 |
RELEASE_DIR=$(EPOCROOT)epoc32/release/tools2
|
|
39 |
RELEASE_DIR_REL=$(RELEASE_DIR)/rel
|
|
40 |
RELEASE_DIR_DEB=$(RELEASE_DIR)/deb
|
|
41 |
RELEASE_DIRS=$(RELEASE_DIR_REL) $(RELEASE_DIR_DEB)
|
|
42 |
|
|
43 |
STL_REL_LIB_PATH=$(STL_DIR)/lib/libstlport.a
|
|
44 |
STL_DEB_LIB_PATH=$(STL_DIR)/lib/libstlportg.a
|
|
45 |
|
|
46 |
REL_LIB=$(RELEASE_DIR_REL)/$(STL_REL_LIB_NAME)
|
|
47 |
DEB_LIB=$(RELEASE_DIR_DEB)/$(STL_REL_LIB_NAME)
|
|
48 |
|
|
49 |
STL_HEADERS_PATH=$(EPOCROOT)epoc32/include/tools/stlport
|
|
50 |
|
|
51 |
|
|
52 |
$(UNZIPPED): $(SOURCE_ARCHIVE) $(EXTRACT_DIR)
|
|
53 |
unzip -o $(SOURCE_ARCHIVE) -d $(EXTRACT_DIR)
|
|
54 |
|
|
55 |
|
|
56 |
$(REL_LIB): $(UNZIPPED) $(STL_REL_LIB_PATH) $(RELEASE_DIR_REL)
|
|
57 |
$(call ecopy) $(STL_REL_LIB_PATH) $(REL_LIB)
|
|
58 |
|
|
59 |
$(DEB_LIB): $(UNZIPPED) $(STL_DEB_LIB_PATH) $(RELEASE_DIR_DEB)
|
|
60 |
$(call ecopy) $(STL_DEB_LIB_PATH) $(DEB_LIB)
|
|
61 |
|
|
62 |
LIB: $(REL_LIB) $(DEB_LIB)
|
|
63 |
|
|
64 |
|
|
65 |
$(EXTRACT_DIR) $(RELEASE_DIRS):
|
|
66 |
$(call createdir,$@)
|
|
67 |
|
|
68 |
# -Wno-uninitialized is needed by mingw gcc v3.4.5 because it gets
|
|
69 |
# # confused by some of the STLport source and gives this error erroneously
|
|
70 |
export EXTRA_CXXFLAGS=-Wno-uninitialized
|
|
71 |
|
|
72 |
$(STL_REL_LIB_PATH) (STL_DEB_LIB_PATH):
|
|
73 |
$(call tmpmacro)
|
|
74 |
make -C $(BUILD_DIR) -fgcc.mak install-release-static install-dbg-static LIB_SUFFIX=
|
|
75 |
|
|
76 |
CLEAN:
|
|
77 |
$(call remove,$(REL_LIB))
|
|
78 |
$(call remove,$(DEB_LIB))
|
|
79 |
make -C $(BUILD_DIR) -fgcc.mak clobber LIB_SUFFIX=
|
|
80 |
$(call remove,$(STL_DIR))
|
|
81 |
|
|
82 |
|
|
83 |
RELEASABLES:
|
|
84 |
@echo $(REL_LIB)
|
|
85 |
@echo $(DEB_LIB)
|
|
86 |
|
|
87 |
|
|
88 |
MAKMAKE BLD SAVESPACE FREEZE CLEANLIB RESOURCE FINAL:
|
|
89 |
@echo $@ does nothing in $(TEMPLATE_EXTENSION_MAKEFILE)
|
|
90 |
|
|
91 |
|