Subversion Repositories DevTools

Rev

Rev 287 | Rev 5709 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 287 Rev 335
Line 437... Line 437...
437
    #
437
    #
438
    #   Determine the target output name
438
    #   Determine the target output name
439
    #
439
    #
440
    my $root = "\$(BINDIR)/$name";
440
    my $root = "\$(BINDIR)/$name";
441
    my $full = $root . $::exe;
441
    my $full = $root . $::exe;
442
    my $dep  = $root . '.dep';
-
 
443
    my $map  = $root . '.map';
442
    my $map  = $root . '.map';
444
 
443
 
445
    #.. Packageing
444
    #.. Packageing
446
    #   Have supressed default Prog building
445
    #   Have supressed default Prog building
447
    #   Need to specify the files to Package
446
    #   Need to specify the files to Package
Line 450... Line 449...
450
    PackageProgAddFiles ( $name, $map, 'Class=map' ) if $map_file;
449
    PackageProgAddFiles ( $name, $map, 'Class=map' ) if $map_file;
451
 
450
 
452
 
451
 
453
    #.. Cleanup rules
452
    #.. Cleanup rules
454
    #
453
    #
455
    ToolsetGenerate( $dep );
-
 
456
    ToolsetGenerate( $map );
454
    ToolsetGenerate( $map );
457
    ToolsetGenerate( "$root.axf" );
455
    ToolsetGenerate( "$root.axf" );
458
    ToolsetGenerate( "$root.srt" );
456
    ToolsetGenerate( "$root.srt" );
459
    ToolsetGenerate( "$root.bak" );
457
    ToolsetGenerate( "$root.bak" );
460
 
458
 
Line 464... Line 462...
464
    push @$pLibs, 'ACT2000' if ( $addlibs );
462
    push @$pLibs, 'ACT2000' if ( $addlibs );
465
 
463
 
466
    #.. Build rules
464
    #.. Build rules
467
    #
465
    #
468
    my ($io) = ToolsetPrinter::New();
466
    my ($io) = ToolsetPrinter::New();
469
 
-
 
470
    #
-
 
471
    #   Standard Dependency rules
-
 
472
    #   Will generate rules to
-
 
473
    #       1) Determine at make-time the full paths to the libraries
-
 
474
    #       2) Include the above information
467
    my $dep = $io->SetLdTarget( $name );
475
    #
-
 
476
    $io->LDDEPEND( $name );                         # standard LDDEPEND rules
-
 
477
 
468
 
478
    #.. Dependency link,
469
    #.. Dependency link,
-
 
470
    #   Create a library dependency file
-
 
471
    #       Create command file to build applicaton dependency list
-
 
472
    #       from the list of dependent libraries
479
    #
473
    #
480
    #       Now piece together a variable $(name_dp) which ends up in
474
    #       Create makefile directives to include the dependency
481
    #       the command file building the application dependency list.
475
    #       list into the makefile.
482
    #
476
    #
483
    $io->SetTag( "${name}_dp" );                    # macro tag
477
    $io->DepRules( $pLibs, \&ToolsetLibRecipe );        # library depends rules
484
    $io->SetTerm();
-
 
485
    $io->DepRules( $name, $pLibs, \&ToolsetLibRecipe ); # library depends rules
478
    $io->LDDEPEND();                                    # standard LDDEPEND rules
486
    $io->Newline();
-
 
487
 
479
 
488
    #
480
    #
489
    #   List the object files
481
    #   List the object files
490
    #   Create a definition for the objects
482
    #   Create a definition for the objects
491
    #
483
    #
492
    $io->Label( "Object files", $name );            # label
484
    $io->Label( "Object files", $name );                # label
493
    $io->StartDef ("${name}_obj");
485
    $io->StartDef ("${name}_obj");
494
    $io->ObjList( $name, $pObjs, \&ToolsetObjRecipe );
486
    $io->ObjList( $name, $pObjs, \&ToolsetObjRecipe );
495
    $io->EndDef ();
487
    $io->EndDef ();
496
    $io->Newline();
488
    $io->Newline();
497
 
489