toolsandutils/buildsystem/extension/syslibs/generate_snm.mk
changeset 0 83f4b4db085c
child 1 d4b442d23379
equal deleted inserted replaced
-1:000000000000 0:83f4b4db085c
       
     1 # Copyright (c) 2000-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 # basic_snm.mk
       
    15 # 
       
    16 #
       
    17 
       
    18 # To ensure that EPOCROOT always ends with a forward slash
       
    19 TMPROOT:=$(subst \,/,$(EPOCROOT))
       
    20 EPOCROOT:=$(patsubst %/,%,$(TMPROOT))/
       
    21 
       
    22 include $(EPOCROOT)epoc32/tools/shell/$(notdir $(basename $(SHELL))).mk
       
    23 
       
    24 
       
    25 ifeq ($(PLATFORM),WINS) 
       
    26         TARGET_DIRECTORY := $(EPOCROOT)epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)/z/resource/charconv
       
    27 else 
       
    28 ifeq ($(PLATFORM),WINSCW)
       
    29         TARGET_DIRECTORY := $(EPOCROOT)epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)/z/resource/charconv
       
    30 else
       
    31         TARGET_DIRECTORY := $(EPOCROOT)epoc32/data/z/resource/charconv
       
    32 endif
       
    33 endif
       
    34 
       
    35 SOURCE_DIRECTORY=$(EXTENSION_ROOT)
       
    36 
       
    37 TARGET_FILE=\
       
    38         $(TARGET_DIRECTORY)/$(TARGET)
       
    39 
       
    40 TOOLS=\
       
    41         $(EPOCROOT)epoc32/tools/PARSER.pm \
       
    42         $(EPOCROOT)epoc32/tools/WRITER.pm \
       
    43         $(EPOCROOT)epoc32/tools/snmtool.pl
       
    44 
       
    45 $(TARGET_DIRECTORY) :
       
    46 	@$(call createdir,"$@")
       
    47 
       
    48 $(TARGET_DIRECTORY)/basic.snm : $(SOURCE_DIRECTORY)/$(SOURCES) $(TOOLS)
       
    49 	perl $(EPOCROOT)epoc32/tools/snmtool.pl $(SOURCE_DIRECTORY)/$(SOURCES) $@
       
    50 
       
    51 DO_NOTHING :
       
    52 	@echo do nothing
       
    53 
       
    54 # the targets below are the public ones
       
    55 
       
    56 MAKMAKE : DO_NOTHING
       
    57 
       
    58 BLD : $(TARGET_DIRECTORY) $(TARGET_FILE)
       
    59 
       
    60 SAVESPACE : BLD
       
    61 
       
    62 FREEZE : DO_NOTHING
       
    63 
       
    64 LIB : DO_NOTHING
       
    65 
       
    66 CLEANLIB : DO_NOTHING
       
    67 
       
    68 RESOURCE : DO_NOTHING
       
    69 
       
    70 CLEAN : 
       
    71 	-$(ERASE) $(TARGET_FILE)
       
    72 
       
    73 RELEASABLES : 
       
    74 	@echo $(TARGET_FILE)
       
    75 
       
    76 FINAL : DO_NOTHING
       
    77