Subversion Repositories DevTools

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
227 dpurdie 1
#..
2
# Copyright (C) 1998-2004 ERG Transit Systems, All rights reserved
3
#
4
# Module name   : avr_air
5
# Module type   : Makefile system
6
# Compiler(s)   : None
7
# Environment(s): All
8
#
9
# Description:
10
#       This file provides Toolset initialisation and plugin functions
11
#       to makelib.pl2
12
#
13
# Contents:     Dummy Rules
14
#
15
# Revision History:
16
#       16-Aug-04   DDP     Created
17
#............................................................................#
18
 
19
##############################################################################
20
#   ToolsetInit()
21
#       Runtime initialisation
22
#
23
##############################################################################
24
 
25
ToolsetInit();
26
 
27
sub ToolsetInit
28
{
29
    my( @args ) = @ScmToolsetArgs;             # Toolset arguments
30
    my( $version, $product, @defines, @dirs, @flags );
31
 
32
#.. Parse arguments
33
#
34
    Debug( "GENERIC(@args)\n" );
35
 
36
    foreach $_ ( @args ) {
37
        if (/^--Version=(.*)/) {                # Compiler version
38
            $version = "$1";
39
        } else {
40
            Message( "GENERIC: unknown toolset argument $_ -- ignored\n" );
41
        }
42
    }
43
 
44
#.. Parse Platform Arguments
45
#
261 dpurdie 46
    @args = @ScmPlatformArgs;                   # Platform arguments
227 dpurdie 47
    foreach $_ ( @args ) {
48
        if (/^--product=(.*)/) {                # GBE product
49
            $product = $1;
50
        } else {
51
            Message( "GENERIC: unknown platform argument $_ -- ignored\n" );
52
        }
53
    }
54
 
55
#.. Standard.rul requirements
56
#
57
    $s =   'asm';           # Assembler source file
58
    $o =   'obj';           # Object file
59
    $a =   'lib';           # Library file
60
    $so =  'dll';           # Shared library
61
    $exe = '.bin';          # Linked binary images
62
 
63
}
64
1;
65