Subversion Repositories DevTools

Rev

Rev 6177 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
6177 dpurdie 1
# COPYRIGHT - VIX IP PTY LTD ("VIX"). ALL RIGHTS RESERVED.
227 dpurdie 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
require "$ARGV[1]";
13
 
14
# Build platform definitions ..
15
#
16
Platform( '*' );
17
 
18
############################################################################
19
#   Define the source files
20
#
21
Src        ( '*'    , "file1.c" );
22
Src        ( '*'    , "file1.h" );
23
Src        ( '*'    , "file2.xxx" );
24
 
25
#
26
#   Build and install the library
27
Lib        ( '*'    , "MyPackage", @OBJS  );
28
InstallLib ( '*'    , "MyPackage" );
29
InstallProg( '*'    , "file1.c" );
30
 
31
#.............................................................................
32
# Packaging definitions
33
#
34
PackageHdr  ( '*', @CHDRS ,"--Strip" );
35
PackageHdr  ( '*', "file2.xxx" ,"--Platform" );
36
PackageLib  ( '*', "MyPackage" );
37
 
38
#..
39
#
40
Src         ( '*'   , 'descpkg' );
41
PackageFile ( '*'   , 'descpkg' );
42
 
43
#.............................................................................
44
# Finally generate the makefile
45
#
46
MakefileGenerate();
47
 
48
#..  Successful termination
49
1;
50