1 # Makefile for the tests.
5 CFLAGS
= -O
-D_MINIX
-D_POSIX_SOURCE
6 CFLAGS-GCC
= $(CFLAGS
) -Wall
7 CFLAGS-GCCFPU
= $(CFLAGS-GCC
) -W
-mhard-float
9 OBJ
= test1 test2 test3 test4 test5 test6 test7 test8 test9 \
10 test10 test12 test13 test14 test15 test16 test17 test18 test19 \
11 test21 test22 test23 test25 test26 test27 test28 test29 \
12 test30 test31 test32 test34 test35 test36 test37 test38 \
13 test39 t10a t11a t11b test40 t40a t40b t40c t40d t40e t40f test41 \
14 test42 test44 test45 test47 test48 test49 test50 test51
17 ROOTOBJ
= test11 test33 test43 test46
18 GCCOBJ
= test45-gcc test49-gcc
21 all: $(OBJ
) $(BIGOBJ
) $(GCCOBJ
) $(GCCFPUOBJ
) $(ROOTOBJ
)
25 $(CC
) $(CFLAGS
) -o
$@
$@.c
28 $(CC
) $(CFLAGS
) -o
$@
$@.c
31 [ ! -x
$(GCC
) ] ||
$(GCC
) $(CFLAGS-GCC
) -o
$@
${@
:S
/-gcc
//}.c
34 [ ! -x
$(GCC
) ] ||
$(GCC
) $(CFLAGS-GCCFPU
) -o
$@
${@
:S
/-gcc
//}.c
38 @
install -c
-o root
-m
4755 a.out
$@
42 cd select
&& make
clean
43 -rm -rf
*.o
*.s
*.bak
test?
test??
test??
-gcc t10a t11a t11b \
44 t40a t40b t40c t40d t40e t40f t43 DIR
*
99 test45
: test45.c test45.h
100 test45-gcc
: test45.c test45.h