mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-10-26 19:16:41 +00:00
add make-4.3.tar.gz
This commit is contained in:
parent
0a0997a872
commit
19f70a154e
458 changed files with 239669 additions and 0 deletions
41
third_party/make/tests/scripts/features/vpath3
vendored
Normal file
41
third_party/make/tests/scripts/features/vpath3
vendored
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
# -*-perl-*-
|
||||
|
||||
$description = "Test the interaction of the -lfoo feature and vpath";
|
||||
$details = "";
|
||||
|
||||
my @dirs_to_make = qw(a1 b1 a2 b2 b3);
|
||||
for my $d (@dirs_to_make) {
|
||||
mkdir($d, 0777);
|
||||
}
|
||||
|
||||
my @files_to_touch = ("a1${pathsep}lib1.a",
|
||||
"a1${pathsep}libc.a",
|
||||
"b1${pathsep}lib1.so",
|
||||
"a2${pathsep}lib2.a",
|
||||
"b2${pathsep}lib2.so",
|
||||
"lib3.a",
|
||||
"b3${pathsep}lib3.so");
|
||||
&touch(@files_to_touch);
|
||||
|
||||
my $answer = "a1${pathsep}lib1.a a1${pathsep}libc.a " .
|
||||
"a2${pathsep}lib2.a lib3.a\n";
|
||||
if ($port_type eq 'VMS-DCL') {
|
||||
$answer =~ s/ /,/g;
|
||||
}
|
||||
|
||||
run_make_test('
|
||||
vpath %.h b3
|
||||
vpath %.a a1
|
||||
vpath %.so b1
|
||||
vpath % a2 b2
|
||||
vpath % b3
|
||||
all: -l1 -lc -l2 -l3; @echo $^
|
||||
',
|
||||
'', $answer);
|
||||
|
||||
unlink(@files_to_touch);
|
||||
for my $d (@dirs_to_make) {
|
||||
rmdir($d);
|
||||
}
|
||||
|
||||
1;
|
||||
Loading…
Add table
Add a link
Reference in a new issue