Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
944 mhunt 1
# Copyright (C) 1998-2007 ERG Limited, All rights reserved
2
#
3
# Module name   : Makefile.pl
4
# Module type   : Makefile system
5
# Compiler(s)   : ANSI C
6
# Environment(s): n/a
7
#
8
# Description:    makefile.pl simple example
9
#
10
#.........................................................................#
11
 
12
die "Usage: Makefile.pl rootdir Makelib.pl\n"
13
    unless( $#ARGV+1 >= 2 );
14
require "$ARGV[1]";
15
 
16
# Build platform definitions ..
17
#
18
Platform( '*' );
19
 
20
############################################################################
21
#   Define the source files
22
#
23
Src        ( '*'    , "file.c" );
24
 
25
#
26
#   Build and install the library
27
 
28
Prog       ( '*', "Hello", "file" );
29
 
30
#.............................................................................
31
# Packaging definitions
32
#
33
PackageFile ( '*'   , 'descpkg' );
34
PackageProg ( '*'   , @PROGS );
35
 
36
#.............................................................................
37
# Finally generate the makefile
38
#
39
MakefileGenerate();
40
 
41
#..  Successful termination
42
1;
43