|
1 # |
|
2 # Copyright (c) 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 "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 # |
|
16 # Build BIF resource & MBM files |
|
17 # |
|
18 |
|
19 PROJECT=bogus |
|
20 BITMAPS=$(SOURCEDIR)\bogus.bmp |
|
21 |
|
22 SOURCEDIR=..\..\bdbtsrc\testbif |
|
23 LANGUAGE=sc |
|
24 |
|
25 # |
|
26 # Tools |
|
27 # |
|
28 |
|
29 BMCONV=$(EPOCROOT)epoc32\tools\bmconv.exe |
|
30 |
|
31 # |
|
32 # Target directory |
|
33 # |
|
34 |
|
35 |
|
36 !if "$(PLATFORM)"=="WINSCW" |
|
37 TARGETDIR=$(EPOCROOT)Epoc32\winscw\c\test\bio\bif |
|
38 !else |
|
39 TARGETDIR=$(EPOCROOT)Epoc32\wins\c\test\bio\bif |
|
40 !endif |
|
41 |
|
42 |
|
43 |
|
44 $(TARGETDIR) : |
|
45 @perl $(EPOCROOT)epoc32\tools\emkdir.pl $(TARGETDIR) |
|
46 |
|
47 # |
|
48 # Build the bitmaps |
|
49 # |
|
50 |
|
51 MBMFILE=$(TARGETDIR)\$(PROJECT).mbm |
|
52 $(MBMFILE) : $(TARGETDIR) $(BMCONV) $(BITMAPS) |
|
53 $(BMCONV) $(MBMFILE) $(BITMAPS) |
|
54 |
|
55 # |
|
56 # Build the BIF resource file |
|
57 # |
|
58 |
|
59 SOURCERESOURCE=$(SOURCEDIR)\$(PROJECT).rss |
|
60 TARGETRESOURCE=$(TARGETDIR)\$(PROJECT).r$(LANGUAGE) |
|
61 $(TARGETRESOURCE) : $(TARGETDIR) $(SOURCERESOURCE) |
|
62 @copy $(SOURCERESOURCE) $(TARGETDIR)\$(PROJECT).rss |
|
63 @epocrc.bat -u -I. -I%EPOCROOT%epoc32\include $(TARGETDIR)\$(PROJECT).rss -o$(TARGETRESOURCE) |
|
64 @del $(TARGETDIR)\$(PROJECT).rss |
|
65 |
|
66 do_nothing: |
|
67 rem do nothing |
|
68 |
|
69 # |
|
70 # The targets invoked by abld |
|
71 # |
|
72 |
|
73 MAKMAKE : do_nothing |
|
74 |
|
75 RESOURCE : $(TARGETRESOURCE) $(MBMFILE) |
|
76 |
|
77 SAVESPACE : BLD |
|
78 |
|
79 BLD : do_nothing |
|
80 |
|
81 FREEZE : do_nothing |
|
82 |
|
83 LIB : do_nothing |
|
84 |
|
85 CLEANLIB : do_nothing |
|
86 |
|
87 FINAL : do_nothing |
|
88 |
|
89 CLEAN : |
|
90 @erase $(TARGETRESOURCE) $(MBMFILE) |
|
91 |
|
92 RELEASABLES : |
|
93 @echo $(TARGETRESOURCE) $(MBMFILE) |