2 # SPDX-License-Identifier: GPL-2.0
5 make -C ex V
=1 clean
> ex.out
2>&1
6 make -C ex V
=1 >> ex.out
2>&1
8 if [ ! -x .
/ex
/ex
]; then
13 make -C ex V
=1 clean
> /dev
/null
2>&1
17 function test_ex_suffix
{
18 make -C ex V
=1 clean
> ex.out
2>&1
20 # use -rR to disable make's builtin rules
21 make -rR -C ex V
=1 ex.o
>> ex.out
2>&1
22 make -rR -C ex V
=1 ex.i
>> ex.out
2>&1
23 make -rR -C ex V
=1 ex.s
>> ex.out
2>&1
25 if [ -x .
/ex
/ex
]; then
30 if [ ! -f .
/ex
/ex.o
-o ! -f .
/ex
/ex.i
-o ! -f .
/ex
/ex.s
]; then
35 make -C ex V
=1 clean
> /dev
/null
2>&1
39 function test_ex_include
{
40 make -C ex V
=1 clean
> ex.out
2>&1
42 # build with krava.h include
44 make -C ex V
=1 CFLAGS
=-DINCLUDE >> ex.out
2>&1
46 if [ ! -x .
/ex
/ex
]; then
51 # build without the include
52 rm -f ex
/krava.h ex
/ex
53 make -C ex V
=1 >> ex.out
2>&1
55 if [ ! -x .
/ex
/ex
]; then
60 make -C ex V
=1 clean
> /dev
/null
2>&1