author | Daniel Jacobs <daniel.jacobs@nokia.com> |
Mon, 29 Mar 2010 14:20:00 +0100 | |
branch | wip |
changeset 443 | 2f5cedd04db9 |
parent 3 | e1eecf4d390d |
child 446 | 0c3dbdc03f47 |
permissions | -rw-r--r-- |
3 | 1 |
# |
2 |
# Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 |
# All rights reserved. |
|
4 |
# This component and the accompanying materials are made available |
|
5 |
# under the terms of the License "Eclipse Public License v1.0" |
|
6 |
# which accompanies this distribution, and is available |
|
7 |
# at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 |
# |
|
9 |
# Initial Contributors: |
|
10 |
# Nokia Corporation - initial contribution. |
|
11 |
# |
|
12 |
# Contributors: |
|
13 |
# |
|
14 |
# Description: |
|
15 |
# global include file : this is included by all generated makefiles |
|
16 |
# 1) include all the common tools |
|
17 |
# 2) add global targets such as CLEAN and REALLYCLEAN |
|
18 |
# 3) specify the top level dependencies between targets |
|
19 |
# INPUTS : assumes OSTYPE and FLMHOME are set. |
|
20 |
# |
|
21 |
||
22 |
ifeq ($(SYMBIAN_FLM_GLOBALS_MK),) |
|
23 |
SYMBIAN_FLM_GLOBALS_MK:=1 |
|
24 |
||
25 |
# get the common tools |
|
26 |
include $(FLMHOME)/flmtools.mk |
|
27 |
||
28 |
# initialise the list of created directories |
|
29 |
makepathLIST:= |
|
30 |
||
31 |
# set the variables TOOLPLATFORMDIR and DOTEXE |
|
32 |
ifeq ($(filter win,$(HOSTPLATFORM)),win) |
|
33 |
DOTEXE:=.exe |
|
34 |
TOOLPLATFORMDIR:= |
|
35 |
else |
|
36 |
DOTEXE:= |
|
37 |
TOOLPLATFORMDIR:=/$(HOSTPLATFORM_DIR) |
|
38 |
endif |
|
39 |
||
40 |
# addglobal(GlobalTargetName) |
|
41 |
SYMBIAN_GLOBAL_TARGETS:= |
|
42 |
||
43 |
define sgt_addcmds |
|
44 |
.PHONY:: $1 |
|
45 |
||
46 |
$(if $(filter win,$(HOSTPLATFORM)),,$(call lowercase,$1):: $1) |
|
47 |
||
48 |
SYMBIAN_GLOBAL_TARGETS:=$$(SYMBIAN_GLOBAL_TARGETS) $(1) |
|
49 |
endef |
|
50 |
||
51 |
define addglobal |
|
52 |
$(eval $(call sgt_addcmds,$(1))) |
|
53 |
endef |
|
54 |
||
443
2f5cedd04db9
Changes for delete on failed compile.
Daniel Jacobs <daniel.jacobs@nokia.com>
parents:
3
diff
changeset
|
55 |
# Enable DELETE_ON_FAILED_COMPILE work around for failed RVCT 2.2 compiles |
2f5cedd04db9
Changes for delete on failed compile.
Daniel Jacobs <daniel.jacobs@nokia.com>
parents:
3
diff
changeset
|
56 |
ifneq ($(DELETE_ON_FAILED_COMPILE),) |
2f5cedd04db9
Changes for delete on failed compile.
Daniel Jacobs <daniel.jacobs@nokia.com>
parents:
3
diff
changeset
|
57 |
RVCT22_DELETE_HACK:=|| ($$(GNURM) $$@; exit 1;) |
2f5cedd04db9
Changes for delete on failed compile.
Daniel Jacobs <daniel.jacobs@nokia.com>
parents:
3
diff
changeset
|
58 |
endif # ifneq ($(DELETE_ON_FAILED_COMPILE),) |
2f5cedd04db9
Changes for delete on failed compile.
Daniel Jacobs <daniel.jacobs@nokia.com>
parents:
3
diff
changeset
|
59 |
|
3 | 60 |
ALLTARGET:=ALL |
61 |
||
62 |
.PHONY:: $(ALLTARGET) |
|
63 |
$(ALLTARGET):: BUILD |
|
64 |
||
65 |
# Global targets should generally be double colon rules because |
|
66 |
# they allow horizontal states to be placed into the build system. |
|
67 |
# e.g the "EXPORTED" state. |
|
68 |
$(call addglobal,BUILD) |
|
69 |
$(call addglobal,CLEAN) |
|
70 |
$(call addglobal,CLEANEXPORT) |
|
71 |
$(call addglobal,EXPORT) |
|
72 |
$(call addglobal,FINAL) |
|
73 |
$(call addglobal,FREEZE) |
|
74 |
$(call addglobal,LIBRARY) |
|
75 |
$(call addglobal,LISTING) |
|
76 |
$(call addglobal,MAKEFILE) |
|
77 |
$(call addglobal,REALLYCLEAN) |
|
78 |
$(call addglobal,BITMAP) |
|
79 |
$(call addglobal,RESOURCE) |
|
80 |
$(call addglobal,ROMFILE) |
|
81 |
$(call addglobal,TARGET) |
|
82 |
$(call addglobal,WHAT) |
|
83 |
$(call addglobal,WHATEXPORTS) |
|
84 |
$(call addglobal,WHATARMV5) |
|
85 |
$(call addglobal,WHATWINSCW) |
|
86 |
$(call addglobal,WHATTOOLS2) |
|
87 |
$(call addglobal,WHATTOOLS) |
|
88 |
$(call addglobal,WHATTEM) |
|
89 |
$(call addglobal,WHATRESOURCES) |
|
90 |
$(call addglobal,WHATBITMAP) |
|
91 |
$(call addglobal,WHATGNUEM) |
|
92 |
$(call addglobal,WHATSTRINGTABLE) |
|
93 |
||
94 |
# Ignore errors in some rules so as to "keep going" |
|
95 |
# so if one export fails then that won't stop unrelated |
|
96 |
# .cpp files from building. (.cpp files must all depend on EXPORT |
|
97 |
# so that parallel builds work) |
|
98 |
.IGNORE: EXPORT BITMAP RESOURCE LIBRARY |
|
99 |
# dependencies between top-level targets |
|
100 |
BUILD:: EXPORT MAKEFILE BITMAP RESOURCE LIBRARY TARGET FINAL |
|
101 |
||
102 |
MAKEFILE:: EXPORT |
|
103 |
BITMAP:: MAKEFILE |
|
104 |
RESOURCE:: BITMAP |
|
105 |
LIBRARY:: RESOURCE |
|
106 |
TARGET:: LIBRARY |
|
107 |
FINAL:: TARGET |
|
108 |
||
109 |
.PHONY:: EXPORT |
|
110 |
||
111 |
||
112 |
WHAT:: WHATEXPORTS WHATARMV5 WHATWINSCW WHATTOOLS2 WHATTEM WHATGNUEM WHATRESOURCES WHATBITMAP WHATSTRINGTABLE |
|
113 |
||
114 |
REALLYCLEAN:: CLEAN CLEANEXPORT |
|
115 |
||
116 |
# Create one of every double colon rule |
|
117 |
WHATBITMAP:: |
|
118 |
||
119 |
WHATRESOURCES:: |
|
120 |
||
121 |
WHATSTRINGTABLE:: |
|
122 |
||
123 |
WHATTEM:: |
|
124 |
||
125 |
WHATGNUEM:: |
|
126 |
||
127 |
WHATTOOLS2:: |
|
128 |
||
129 |
WHATWINSCW:: |
|
130 |
||
131 |
WHATARMV5:: |
|
132 |
||
133 |
WHATEXPORTS:: |
|
134 |
||
135 |
LISTING:: |
|
136 |
||
137 |
CLEAN:: |
|
138 |
||
139 |
CLEANEXPORT:: |
|
140 |
||
141 |
REALLYCLEAN:: |
|
142 |
||
143 |
EXPORT:: |
|
144 |
||
145 |
RESOURCE:: |
|
146 |
||
147 |
BITMAP:: |
|
148 |
||
149 |
# put known resource header to resource header dependencies here |
|
150 |
||
151 |
eikcdlg_DEPENDS:=eikcore.rsg eikcoctl.rsg |
|
152 |
eikmisc_DEPENDS:=eikcore.rsg |
|
153 |
eikfile_DEPENDS:=eikcoctl.rsg |
|
154 |
eikir_DEPENDS:=eikcoctl.rsg |
|
155 |
eikprint_DEPENDS:=eikcoctl.rsg |
|
156 |
||
157 |
||
158 |
# For users of SBSv2 who wish to add in their own global settings |
|
159 |
# without modifying this file: |
|
160 |
-include $(FLMHOME)/user/globals.mk |
|
161 |
||
162 |
endif |
|
163 |