VirtualBox

source: kBuild/vendor/gnumake/current/tests/scripts/variables/INCLUDE_DIRS@ 1989

最後變更 在這個檔案從1989是 501,由 bird 提交於 19 年 前

Load make-3.81/ into vendor/gnumake/current.

檔案大小: 835 位元組
 
1# -*-perl-*-
2$description = "Test the .INCLUDE_DIRS special variable.";
3
4$details = "";
5
6use Cwd;
7
8$dir = cwd;
9$dir =~ s,.*/([^/]+)$,../$1,;
10
11# Test #1: The content of .INCLUDE_DIRS depends on the platform for which
12# make was built. What we know for sure is that it shouldn't be
13# empty.
14#
15run_make_test('
16ifeq ($(.INCLUDE_DIRS),)
17$(warning .INCLUDE_DIRS is empty)
18endif
19
20.PHONY: all
21all:;@:
22',
23'',
24'');
25
26
27# Test #2: Make sure -I paths end up in .INCLUDE_DIRS.
28#
29run_make_test('
30ifeq ($(dir),)
31$(warning dir is empty)
32endif
33
34ifeq ($(filter $(dir),$(.INCLUDE_DIRS)),)
35$(warning .INCLUDE_DIRS does not contain $(dir))
36endif
37
38.PHONY: all
39all:;@:
40',
41"-I$dir dir=$dir",
42'');
43
44
45# This tells the test driver that the perl test script executed properly.
461;
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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