sbsv1/buildsystem/extension/security/upsserver.mk
changeset 607 378360dbbdba
parent 599 fa7a3cc6effd
equal deleted inserted replaced
591:22486c9c7b15 607:378360dbbdba
       
     1 # Copyright (c) 2007-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 #
       
    15 
       
    16 TMPROOT:=$(subst \,/,$(EPOCROOT))
       
    17 EPOCROOT:=$(patsubst %/,%,$(TMPROOT))/
       
    18 
       
    19 include $(EPOCROOT)epoc32/tools/shell/$(notdir $(basename $(SHELL))).mk
       
    20 
       
    21 ZDIR:=$(EPOCROOT)epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)/z
       
    22 
       
    23 ifeq "$(PLATFORM)" "WINSCW"
       
    24 COPIED_EXE=$(ZDIR)/sys/bin/upsserver.exe
       
    25 endif
       
    26 
       
    27 
       
    28 do_nothing:
       
    29 	
       
    30 
       
    31 #
       
    32 # The targets invoked by bld...
       
    33 #
       
    34 
       
    35 MAKMAKE : do_nothing
       
    36 
       
    37 BLD : do_nothing
       
    38 
       
    39 ifdef COPIED_EXE
       
    40 #
       
    41 # Rules to create and package winscw Z drive upsserver.exe copy
       
    42 #
       
    43 .PHONY: FINAL
       
    44 FINAL : $(COPIED_EXE)
       
    45 
       
    46 $(COPIED_EXE) : $(EPOCROOT)epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)/upsserver.exe
       
    47 	echo Copying upsserver.exe to emulator Z drive so the UPS romstub works.
       
    48 	$(CP)  $(call slash2generic,$<) $(call slash2generic,$@)
       
    49 
       
    50 CLEAN : 
       
    51 	-$(ERASE)  $(COPIED_EXE) 
       
    52 
       
    53 RELEASABLES : 
       
    54 	 echo $(COPIED_EXE)
       
    55 
       
    56 else
       
    57 
       
    58 FINAL : do_nothing
       
    59 CLEAN : do_nothing
       
    60 RELEASABLES : do_nothing
       
    61 
       
    62 endif
       
    63 
       
    64 SAVESPACE : BLD
       
    65 
       
    66 FREEZE : do_nothing
       
    67 
       
    68 LIB : do_nothing
       
    69 
       
    70 CLEANLIB : do_nothing
       
    71 
       
    72 RESOURCE : do_nothing
       
    73 
       
    74