1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-18 00:50:44 -08:00
emacs/mps/qa/test/script/commands/clib
Richard Tucker e682416e7a Remove dependence on filename globbing, which doesn't work on some psc
Copied from Perforce
 Change: 18549
 ServerID: perforce.ravenbrook.com
1997-08-08 14:28:31 +01:00

37 lines
620 B
Perl

#!/usr/local/bin/perl -w
#
# Compile all the .c files in $testlib_dir,
# putting the resulting .o files in $obj_dir.
#
&options(
"MPS_INCLUDE_DIR",
"INTERFACE_VERSION",
"PLATFORM"
);
require "dirs";
print "Compiling test libraries from $testlib_dir.\n";
require "compile";
open(MANIFEST, "$testlib_dir/manifest");
while ($tlfile = <MANIFEST>) {
chop($tlfile);
$tlfile = $testlib_dir."/".$tlfile;
$tlobj = $tlfile;
$tlobj =~ s/\.c/\.o/;
$tlobj =~ s/$testlib_dir/$obj_dir/;
print"$tlfile -> $tlobj";
if (&compile($tlfile, $tlobj)) {
print " ok\n";
} else {
print " failed\n";
}
}
close(MANIFEST);