sdkcreationmw/sdkruntimes/MIDP/group/nei.mk
author rajpuroh
Mon, 08 Mar 2010 12:09:11 +0530
changeset 0 b26acd06ea60
permissions -rw-r--r--
First Contribution of SDK components
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     1
#
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     2
# Copyright (c) 2000 - 2005 Nokia Corporation and/or its subsidiary(-ies).
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     3
# All rights reserved.
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     4
# This component and the accompanying materials are made available
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     5
# under the terms of "Eclipse Public License v1.0"
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     6
# which accompanies this distribution, and is available
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     7
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     8
#
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     9
# Initial Contributors:
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    10
# Nokia Corporation - initial contribution.
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    11
#
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    12
# Contributors:
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    13
#
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    14
# Description: 
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    15
#
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    16
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    17
!IF "$(PLATFORM)" != "WINS" && "$(PLATFORM)" != "WINSCW"
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    18
!ERROR "Only building Java for WINS or WINSCW platform!"
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    19
!ENDIF
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    20
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    21
!IFNDEF EPOCROOT
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    22
EPOCROOT = \
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    23
!ENDIF
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    24
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    25
!INCLUDE config.mk
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    26
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    27
Ant = ant
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    28
BuildFile = ../nei/build.xml
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    29
BuildDir = ..\nei\build
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    30
JarFile = nei.jar
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    31
FinalJarDir = $(MidpBinDir)\epoc32\tools\ecmt
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    32
FinalJarFile = $(FinalJarDir)\$(JarFile)
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    33
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    34
# Targets
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    35
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    36
# Separate debug and release builds don't make sense here.
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    37
# We are only building our stuff in release pass to avoid
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    38
# building it twice
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    39
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    40
RELEASABLES:
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    41
    @echo $(FinalJarFile)
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    42
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    43
CLEAN:
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    44
    if exist $(FinalJarFile) del $(FinalJarFile)
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    45
!IF "$(CFG)" != "UDEB"
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    46
    $(Ant) -f $(BuildFile) clean
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    47
!ENDIF
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    48
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    49
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    50
BLD:
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    51
# Don't need to create $(MidpBinDir) - it's a subdirectory of $(FinalJarDir)
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    52
    if not exist $(FinalJarDir) md $(FinalJarDir)
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    53
!IF "$(CFG)" != "UDEB"
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    54
    $(Ant) -f $(BuildFile) build
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    55
    if exist $(BuildDir)\$(JarFile) copy $(BuildDir)\$(JarFile) $(FinalJarFile)
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    56
!ENDIF
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    57
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    58
MAKMAKE FINAL FREEZE LIB CLEANLIB RESOURCE SAVESPACE :
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    59
   @rem donothing