|
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 the License "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 |
|
17 # check that the 5 stages happen in the right order relative to each other |
|
18 # and relative to the MMP LIBRARY (LIB) and TARGET (BLD) stages. |
|
19 |
|
20 |
|
21 VARIANT:=$(PLATFORM_PATH)_$(CFG_PATH) |
|
22 |
|
23 GENERATED_C:=$(EPOCROOT)/epoc32/build/generated/tem_stages_generated.cpp |
|
24 GENERATED_H:=$(EPOCROOT)/epoc32/include/tem_stages_generated.h |
|
25 GENERATED_R:=$(EPOCROOT)/epoc32/include/tem_stages_generated_$(VARIANT).rsg |
|
26 GENERATED_L:=$(EPOCROOT)/epoc32/include/tem_stages_generated_$(VARIANT).lib |
|
27 GENERATED_B:=$(EPOCROOT)/epoc32/include/tem_stages_generated_$(VARIANT).bin |
|
28 GENERATED_F:=$(EPOCROOT)/epoc32/include/tem_stages_generated_$(VARIANT).final |
|
29 |
|
30 GENERATED:=$(GENERATED_C) $(GENERATED_H) $(GENERATED_R) $(GENERATED_L) $(GENERATED_B) $(GENERATED_F) |
|
31 |
|
32 BUILT_LIB:=$(EPOCROOT)/epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)/tem_stages.lib |
|
33 BUILT_EXE:=$(EPOCROOT)/epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)/tem_stages.exe |
|
34 COPY_LIB:=$(EPOCROOT)/epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)/tem_stages.lib2 |
|
35 COPY_EXE:=$(EPOCROOT)/epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)/tem_stages.exe2 |
|
36 |
|
37 COPIED:=$(COPY_LIB) $(COPY_EXE) |
|
38 |
|
39 DIRS:=$(dir $(GENERATED_H)) $(dir $(GENERATED_C)) |
|
40 $(DIRS): |
|
41 mkdir -p $@ |
|
42 |
|
43 # a header that is used by the EXE and LIB |
|
44 # and a source file used by the EXE and LIB |
|
45 # |
|
46 MAKMAKE: | $(DIRS) |
|
47 echo "// dummy" > $(GENERATED_H) |
|
48 echo "// dummy" > $(GENERATED_C) |
|
49 |
|
50 |
|
51 # check that our MAKMAKE happens before RESOURCE |
|
52 # |
|
53 RESOURCE: | $(DIRS) |
|
54 $(CP) $(GENERATED_H) $(GENERATED_R) |
|
55 |
|
56 |
|
57 # check that our RESOURCE happens before LIB |
|
58 # |
|
59 LIB: | $(DIRS) |
|
60 $(CP) $(GENERATED_R) $(GENERATED_L) |
|
61 |
|
62 |
|
63 # check that our LIB happens before BLD |
|
64 # check that MMP LIB happens before BLD |
|
65 # |
|
66 BLD: | $(DIRS) |
|
67 $(CP) $(GENERATED_L) $(GENERATED_B) |
|
68 $(CP) $(BUILT_LIB) $(COPY_LIB) |
|
69 |
|
70 |
|
71 # check that our BLD happens before FINAL |
|
72 # check that MMP BLD happens before FINAL |
|
73 # |
|
74 FINAL: | $(DIRS) |
|
75 $(CP) $(GENERATED_B) $(GENERATED_F) |
|
76 $(CP) $(BUILT_EXE) $(COPY_EXE) |
|
77 |
|
78 RELEASABLES: |
|
79 @echo $(BUILT_EXE) $(COPY_EXE) $(BUILT_LIB) $(COPY_LIB) |
|
80 |
|
81 |
|
82 CLEAN: |
|
83 $(RM) $(GENERATED) $(COPIED) |
|
84 |
|
85 CLEANLIB: ; |
|
86 |