Subversion Repositories DevTools

Rev

Rev 2073 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2073 Rev 2075
Line -... Line 1...
-
 
1
########################################################################
1
# Copyright (C) 1998-2008 ERG Limited, All rights reserved
2
# Copyright (C) 1998-2012 Vix Technology, All rights reserved
2
#
3
#
3
# Module name   : Makefile.pl
4
# Module name   : makefile.pl
4
# Module type   : Makefile system
5
# Module type   : JATS Makefile
5
# Compiler(s)   : ANSI C
-
 
6
# Environment(s): n/a
6
# Environment(s): JATS Build System
7
#
7
#
8
# Description:    makefile.pl CopyFile
8
# Description   : Makefile for JatsFileUtil
9
#
9
#
10
#.........................................................................#
10
#......................................................................#
11
 
11
#
12
die "Usage: Makefile.pl roottest Makelib.pl\n"
12
# exec build system
-
 
13
#
13
    unless( $#ARGV+1 >= 2 );
14
die "Usage: Makefile.pl rootdir Makelib.pl\n" unless( $#ARGV+1 >= 2 );
14
require "$ARGV[1]";
15
require "$ARGV[1]";
15
 
16
 
16
# Build platform definitions ..
17
# Build platform definitions ..
17
#
18
#
18
Platform( '*' );
19
Platform( '*' );
19
AddFlags ('WIN32', '-DUNICODE', '-D_UNICODE');
20
AddFlags ('WIN32', '-DUNICODE', '-D_UNICODE');
20
 
21
 
21
############################################################################
22
############################################################################
22
#   Define the source files
23
#   Define the source files
23
#
24
#
24
Src ('*', "CopyFile.c");                        # For Windows
25
Src ('*', "JatsFileUtilWin.c");                     # For Windows
25
Src ('*', "CopyFileUnx.c");                     # For Unix
26
Src ('*', "JatsFileUtilUnx.c");                     # For Unix
26
 
27
 
27
Prog('WIN32' , "CopyFile", "CopyFile" );
28
Prog('WIN32' , "JatsFileUtil", "JatsFileUtilWin" );
28
Prog('!WIN32' ,"CopyFile", "CopyFileUnx" );
29
Prog('!WIN32' ,"JatsFileUtil", "JatsFileUtilUnx" );
29
 
30
 
30
#.............................................................................
31
#.............................................................................
31
# Packaging definitions
32
# Packaging definitions
32
#
33
#
33
PackageProg ( '*'   , "CopyFile" );
34
PackageProg ( '*'   , "JatsFileUtil" );
34
 
35
 
35
#.............................................................................
36
#.............................................................................
36
# Finally generate the makefile
37
# Finally generate the makefile
37
#
38
#
38
MakefileGenerate();
39
MakefileGenerate();