Subversion Repositories DevTools

Rev

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

Rev Author Line No. Line
227 dpurdie 1
# Copyright (C) 1998-2004 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 template example
9
#
10
#.........................................................................#
11
 
12
die "Usage: Makefile.pl rootdir Makelib.pl\n"
13
    unless( $#ARGV+1 >= 2 );
14
require "$ARGV[1]";
15
 
16
#
17
# Build platform definitions ..
18
#
19
Platform( '*' );
20
 
21
############################################################################
22
#   Define the source files
23
#
24
Src        ( '*'    , "source1.c" );
25
Src        ( '*'    , "source2.c" );
26
 
27
#.............................................................................
28
# Packaging definitions
29
#
30
PackageHdr  ( '*', @CHDRS ,"--Strip" );
31
 
32
#..
33
#
34
Src         ( '*'   , 'descpkg' );
35
PackageFile ( '*'   , 'descpkg' );
36
 
37
#.............................................................................
38
# Finally generate the makefile
39
#
40
MakefileGenerate();
41
 
42
#..  Successful termination
43
1;
44