Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
333 dpurdie 1
#..
2
# Module name:  Makelib.pl
3
# Module type:  Makefile system
4
#
5
# Description:  mkdepend
6
#
7
#...........................................................................
8
 
9
# exec build system
10
#
11
die "Usage: Makefile.pl rootdir Makelib.pl\n"
12
    unless( $#ARGV+1 >= 2 );
13
require "$ARGV[1]";
14
 
15
# build platform definitions ..
16
#..
17
Platform( '*' );
18
 
19
#.............................................................................
20
# Platforms definitions
21
#
22
AddCFlags      ( 'WIN32', '-D_CONSOLE', '-D_MBCS');
23
CompileOptions ( 'WIN32', 'subsystem:console' );
24
CompileOptions ( 'WIN32', 'noaddlibs');
25
CompileOptions ( 'WIN32', 'multithread_none' );
26
AddDir         ( 'WIN32', '../../LIBWIN32');
27
 
28
# Any source/headers etc
29
#..
30
Src( '*',       'main.c' );
31
Src( '*',       'parse.c' ); 
32
Src( '*',       'include.c' ); 
33
Src( '*',       'ifparser.c' );  
34
Src( '*',       'cppsetup.c' );  
35
Src( '*',       'pr.c' );
36
 
37
Src( 'WIN32',   'argv.c' );
38
 
39
# Applications to be built
40
#..
41
Prog( '*',      'mkdepend', @OBJS );
42
Prog( 'WIN32',  'mkdepend', '-LLIBC' );
43
 
44
#.............................................................................
45
# Finally generate the makefile
46
#..
47
MakefileGenerate();
48