|
1 # Copyright (c) 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 # Some functions that are commonly used by base FLM |
|
15 |
|
16 define base__compile |
|
17 $(1) : $(2) : $(3) |
|
18 $(call startrule,base__compile) \ |
|
19 $(CC) $(ARMCCFLAGS) $$< -o $$@ \ |
|
20 $(call endrule,base__compile) |
|
21 |
|
22 CLEANTARGETS := $(CLEANTARGETS) $(1) |
|
23 endef |
|
24 |
|
25 define base__h2inc |
|
26 $(1) : $(2) |
|
27 $(call startrule,base__h2inc) \ |
|
28 $(PERL) $(EPOCROOT)/epoc32/tools/h2inc.pl $$< $$@ ARMASM \ |
|
29 $(call endrule,base__h2inc) |
|
30 |
|
31 CLEANTARGETS := $(CLEANTARGETS) $(1) |
|
32 endef |
|
33 |
|
34 define base__asm |
|
35 $(1) : $(2) : $(3) |
|
36 $(call startrule,base__asm) \ |
|
37 $(ASM) $(AFLAGS) -o $$@ --LIST $(join $(basename $(1)),.lst) $$< \ |
|
38 $(call endrule,base__asm) |
|
39 |
|
40 CLEANTARGETS := $(CLEANTARGETS) $(1) $(join $(basename $(1)),.lst) |
|
41 endef |
|
42 |
|
43 define base__link |
|
44 $(1) : $(2) |
|
45 $(call startrule,base__link) \ |
|
46 $(LD) $(LFLAGS) -o $$@ $(FULLOBJECTS) \ |
|
47 $(call endrule,base__link) |
|
48 |
|
49 CLEANTARGETS := $(CLEANTARGETS) $(1) |
|
50 endef |
|
51 |
|
52 define base__strip |
|
53 $(1) : $(2) |
|
54 $(call startrule,base__strip) \ |
|
55 $(FROMELF) --bin --output $$@ $$< \ |
|
56 $(call endrule,base__strip) |
|
57 |
|
58 CLEANTARGETS := $(CLEANTARGETS) $(1) |
|
59 endef |
|
60 |
|
61 define base__omapsig |
|
62 $(1) : $(2) |
|
63 $(call startrule,base__omapsig) \ |
|
64 $(PERL) $(EPOCROOT)/epoc32/tools/omapsig.pl $(LINKBASE) $$< $$@ \ |
|
65 $(call endrule,base__omapsig) |
|
66 |
|
67 CLEANTARGETS := $(CLEANTARGETS) $(1) |
|
68 endef |
|
69 |