########################################################################
# Copyright (C) 1998-2012 Vix Technology, All rights reserved
#
# Module name   : makefile.pl
# Module type   : JATS Makefile
# Environment(s): JATS Build System
#
# Description   : Makefile for JatsFileUtil
#
#......................................................................#
#
# exec build system
#
die "Usage: Makefile.pl rootdir Makelib.pl\n" unless( $#ARGV+1 >= 2 );
require "$ARGV[1]";

# Build platform definitions ..
#
Platform( '*' );
AddFlags ('WINDOWS', '-DUNICODE', '-D_UNICODE');

############################################################################
#   Define the source files
#
Src ('WINDOWS',   "JatsFileUtilWin.c");                     # For Windows
Src ('!WINDOWS',  "JatsFileUtilUnx.c");                     # For Unix

Prog('*',       "JatsFileUtil", @OBJS );

#.............................................................................
# Packaging definitions
#
PackageProg ( '*'   , "JatsFileUtil" );

#.............................................................................
# Finally generate the makefile
#
MakefileGenerate();

#..  Successful termination
1;

