messagingfw/biomsgfw/BDBTSRC/testbif/testbif2.mk
changeset 0 8e480a14352b
equal deleted inserted replaced
-1:000000000000 0:8e480a14352b
       
     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 "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 # Build BIF resource & MBM files
       
    17 #
       
    18 
       
    19 PROJECT=testbif2
       
    20 BITMAPS=$(SOURCEDIR)\testbif.bmp
       
    21 
       
    22 SOURCEDIR=..\..\bdbtsrc\testbif
       
    23 LANGUAGE=sc
       
    24 
       
    25 #
       
    26 # Tools
       
    27 #
       
    28 
       
    29 BMCONV=$(EPOCROOT)epoc32\tools\bmconv.exe
       
    30 
       
    31 #
       
    32 # Target directory
       
    33 #
       
    34 
       
    35 !if "$(PLATFORM)"=="WINSCW"
       
    36 TARGETDIR=$(EPOCROOT)Epoc32\winscw\c\test\bio\bif
       
    37 !else 
       
    38 TARGETDIR=$(EPOCROOT)Epoc32\wins\c\test\bio\bif
       
    39 !endif
       
    40 
       
    41 
       
    42 $(TARGETDIR) :
       
    43 	@perl $(EPOCROOT)epoc32\tools\emkdir.pl $(TARGETDIR)
       
    44 
       
    45 #
       
    46 # Build the bitmaps
       
    47 #
       
    48 
       
    49 MBMFILE=$(TARGETDIR)\$(PROJECT).mbm
       
    50 $(MBMFILE) : $(TARGETDIR) $(BMCONV) $(BITMAPS)
       
    51 	$(BMCONV) $(MBMFILE) $(BITMAPS)
       
    52 
       
    53 #
       
    54 # Build the BIF resource file
       
    55 #
       
    56 
       
    57 SOURCERESOURCE=$(SOURCEDIR)\$(PROJECT).rss
       
    58 TARGETRESOURCE=$(TARGETDIR)\$(PROJECT).r$(LANGUAGE)
       
    59 $(TARGETRESOURCE) : $(TARGETDIR) $(SOURCERESOURCE)
       
    60 	@copy $(SOURCERESOURCE) $(TARGETDIR)\$(PROJECT).rss
       
    61 	@epocrc.bat -u -I. -I%EPOCROOT%epoc32\include $(TARGETDIR)\$(PROJECT).rss -o$(TARGETRESOURCE)
       
    62 	@del $(TARGETDIR)\$(PROJECT).rss
       
    63 
       
    64 do_nothing:
       
    65 	rem do nothing
       
    66 
       
    67 #
       
    68 # The targets invoked by abld 
       
    69 #
       
    70 
       
    71 MAKMAKE : do_nothing
       
    72 
       
    73 RESOURCE : $(TARGETRESOURCE) $(MBMFILE)
       
    74 
       
    75 SAVESPACE : BLD
       
    76 
       
    77 BLD : do_nothing
       
    78 
       
    79 FREEZE : do_nothing
       
    80 
       
    81 LIB : do_nothing
       
    82 
       
    83 CLEANLIB : do_nothing
       
    84 
       
    85 FINAL : do_nothing
       
    86 
       
    87 CLEAN : 
       
    88 	@erase $(TARGETRESOURCE) $(MBMFILE)
       
    89 
       
    90 RELEASABLES : 
       
    91 	@echo $(TARGETRESOURCE) $(MBMFILE)