sbsv1/buildsystem/extension/tools/bldex.mk
author Ross Qin <ross.qin@nokia.com>
Tue, 02 Nov 2010 09:31:04 +0800
changeset 671 ff8ff850b0cf
parent 599 fa7a3cc6effd
permissions -rw-r--r--
fix the Serious problem with ROFS on-disk format
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
599
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
     1
# Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
     2
# All rights reserved.
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
     3
# This component and the accompanying materials are made available
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
     4
# under the terms of "Eclipse Public License v1.0"
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
     5
# which accompanies this distribution, and is available
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
     6
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
     7
#
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
     8
# Initial Contributors:
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
     9
# Nokia Corporation - initial contribution.
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    10
#
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    11
# Contributors:
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    12
#
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    13
# Description:
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    14
# Generate some source files
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    15
# Note that the YACC and LEX tools used expect to see Unix-style
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    16
# path names and will hang horribly if given DOS pathnames
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    17
# 
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    18
#
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    19
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    20
FIXSLASHES:=$(subst \,/,$(EPOCROOT))
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    21
EPOCROOTABS:=$(patsubst %/,%,$(FIXSLASHES))
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    22
EPOCROOT:=$(EPOCROOTABS)/
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    23
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    24
YACC_VERSION:=$(EPOCROOT)epoc32/gcc/bin/bison
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    25
LEX_VERSION:=$(EPOCROOT)epoc32/gcc/bin/flex
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    26
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    27
include $(EPOCROOT)epoc32/tools/shell/$(notdir $(basename $(SHELL))).mk
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    28
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    29
LEXSOURCE:=$(EXTENSION_ROOT)/$(LEXSOURCE)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    30
YACCSOURCE:=$(EXTENSION_ROOT)/$(YACCSOURCE)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    31
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    32
GENERATED_FILES= \
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    33
	$(EPOCROOT)epoc32/build/rcomp/build/rcomp.cpp \
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    34
	$(EPOCROOT)epoc32/build/rcomp/build/rcomp.hpp \
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    35
	$(EPOCROOT)epoc32/build/rcomp/build/rcompl.cpp
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    36
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    37
$(EPOCROOT)epoc32/build/rcomp/build/rcompl.cpp : $(LEXSOURCE)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    38
	$(call createdir,$(EPOCROOT)epoc32/build/rcomp/build)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    39
	$(LEX_VERSION) -t $< > $@
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    40
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    41
$(EPOCROOT)epoc32/build/rcomp/build/rcomp.cpp $(EPOCROOT)epoc32/build/rcomp/build/rcomp.hpp : $(YACCSOURCE)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    42
	$(call createdir,$(EPOCROOT)epoc32/build/rcomp/build)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    43
	$(YACC_VERSION) -d -o $@ $<
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    44
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    45
do_nothing:
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    46
	
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    47
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    48
#
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    49
# The targets invoked by bld...
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    50
#
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    51
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    52
# Do the work in the MAKMAKE target, in the hope of getting the files
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    53
# created in time to scan them in the processing of RCOMP.MMP
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    54
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    55
MAKMAKE : $(GENERATED_FILES)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    56
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    57
BLD : MAKMAKE
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    58
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    59
SAVESPACE : MAKMAKE
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    60
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    61
CLEAN : 
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    62
	$(call remove,$(GENERATED_FILES))
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    63
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    64
FREEZE : do_nothing
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    65
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    66
LIB : do_nothing
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    67
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    68
CLEANLIB : do_nothing
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    69
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    70
RESOURCE : do_nothing
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    71
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    72
FINAL : do_nothing
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    73
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    74
RELEASABLES : do_nothing
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    75