Merge branch 'vendor/GCC44'
[dragonfly.git] / test / sysperf / Makefile
CommitLineData
6b055cd4 1#
bb6aee91 2# $DragonFly: src/test/sysperf/Makefile,v 1.17 2008/05/09 15:49:42 dillon Exp $
6b055cd4
MD
3#
4
b372da35 5TARGETS=/tmp/sc1 /tmp/sc2 /tmp/sc3 /tmp/sc4 /tmp/sc5 \
b13267a5 6 /tmp/loop1 /tmp/loop2 /tmp/loop3 /tmp/loop4 \
a99bca8e 7 /tmp/call1 /tmp/call2 /tmp/call3 /tmp/cmp \
b13267a5 8 /tmp/mt2 /tmp/mt3 /tmp/mt4 \
54e0874d 9 /tmp/fork1 /tmp/pipe1 /tmp/pipe2 \
d93c720c 10 /tmp/sp1 \
3885a8e0 11 /tmp/sw1 /tmp/sw2 /tmp/sw3 \
3eb3763b 12 /tmp/mbw1 \
6157d9fc 13 /tmp/upc1 \
ab4bc20f 14 /tmp/exec1 /tmp/exec2 \
bb6aee91
MD
15 /tmp/mem1 /tmp/mem2 \
16 /tmp/cld1
6b055cd4 17
f6fe9cae
HP
18.if defined(NO_OPTIMIZE)
19COPTFLAGS= -O
20.else
21COPTFLAGS= -O2
22.endif
23CFLAGS= ${COPTFLAGS} -g -I/usr/src/sys
6b055cd4
MD
24
25all: $(TARGETS)
26
bb6aee91
MD
27/tmp/cld1: cld1.c blib.c
28 $(CC) $(CFLAGS) cld1.c blib.c -o /tmp/cld1
29
9ee18353 30/tmp/sc1: syscall1.c blib.c
6b055cd4
MD
31 $(CC) $(CFLAGS) syscall1.c blib.c -o /tmp/sc1
32
33/tmp/sc2: syscall2.c getuid_msg.c blib.c
34 $(CC) $(CFLAGS) syscall2.c getuid_msg.c blib.c -o /tmp/sc2
35
36/tmp/sc3: syscall3.c getuid_msg.c blib.c
37 $(CC) $(CFLAGS) syscall3.c getuid_msg.c blib.c -o /tmp/sc3
38
6dd7c9c5
MD
39/tmp/sc4: syscall4.c blib.c
40 $(CC) $(CFLAGS) syscall4.c blib.c -o /tmp/sc4
41
b372da35
MD
42/tmp/sc5: syscall5.c blib.c
43 $(CC) $(CFLAGS) syscall5.c blib.c -o /tmp/sc5
44
6b055cd4
MD
45/tmp/fork1: fork1.c blib.c
46 $(CC) $(CFLAGS) fork1.c blib.c -o /tmp/fork1
47
48/tmp/pipe1: pipe1.c blib.c
49 $(CC) $(CFLAGS) pipe1.c blib.c -o /tmp/pipe1
50
54e0874d
MD
51/tmp/pipe2: pipe2.c blib.c
52 $(CC) $(CFLAGS) pipe2.c blib.c -o /tmp/pipe2
53
d93c720c
MD
54/tmp/sp1: socketpair.c blib.c
55 $(CC) $(CFLAGS) socketpair.c blib.c -o /tmp/sp1
56
6b055cd4
MD
57/tmp/loop1: loop1.c blib.c
58 $(CC) $(CFLAGS) loop1.c blib.c -o /tmp/loop1
59
60/tmp/loop2: loop2.c blib.c
61 $(CC) $(CFLAGS) loop2.c blib.c -o /tmp/loop2
62
63/tmp/loop3: loop3.c blib.c
64 $(CC) $(CFLAGS) loop3.c blib.c -o /tmp/loop3
65
b13267a5
MD
66/tmp/loop4: loop4.c blib.c
67 $(CC) $(CFLAGS) loop4.c blib.c -o /tmp/loop4
68
e4e0c22c
MD
69/tmp/call1: call1.c blib.c
70 $(CC) $(CFLAGS) call1.c blib.c -o /tmp/call1
71
72/tmp/call2: call2.c blib.c
73 $(CC) $(CFLAGS) call2.c blib.c -o /tmp/call2
74
75/tmp/call3: call3.c blib.c
76 $(CC) $(CFLAGS) call3.c blib.c -o /tmp/call3
77
a99bca8e
HP
78/tmp/cmp: cmp.c blib.c
79 $(CC) $(CFLAGS) cmp.c blib.c -o /tmp/cmp
80
3885a8e0
MD
81/tmp/mbw1: mbwtest.c
82 $(CC) -O mbwtest.c -o /tmp/mbw1
83
8faadb75
MD
84/tmp/mt1: mutex1.c blib.c mtx.s
85 $(CC) $(CFLAGS) mutex1.c blib.c mtx.s -o /tmp/mt1
86
6b055cd4
MD
87/tmp/mt2: mutex2.c blib.c mtx.s
88 $(CC) $(CFLAGS) mutex2.c blib.c mtx.s -o /tmp/mt2
89
5359b6c9
MD
90/tmp/mt3: mutex3.c blib.c mtx.s
91 $(CC) $(CFLAGS) mutex3.c blib.c mtx.s -o /tmp/mt3
92
b13267a5
MD
93/tmp/mt4: mutex4.c blib.c mtx.s
94 $(CC) $(CFLAGS) mutex4.c blib.c mtx.s -o /tmp/mt4
95
6b055cd4
MD
96/tmp/sw1: quicksw1.c blib.c sw.S
97 $(CC) $(CFLAGS) -DUSE_ALL quicksw1.c blib.c sw.S -o /tmp/sw1
98
99/tmp/sw2: quicksw1.c blib.c sw.S
100 $(CC) $(CFLAGS) -DUSE_CALLU1 quicksw1.c blib.c sw.S -o /tmp/sw2
101
102/tmp/sw3: quicksw1.c blib.c sw.S
103 $(CC) $(CFLAGS) -DUSE_CALLU2 quicksw1.c blib.c sw.S -o /tmp/sw3
104
3eb3763b
MD
105/tmp/upc1: upcall.S upcall1.c blib.c
106 $(CC) $(CFLAGS) -DUSE_CALLU2 upcall.S upcall1.c blib.c -o /tmp/upc1
107
6157d9fc
MD
108/tmp/exec1: exec1.c blib.c
109 $(CC) $(CFLAGS) -static -DISSTATIC exec1.c blib.c -o /tmp/exec1
110
111/tmp/exec2: exec1.c blib.c
112 $(CC) $(CFLAGS) exec1.c blib.c -o /tmp/exec2
113
ab4bc20f
MD
114/tmp/mem1: memcpy.c memcpy.S blib.c
115 $(CC) $(CFLAGS) memcpy.c memcpy.S blib.c -o /tmp/mem1
116
117/tmp/mem2: memzero.c memzero.S blib.c
118 $(CC) $(CFLAGS) memzero.c memzero.S blib.c -o /tmp/mem2
119
830da309
MD
120/tmp/read1: read1.c blib.c
121 $(CC) $(CFLAGS) read1.c blib.c -o /tmp/read1
122
6b055cd4
MD
123clean:
124 rm -f $(TARGETS)