# Copyright (C) 1998-2009 ERG Limited, All rights reserved
#
# Module name   : Makefile.pl
# Module type   : Makefile system
# Environment(s): JATS Build System
#
# Description:    makefile.pl for package ant-dinkumware_stl
#
#.........................................................................#

die "Usage: Makefile.pl rootdir Makelib.pl\n"
    unless( $#ARGV+1 >= 2 );
require "$ARGV[1]";

#
# Build platform definitions ..
#
Platform( '*' );

############################################################################
#   Define the source files
#
Src ('*', 'ant-dinkumware_stl_template.xml' );

#
#   Rewrite the template file to embed the version number of the Dinkumware_STL
#   package.
#
GenerateFiles ('*', 'jats_transform_file',
                    '-infile=--Prerequisite(ant-dinkumware_stl_template.xml)',
                    '-outfile=--GeneratedCommon(ant-dinkumware_stl.xml)',
                    '-tag=TAG_Dinkumware_STL_TAG,--PackageInfo(Dinkumware_STL,--fullversion)'
                    );

#.............................................................................
# Packaging definitions
#
PackageFile ( '*', 'ant-dinkumware_stl.xml' );

#..
#
PackageFile ( '*'   , 'descpkg' );

#.............................................................................
# Finally generate the makefile
#
MakefileGenerate();

#..  Successful termination
1;
