Subversion Repositories DevTools

Rev

Rev 5709 | 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
# Build platform definitions ..
17
#
18
Platform( '*' );
19
 
20
############################################################################
21
#   Define the source files
22
#
23
Src        ( '*'    , "file1.c" );
24
Src        ( '*'    , "file1.h" );
25
Src        ( '*'    , "file2.xxx" );
26
 
27
#
28
#   Build and install the library
29
Lib        ( '*'    , "MyPackage", @OBJS  );
30
InstallLib ( '*'    , "MyPackage" );
31
InstallProg( '*'    , "file1.c" );
32
 
33
#.............................................................................
34
# Packaging definitions
35
#
36
PackageHdr  ( '*', @CHDRS ,"--Strip" );
37
PackageHdr  ( '*', "file2.xxx" ,"--Platform" );
38
PackageLib  ( '*', "MyPackage" );
39
 
40
#..
41
#
42
Src         ( '*'   , 'descpkg' );
43
PackageFile ( '*'   , 'descpkg' );
44
 
45
#.............................................................................
46
# Finally generate the makefile
47
#
48
MakefileGenerate();
49
 
50
#..  Successful termination
51
1;
52