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 |
#
|
|
15 |
|
|
16 |
# To guarantee there is a slash at the end of EPOCROOT in case there is not.
|
|
17 |
# This is needed to ensure compatibility with SBSv1.
|
|
18 |
TMPROOT:=$(subst \,/,$(EPOCROOT))
|
|
19 |
EPOCROOT:=$(patsubst %/,%,$(TMPROOT))/
|
|
20 |
|
|
21 |
include $(EPOCROOT)epoc32/tools/shell/$(notdir $(basename $(SHELL))).mk
|
|
22 |
|
|
23 |
|
|
24 |
XINCDIR := $(INC_PATH)
|
|
25 |
XINCKDIR := $(INC_PATH)/kernel
|
|
26 |
|
|
27 |
PROCEED:=all
|
|
28 |
ifneq "$(PBUILDPID)" ""
|
|
29 |
ifneq "$(PLATFORM)" "$(__firstplat)"
|
|
30 |
PROCEED:=skip
|
|
31 |
endif
|
|
32 |
endif
|
|
33 |
|
|
34 |
.PHONY : MAKMAKE FREEZE LIB CLEANLIB RESOURCE FINAL BLD SAVESPACE RELEASABLES CLEAN
|
|
35 |
.PHONY : all skip
|
|
36 |
|
|
37 |
MAKMAKE : $(PROCEED)
|
|
38 |
|
|
39 |
FREEZE :
|
|
40 |
|
|
41 |
LIB : $(PROCEED)
|
|
42 |
|
|
43 |
CLEANLIB :
|
|
44 |
|
|
45 |
RESOURCE :
|
|
46 |
|
|
47 |
FINAL :
|
|
48 |
|
|
49 |
BLD SAVESPACE : $(PROCEED)
|
|
50 |
|
|
51 |
RELEASABLES :
|
|
52 |
|
|
53 |
CLEAN :
|
|
54 |
-$(ERASE) $(call slash2generic,$(XINCDIR)/exec_enum.h)
|
|
55 |
-$(ERASE) $(call slash2generic,$(XINCDIR)/exec_user.h)
|
|
56 |
-$(ERASE) $(call slash2generic,$(XINCKDIR)/exec_kernel.h)
|
|
57 |
|
|
58 |
all: $(XINCDIR)/exec_enum.h $(XINCDIR)/exec_user.h $(XINCKDIR)/exec_kernel.h
|
|
59 |
|
|
60 |
$(XINCDIR)/exec_enum.h : $(EXTRA_SRC_PATH)/execs.txt $(EXTRA_SRC_PATH)/genexec.pl
|
|
61 |
perl $(EXTRA_SRC_PATH)/genexec.pl -i $(EXTRA_SRC_PATH)/execs.txt -e $(XINCDIR)/exec_enum.h -u $(XINCDIR)/exec_user.h -k $(XINCKDIR)/exec_kernel.h
|
|
62 |
|
|
63 |
$(XINCDIR)/exec_user.h : $(EXTRA_SRC_PATH)/execs.txt $(EXTRA_SRC_PATH)/genexec.pl
|
|
64 |
perl $(EXTRA_SRC_PATH)/genexec.pl -i $(EXTRA_SRC_PATH)/execs.txt -e $(XINCDIR)/exec_enum.h -u $(XINCDIR)/exec_user.h -k $(XINCKDIR)/exec_kernel.h
|
|
65 |
|
|
66 |
$(XINCKDIR)/exec_kernel.h : $(EXTRA_SRC_PATH)/execs.txt $(EXTRA_SRC_PATH)/genexec.pl
|
|
67 |
perl $(EXTRA_SRC_PATH)/genexec.pl -i $(EXTRA_SRC_PATH)/execs.txt -e $(XINCDIR)/exec_enum.h -u $(XINCDIR)/exec_user.h -k $(XINCKDIR)/exec_kernel.h
|
|
68 |
|
|
69 |
|
|
70 |
skip:
|
|
71 |
echo GENEXEC skipped for $(PLATFORM) $(CFG)
|