mirror of
https://github.com/dyne/FreeJ.git
synced 2026-02-13 16:15:43 +01:00
Add CxxTest files. Compile and run tests with "make check" from automake. A dumb test is provided, serious tests are coming.
33 lines
628 B
Perl
Executable File
33 lines
628 B
Perl
Executable File
#!/usr/bin/perl
|
|
#
|
|
# This isn't a "real" `Makefile.PL'
|
|
# It just copies the correct `Makefile.*' to `Makefile'
|
|
#
|
|
use strict;
|
|
use Getopt::Long;
|
|
use File::Copy;
|
|
|
|
sub usage() {
|
|
die "Usage: $0 [--bcc32]\n";
|
|
}
|
|
|
|
my $source;
|
|
my $target = 'Makefile';
|
|
my $windows = $ENV{'windir'};
|
|
|
|
GetOptions( 'bcc32' => sub { $source = 'Makefile.bcc32' } ) or usage();
|
|
if ( !defined( $source ) ) {
|
|
$source = $windows ? 'Makefile.msvc' : 'Makefile.unix';
|
|
}
|
|
|
|
unlink($target);
|
|
$windows ? copy($source, $target) : symlink($source, $target);
|
|
|
|
print "`Makefile' is now `$source'.\n";
|
|
|
|
#
|
|
# Local Variables:
|
|
# compile-command: "perl Makefile.PL"
|
|
# End:
|
|
#
|