New 'benchmarks' dir in test/, with first benchmark - unixbench-5.1.2, ported
[minix.git] / test / Makefile
blob5b0bf2f7b84bd3bc8d2c97fcf42f52e2b269db32
1 # Makefile for the tests.
3 CC = exec cc
4 GCC = /usr/gnu/bin/gcc
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
15 BIGOBJ= test20 test24
16 ROOTOBJ= test11 test33 test43 test46
17 GCCOBJ= test45-gcc
19 all: $(OBJ) $(BIGOBJ) $(GCCOBJ) $(ROOTOBJ) Benchmarks
20 chmod 755 *.sh run
22 Benchmarks:
23 cd benchmarks && for d in *bench*; do cd $$d && $(MAKE) || exit 1; done
25 $(OBJ):
26 $(CC) $(CFLAGS) -o $@ $@.c
28 $(BIGOBJ):
29 $(CC) $(CFLAGS) -o $@ $@.c
31 $(GCCOBJ):
32 [ ! -x $(GCC) ] || $(GCC) $(CFLAGS-GCC) -o $@ $<
34 $(ROOTOBJ):
35 $(CC) $(CFLAGS) $@.c
36 @install -c -o root -m 4755 a.out $@
37 @rm a.out
39 clean:
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*
45 test1: test1.c
46 test2: test2.c
47 test3: test3.c
48 test4: test4.c
49 test5: test5.c
50 test6: test6.c
51 test7: test7.c
52 test8: test8.c
53 test9: test9.c
54 test10: test10.c
55 t10a: t10a.c
56 test11: test11.c
57 t11a: t11a.c
58 t11b: t11b.c
59 test12: test12.c
60 test13: test13.c
61 test14: test14.c
62 test15: test15.c
63 test16: test16.c
64 test17: test17.c
65 test18: test18.c
66 test19: test19.c
67 test20: test20.c
68 test21: test21.c
69 test22: test22.c
70 test23: test23.c
71 test24: test24.c
72 test25: test25.c
73 test26: test26.c
74 test27: test27.c
75 test28: test28.c
76 test29: test29.c
77 test30: test30.c
78 test31: test31.c
79 test32: test32.c
80 test33: test33.c
81 test34: test34.c
82 test35: test35.c
83 test36: test36.c
84 test37: test37.c
85 test38: test38.c
86 test39: test39.c
87 test40: test40.c
88 t40a: t40a.c
89 t40b: t40b.c
90 t40c: t40c.c
91 t40d: t40d.c
92 t40e: t40e.c
93 t40f: t40f.c
94 test41: test41.c
95 test42: test42.c
96 test43: test43.c
97 test44: test44.c
98 test45: test45.c test45.h
99 test45-gcc: test45.c test45.h
100 test46: test46.c
101 test47: test47.c
102 test48: test48.c