sl@0: # sl@0: # Copyright (c) 2009 Nokia Ltd. All rights reserved. sl@0: # sl@0: sl@0: GDIR:=gen sl@0: sl@0: SRC:=dllt.h dllt.cpp dllt.cia dlltifc.h exet.cpp exetifc.h \ sl@0: exetifc.cpp t_ldrtst.h t_ldrtst.cpp t_ldrtst2.cpp t_ldrtst.mmp t_sfhash.cpp t_hash.h sl@0: sl@0: SOURCE_FILES:=$(addprefix $(TO_BLDINF)/,$(SRC)) sl@0: DEST_FILES:=$(addprefix $(TO_BLDINF)/$(GDIR)/,$(SRC)) sl@0: sl@0: sl@0: define ldrtest_buildcode sl@0: # Use guard to ensure only generate and build the source once sl@0: ifeq ($(f32test_loader_dlltree_$(call sanitise,$(PROJECT_META))),) sl@0: f32test_loader_dlltree_$(call sanitise,$(PROJECT_META)):=1 sl@0: sl@0: $(DEST_FILES): $(TO_BLDINF)/$(GDIR)/% : $(TO_BLDINF)/% $(TO_BLDINF)/$(GDIR)/generated sl@0: cp -u $$(filter-out %generated,$$^) $$@ sl@0: sl@0: $(TO_BLDINF)/$(GDIR)/generated: $(TO_BLDINF)/dlltree.pl $(TO_BLDINF)/dlltree.txt sl@0: perl $(TO_BLDINF)/dlltree.pl $(TO_BLDINF)/dlltree.txt $(TO_BLDINF)/$(GDIR) sl@0: touch $$@ sl@0: endif sl@0: sl@0: ALL :: $(DEST_FILES) $(TO_BLDINF)/$(GDIR)/generated sl@0: $(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: sl@0: endef sl@0: sl@0: $(eval $(ldrtest_buildcode)) sl@0: