Subversion Repositories DevTools

Rev

Blame | Last modification | View Log | RSS feed

# Copyright (C) 1998-2007 ERG Limited, All rights reserved
#
# Module name   : Makefile.pl
# Module type   : Makefile system
# Compiler(s)   : ANSI C
# Environment(s): n/a
#
# Description:    makefile.pl simple example
#
#.........................................................................#

die "Usage: Makefile.pl rootdir Makelib.pl\n"
    unless( $#ARGV+1 >= 2 );
require "$ARGV[1]";

# Build platform definitions ..
#
Platform( '*' );

############################################################################
#   Define the source files
#
Src        ( '*'    , "file.c" );

#
#   Build and install the library

Prog       ( '*', "Hello", "file" );

#.............................................................................
# Packaging definitions
#
PackageFile ( '*'   , 'descpkg' );
PackageProg ( '*'   , @PROGS );

#.............................................................................
# Finally generate the makefile
#
MakefileGenerate();

#..  Successful termination
1;