3
|
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 the License "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 |
# config/default.flm
|
|
15 |
# Default build-configuration-wide rules and dependencies.
|
|
16 |
#
|
|
17 |
#
|
|
18 |
|
|
19 |
# put things in here that depend on EPOCROOT and
|
|
20 |
# therefore cannot go in globals.mk
|
|
21 |
|
|
22 |
# metaflm depends on variables set in the configuration
|
|
23 |
include $(FLMHOME)/metaflm.mk
|
|
24 |
|
|
25 |
# TEM dependencies
|
|
26 |
EPOC32BUILD:=$(EPOCROOT)/epoc32/build
|
|
27 |
|
|
28 |
.PHONY:: $(EPOC32BUILD)/TEM_MAKMAKE
|
|
29 |
.PHONY:: $(EPOC32BUILD)/TEM_RESOURCE
|
|
30 |
.PHONY:: $(EPOC32BUILD)/TEM_BLD
|
|
31 |
.PHONY:: $(EPOC32BUILD)/TEM_FINAL
|
|
32 |
|
|
33 |
$(EPOC32BUILD)/TEM_MAKMAKE:: EXPORT
|
|
34 |
$(EPOC32BUILD)/TEM_RESOURCE:: $(EPOC32BUILD)/TEM_MAKMAKE
|
|
35 |
$(EPOC32BUILD)/TEM_BLD:: $(EPOC32BUILD)/TEM_LIB
|
|
36 |
$(EPOC32BUILD)/TEM_FINAL:: $(EPOC32BUILD)/TEM_BLD
|
|
37 |
|
|
38 |
# Make engines with order only prerequisites should use them
|
|
39 |
# other engines can use a simulation
|
|
40 |
#
|
|
41 |
ifneq ($(HAVE_ORDERONLY),)
|
|
42 |
.PHONY:: $(EPOC32BUILD)/TEM_LIB
|
|
43 |
|
|
44 |
$(EPOC32BUILD)/TEM_LIB:: $(EPOC32BUILD)/TEM_RESOURCE
|
|
45 |
|
|
46 |
else
|
|
47 |
# Set up some rules that will simulate order only behaviour on all
|
|
48 |
# make engines:
|
|
49 |
|
|
50 |
define predatedupdate
|
|
51 |
@touch --date='10 years ago' "$1"
|
|
52 |
endef
|
|
53 |
|
|
54 |
# This one is non-phony because it's the only one that
|
|
55 |
# anything actually depends upon in a purely incremental build.
|
|
56 |
$(EPOC32BUILD)/TEM_LIB:: $(EPOC32BUILD)/TEM_RESOURCE
|
|
57 |
$(call predatedupdate,$@)
|
|
58 |
endif
|
|
59 |
|
|
60 |
# Optionally include user configuration if it exists.
|
|
61 |
-include $(FLMHOME)/user/default.flm
|