|
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 # This makefile template is used to generate header/iby/features.dat file |
|
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 ifeq "$(CFG_PATH)" "rel" |
|
26 |
|
27 FEAT_TOOL := perl -S $(call slash2generic,features.pl) |
|
28 |
|
29 ifndef FEAT_DATABASE |
|
30 FEAT_DATABASE := $(EPOCROOT)epoc32/rom/include/featuredatabase.xml |
|
31 endif |
|
32 |
|
33 ifndef FEAT_HEADER_PATH |
|
34 FEAT_HEADER_PATH := $(EPOCROOT)epoc32/include |
|
35 endif |
|
36 |
|
37 ifndef FEAT_IBY_PATH |
|
38 FEAT_IBY_PATH := $(EPOCROOT)epoc32/rom/include |
|
39 endif |
|
40 |
|
41 ifndef FEAT_DAT_PATH |
|
42 FEAT_DAT_PATH := $(EPOCROOT)epoc32/data/config |
|
43 endif |
|
44 |
|
45 # Features tool will be invoked here |
|
46 ALL: |
|
47 $(FEAT_TOOL) --datfile=$(FEAT_DAT_PATH) --hdrfile=$(FEAT_HEADER_PATH) --ibyfile=$(FEAT_IBY_PATH) $(FEAT_DATABASE) |
|
48 |
|
49 |
|
50 BLD SAVESPACE: ALL |
|
51 |
|
52 CLEAN : |
|
53 -$(ERASE) $(call slash2generic,$(FEAT_HEADER_PATH)/featureuids.h) |
|
54 -$(ERASE) $(call slash2generic,$(FEAT_IBY_PATH)/feature.iby) |
|
55 -$(ERASE) $(call slash2generic,$(FEAT_DAT_PATH)/features.dat) |
|
56 |
|
57 RELEASABLES : |
|
58 @echo $(FEAT_HEADER_PATH)/featureuids.h |
|
59 @echo $(FEAT_IBY_PATH)/feature.iby |
|
60 @echo $(FEAT_DAT_PATH)/features.dat |
|
61 |
|
62 DO_NOTHING : |
|
63 @echo do nothing |
|
64 |
|
65 MAKMAKE : DO_NOTHING |
|
66 FREEZE : DO_NOTHING |
|
67 LIB : DO_NOTHING |
|
68 CLEANLIB : DO_NOTHING |
|
69 RESOURCE : DO_NOTHING |
|
70 FINAL : DO_NOTHING |
|
71 |
|
72 #if $(CFG_PATH) == "deb" |
|
73 else |
|
74 |
|
75 FINAL FREEZE LIB CLEANLIB RESOURCE RELEASABLES CLEAN BLD SAVESPACE MAKMAKE : |
|
76 |
|
77 endif |
|
78 |