1 # Makefile for the tests.
5 CFLAGS
= -O
-D_MINIX
-D_POSIX_SOURCE
6 CFLAGS-GCC
= $(CFLAGS
) -Wall
8 OBJ
= test1 test2 test3 test4 test5 test6 test7 test8 test9 \
9 test10 test12 test13 test14 test15 test16 test17 test18 test19 \
10 test21 test22 test23 test25 test26 test27 test28 test29 \
11 test30 test31 test32 test34 test35 test36 test37 test38 \
12 test39 t10a t11a t11b test40 t40a t40b t40c t40d t40e t40f test41 \
13 test42 test44 test45 test47 test48
16 ROOTOBJ
= test11 test33 test43 test46
19 all: $(OBJ
) $(BIGOBJ
) $(GCCOBJ
) $(ROOTOBJ
) Benchmarks
23 cd benchmarks
&& for d in
*bench
*; do cd
$$d && $(MAKE
) || exit
1; done
26 $(CC
) $(CFLAGS
) -o
$@
$@.c
29 $(CC
) $(CFLAGS
) -o
$@
$@.c
32 [ ! -x
$(GCC
) ] ||
$(GCC
) $(CFLAGS-GCC
) -o
$@
$<
36 @
install -c
-o root
-m
4755 a.out
$@
40 cd select
&& make
clean
41 cd benchmarks
&& for d in
*bench
*; do cd
$$d && $(MAKE
) clean || exit
1; done
42 -rm -rf
*.o
*.s
*.bak
test?
test??
test??
-gcc t10a t11a t11b \
43 t40a t40b t40c t40d t40e t40f t43 DIR
*
98 test45
: test45.c test45.h
99 test45-gcc
: test45.c test45.h