deprecated/buildtools/buildsystem/extension/syslibs/generate_snm.mk
author Bob Rosenberg <bob.rosenberg@nokia.com>
Tue, 26 Oct 2010 11:04:46 +0100
changeset 661 199bb033aacf
parent 655 3f65fd25dfd4
permissions -rw-r--r--
Bugfixes and additional validation for sysdeftools
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
655
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
     1
# Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies).
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
     2
# All rights reserved.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
     3
# This component and the accompanying materials are made available
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
     4
# under the terms of "Eclipse Public License v1.0"
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
     5
# which accompanies this distribution, and is available
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
     6
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
     7
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
     8
# Initial Contributors:
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
     9
# Nokia Corporation - initial contribution.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    10
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    11
# Contributors:
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    12
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    13
# Description:
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    14
# basic_snm.mk
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    15
# 
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    16
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    17
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    18
# To ensure that EPOCROOT always ends with a forward slash
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    19
TMPROOT:=$(subst \,/,$(EPOCROOT))
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    20
EPOCROOT:=$(patsubst %/,%,$(TMPROOT))/
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    21
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    22
include $(EPOCROOT)epoc32/tools/shell/$(notdir $(basename $(SHELL))).mk
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    23
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    24
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    25
ifeq ($(PLATFORM),WINS) 
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    26
        TARGET_DIRECTORY := $(EPOCROOT)epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)/z/resource/charconv
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    27
else 
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    28
ifeq ($(PLATFORM),WINSCW)
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    29
        TARGET_DIRECTORY := $(EPOCROOT)epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)/z/resource/charconv
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    30
else
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    31
        TARGET_DIRECTORY := $(EPOCROOT)epoc32/data/z/resource/charconv
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    32
endif
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    33
endif
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    34
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    35
SOURCE_DIRECTORY=$(EXTENSION_ROOT)
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    36
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    37
TARGET_FILE=\
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    38
        $(TARGET_DIRECTORY)/$(TARGET)
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    39
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    40
TOOLS=\
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    41
        $(EPOCROOT)epoc32/tools/PARSER.pm \
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    42
        $(EPOCROOT)epoc32/tools/WRITER.pm \
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    43
        $(EPOCROOT)epoc32/tools/snmtool.pl
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    44
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    45
$(TARGET_DIRECTORY) :
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    46
	@$(call createdir,"$@")
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    47
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    48
$(TARGET_DIRECTORY)/basic.snm : $(SOURCE_DIRECTORY)/$(SOURCES) $(TOOLS)
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    49
	perl $(EPOCROOT)epoc32/tools/snmtool.pl $(SOURCE_DIRECTORY)/$(SOURCES) $@
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    50
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    51
DO_NOTHING :
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    52
	@echo do nothing
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    53
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    54
# the targets below are the public ones
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    55
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    56
MAKMAKE : DO_NOTHING
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    57
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    58
BLD : $(TARGET_DIRECTORY) $(TARGET_FILE)
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    59
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    60
SAVESPACE : BLD
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    61
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    62
FREEZE : DO_NOTHING
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    63
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    64
LIB : DO_NOTHING
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    65
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    66
CLEANLIB : DO_NOTHING
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    67
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    68
RESOURCE : DO_NOTHING
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    69
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    70
CLEAN : 
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    71
	-$(ERASE) $(TARGET_FILE)
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    72
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    73
RELEASABLES : 
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    74
	@echo $(TARGET_FILE)
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    75
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    76
FINAL : DO_NOTHING
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    77