Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
227 dpurdie 1
#..
2
# Copyright (C) 1999-2000 ERG Limited, All rights reserved
3
#
4
# Module name:  Makelib.pl
5
# Module type:  Makefile system
6
#
7
# Description:  MKDEPEND
8
#
9
# Version   Who      Date        Description
10
# 1.0       APY      24/08/99    Created
11
#
12
# $Source: /cvsroot/device/DEVL/UTILS/MKDEPEND/makefile.pl,v $
13
# $Revision: 1.1 $ $Date: 2002/08/02 06:49:30 $ $State: Exp $
14
# $Author: adamy $ $Locker:  $
15
#...........................................................................
16
 
17
# exec build system
18
#
19
die "Usage: Makefile.pl rootdir Makelib.pl\n"
20
    unless( $#ARGV+1 >= 2 );
21
require "$ARGV[1]";
22
 
23
# subdirectories to recurse (if any) and target platform(s),
24
#   the following section(s) is called for each target ..
25
#   eg SubDir('SUBDIR1', 'SUBDIR2');
26
#..
27
#(none)
28
 
29
# build platform definitions ..
30
#   eg Platform('P386', 'M68K');
31
#..
32
Platform('DOS32');
33
 
34
#.............................................................................
35
# Platforms definitions
36
#
37
 
38
# Build flags and paths:
39
#   eg  AddCFlags( '*', '-DDOSOMETIME' );
40
#       AddIncDir( '*', '../INC' );
41
#       AddSrcDir( '*', 'SUBDIR' );
42
#..
43
AddCFlags( '*', '-DMSDOS' );
44
 
45
# Any new source types
46
#   eg  AddSourceType( '.xxx', '.asm' );
47
#..
48
#(none)
49
 
50
# Any source/headers etc
51
#   eg  Src( '*', 'Makefile.pl' [, ...] )
52
#..
53
Src( '*',       'main.c' ); 
54
Src( '*',       'parse.c' ); 
55
Src( '*',       'include.c' ); 
56
Src( '*',       'ifparser.c' );  
57
Src( '*',       'cppsetup.c' );  
58
Src( '*',       'pr.c' ); 
59
 
60
# Files to be generated:
61
#   eg  Generate( 'P386', 'aa.cc', 'aa.h' );
62
#..
63
#(none)
64
 
65
# Addition rules:
66
#   eg  Rule( 'P386', "aa.h:\n" . "\tbuild aa.h" );
67
#..
68
#(none)
69
 
70
# Headers to be installed
71
#   eg  InstallHdr( '*', 'public.h' );
72
#..
73
#(none)
74
 
75
# Libraries to be made
76
#   eg  Lib( 'P386,M68K', 'lib', 'src1', 'src2', '-args' );
77
#       Lib( '*', 'lib', @OBJS );
78
#..
79
#(none)
80
 
81
# Libraries to be installed into the 'export' lib directory:
82
#   eg  InstallLib( 'P386', 'lib' );
83
#..
84
#(none)
85
 
86
# Applications to be built
87
#   eg  Prog( ... )
88
#..
89
Prog( '*',      'mkdepend', @OBJS, '--Stack=100k', '-llibdos' );
90
 
91
# Applications to be installed
92
#   eg  InstallProg( ... )
93
#..
94
#(none)
95
 
96
# Packaging installation
97
#..
98
#(none)
99
 
100
#.............................................................................
101
# Finally generate the makefile
102
#..
103
MakefileGenerate();
104