sl@0
|
1 |
#
|
sl@0
|
2 |
# Copyright (c) 2009 Nokia Ltd. All rights reserved.
|
sl@0
|
3 |
#
|
sl@0
|
4 |
|
sl@0
|
5 |
GDIR:=gen
|
sl@0
|
6 |
|
sl@0
|
7 |
SRC:=dllt.h dllt.cpp dllt.cia dlltifc.h exet.cpp exetifc.h \
|
sl@0
|
8 |
exetifc.cpp t_ldrtst.h t_ldrtst.cpp t_ldrtst2.cpp t_ldrtst.mmp t_sfhash.cpp t_hash.h
|
sl@0
|
9 |
|
sl@0
|
10 |
SOURCE_FILES:=$(addprefix $(TO_BLDINF)/,$(SRC))
|
sl@0
|
11 |
DEST_FILES:=$(addprefix $(TO_BLDINF)/$(GDIR)/,$(SRC))
|
sl@0
|
12 |
|
sl@0
|
13 |
|
sl@0
|
14 |
define ldrtest_buildcode
|
sl@0
|
15 |
# Use guard to ensure only generate and build the source once
|
sl@0
|
16 |
ifeq ($(f32test_loader_dlltree_$(call sanitise,$(PROJECT_META))),)
|
sl@0
|
17 |
f32test_loader_dlltree_$(call sanitise,$(PROJECT_META)):=1
|
sl@0
|
18 |
|
sl@0
|
19 |
$(DEST_FILES): $(TO_BLDINF)/$(GDIR)/% : $(TO_BLDINF)/% $(TO_BLDINF)/$(GDIR)/generated
|
sl@0
|
20 |
cp -u $$(filter-out %generated,$$^) $$@
|
sl@0
|
21 |
|
sl@0
|
22 |
$(TO_BLDINF)/$(GDIR)/generated: $(TO_BLDINF)/dlltree.pl $(TO_BLDINF)/dlltree.txt
|
sl@0
|
23 |
perl $(TO_BLDINF)/dlltree.pl $(TO_BLDINF)/dlltree.txt $(TO_BLDINF)/$(GDIR)
|
sl@0
|
24 |
touch $$@
|
sl@0
|
25 |
endif
|
sl@0
|
26 |
|
sl@0
|
27 |
ALL :: $(DEST_FILES) $(TO_BLDINF)/$(GDIR)/generated
|
sl@0
|
28 |
$(SBS_HOME)/bin/sbs -b $(TO_BLDINF)/$(GDIR)/dlltree.inf -m $(EPOCBLD)/f32test_loader_dlltree.mk -f $(EPOCBLD)/f32test_loader_dlltree.log -c $(SBS_CONFIGURATION)
|
sl@0
|
29 |
|
sl@0
|
30 |
endef
|
sl@0
|
31 |
|
sl@0
|
32 |
$(eval $(ldrtest_buildcode))
|
sl@0
|
33 |
|