1 # os_ver.mk |
1 # Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 # |
2 # All rights reserved. |
3 # Copyright (c) 2010 Accenture. All rights reserved. |
|
4 # This component and the accompanying materials are made available |
3 # This component and the accompanying materials are made available |
5 # under the terms of the "Eclipse Public License v1.0" |
4 # under the terms of "Eclipse Public License v1.0" |
6 # which accompanies this distribution, and is available |
5 # which accompanies this distribution, and is available |
7 # at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 # at the URL "http://www.eclipse.org/legal/epl-v10.html". |
8 # |
7 # |
9 # Initial Contributors: |
8 # Initial Contributors: |
10 # Accenture - Initial contribution |
9 # Nokia Corporation - initial contribution. |
11 # |
10 # |
12 MAKMAKE : |
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 GENERATED_SOURCE_DIR = $(EPOCROOT)epoc32/build/fshell/win32cons/generated |
|
21 GENERATED_SOURCE = $(GENERATED_SOURCE_DIR)/os_version.h |
|
22 |
|
23 |
|
24 OSVER:= $(EPOCROOT)sf/os/fshell/fshell/plugins/consoles/win32cons/group/os_version_h.pl |
|
25 |
|
26 |
|
27 MAKMAKE : $(GENERATED_SOURCE) |
|
28 |
|
29 $(GENERATED_SOURCE) : |
13 perl $(EPOCROOT)epoc32\tools\emkdir.pl $(EPOCROOT)epoc32\build\fshell/win32cons\generated |
30 perl $(EPOCROOT)epoc32\tools\emkdir.pl $(EPOCROOT)epoc32\build\fshell/win32cons\generated |
14 perl .\os_version_h.PL > $(EPOCROOT)epoc32\build\fshell/win32cons\generated\os_version.h |
31 perl $(OSVER) > $(GENERATED_SOURCE) |
15 |
32 |
16 CLEAN : |
33 CLEAN : |
17 -del ..\src\os_version.h |
34 -del ..\src\os_version.h |
18 |
35 |
19 BLD FREEZE LIB CLEANLIB RESOURCE SAVESPACE RELEASABLES FINAL : |
36 BLD FREEZE LIB CLEANLIB RESOURCE SAVESPACE RELEASABLES FINAL : |
|
37 |
|
38 |
|
39 |