VirtualBox

source: kBuild/vendor/gnumake/current/tests/scripts/features/vpath3@ 3208

最後變更 在這個檔案從3208是 3138,由 bird 提交於 7 年 前

Imported make 4.2.1 (2e55f5e4abdc0e38c1d64be703b446695e70b3b6) from https://git.savannah.gnu.org/git/make.git.

檔案大小: 960 位元組
 
1# -*-perl-*-
2
3$description = "Test the interaction of the -lfoo feature and vpath";
4$details = "";
5
6my @dirs_to_make = qw(a1 b1 a2 b2 b3);
7for my $d (@dirs_to_make) {
8 mkdir($d, 0777);
9}
10
11my @files_to_touch = ("a1${pathsep}lib1.a",
12 "a1${pathsep}libc.a",
13 "b1${pathsep}lib1.so",
14 "a2${pathsep}lib2.a",
15 "b2${pathsep}lib2.so",
16 "lib3.a",
17 "b3${pathsep}lib3.so");
18&touch(@files_to_touch);
19
20my $answer = "a1${pathsep}lib1.a a1${pathsep}libc.a " .
21 "a2${pathsep}lib2.a lib3.a\n";
22if ($port_type eq 'VMS-DCL') {
23 $answer =~ s/ /,/g;
24}
25
26run_make_test('
27vpath %.h b3
28vpath %.a a1
29vpath %.so b1
30vpath % a2 b2
31vpath % b3
32all: -l1 -lc -l2 -l3; @echo $^
33',
34 '', $answer);
35
36unlink(@files_to_touch);
37for my $d (@dirs_to_make) {
38 rmdir($d);
39}
40
411;
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette