#..
# Copyright (C) 1998-2000 ERG Transit Systems, All rights reserved
#
die "Usage: Makefile.pl rootdir Makelib.pl\n"
unless( $#ARGV+1 >= 2 );
require "$ARGV[1]";

# subdirectories to recurse

# target platforms
Platform( 'WIN32', '--OnlyProd' );

# build flags and paths
AddLibDir('*', '.');
# source types

# source files
Src( '*', 'attend.cc' );
Src( '*', 'Process.cc' );
Src( '*', 'Process.h' );
Src( 'WIN32', 'psapi.h' );
Src( 'WIN32', 'psapi.dll' );

# files to be generated

# additional rules

# headers to be installed

# headers to be installed outside the sandbox

# libraries to be made

# programs to be made

# libraries to be installed into the 'export' lib directory

# headers to be installed outside the sandbox

# libraries to be made

# programs to be made
Prog( 'WIN32', 'attend',
	'attend.o', 'Process.o',
	'-LAdvapi32',
	'-LPsapi' );

# libraries to be installed into the 'export' lib directory

# libraries to be installed outside the sandbox
PackageProg( '*', 'attend' );

#--- Finally generate the makefile
MakefileGenerate();
