xref: /dragonfly/test/sysperf/Makefile (revision 9d626b29)
1TARGETS=/tmp/sc1 /tmp/sc2 /tmp/sc3 /tmp/sc4 /tmp/sc5 /tmp/sc6 /tmp/sc7 \
2	/tmp/loop1 /tmp/loop2 /tmp/loop3 /tmp/loop4 \
3	/tmp/call1 /tmp/call2 /tmp/call3 /tmp/cmp \
4	/tmp/mt2 /tmp/mt3 /tmp/mt4 \
5	/tmp/fork1 /tmp/pipe1 /tmp/pipe2 /tmp/pipe3 \
6	/tmp/umtx1 \
7	/tmp/sp1 \
8	/tmp/sw1 /tmp/sw2 /tmp/sw3 \
9	/tmp/mbw1 \
10	/tmp/exec1 /tmp/exec2 \
11	/tmp/mem1 /tmp/mem2 \
12	/tmp/cld1 \
13	/tmp/rr1 \
14	/tmp/loop900k /tmp/pipe900k /tmp/sleep900k
15
16.if defined(NO_OPTIMIZE)
17COPTFLAGS= -O
18.else
19COPTFLAGS= -O2
20.endif
21CFLAGS= ${COPTFLAGS} -g -I/usr/src/sys
22
23all:	$(TARGETS)
24
25/tmp/cld1: cld1.c blib.c
26	$(CC) $(CFLAGS) cld1.c blib.c -o /tmp/cld1
27
28/tmp/sc1: syscall1.c blib.c
29	$(CC) $(CFLAGS) syscall1.c blib.c -o /tmp/sc1
30
31/tmp/sc2: syscall2.c blib.c
32	$(CC) $(CFLAGS) syscall2.c blib.c -o /tmp/sc2
33
34/tmp/sc3: syscall3.c blib.c
35	$(CC) $(CFLAGS) syscall3.c blib.c -o /tmp/sc3
36
37/tmp/sc4: syscall4.c blib.c
38	$(CC) $(CFLAGS) syscall4.c blib.c -o /tmp/sc4
39
40/tmp/sc5: syscall5.c blib.c
41	$(CC) $(CFLAGS) syscall5.c blib.c -o /tmp/sc5
42
43/tmp/sc6: syscall6.c blib.c
44	$(CC) $(CFLAGS) syscall6.c blib.c -o /tmp/sc6
45
46/tmp/sc7: syscall7.c blib.c
47	$(CC) $(CFLAGS) syscall7.c blib.c -o /tmp/sc7
48
49/tmp/fork1: fork1.c blib.c
50	$(CC) $(CFLAGS) fork1.c blib.c -o /tmp/fork1
51
52/tmp/pipe1: pipe1.c blib.c
53	$(CC) $(CFLAGS) pipe1.c blib.c -o /tmp/pipe1
54
55/tmp/pipe2: pipe2.c blib.c
56	$(CC) $(CFLAGS) pipe2.c blib.c -o /tmp/pipe2
57
58/tmp/pipe3: pipe3.c blib.c
59	$(CC) $(CFLAGS) pipe3.c blib.c -pthread -o /tmp/pipe3
60
61/tmp/umtx1: umtx1.c blib.c
62	$(CC) $(CFLAGS) umtx1.c blib.c -pthread -o /tmp/umtx1
63
64/tmp/sp1: socketpair.c blib.c
65	$(CC) $(CFLAGS) socketpair.c blib.c -o /tmp/sp1
66
67/tmp/loop1: loop1.c blib.c
68	$(CC) $(CFLAGS) loop1.c blib.c -o /tmp/loop1
69
70/tmp/loop2: loop2.c blib.c
71	$(CC) $(CFLAGS) loop2.c blib.c -o /tmp/loop2
72
73/tmp/loop3: loop3.c blib.c
74	$(CC) $(CFLAGS) loop3.c blib.c -o /tmp/loop3
75
76/tmp/loop4: loop4.c blib.c
77	$(CC) $(CFLAGS) loop4.c blib.c -o /tmp/loop4
78
79/tmp/call1: call1.c blib.c
80	$(CC) $(CFLAGS) call1.c blib.c -o /tmp/call1
81
82/tmp/call2: call2.c blib.c
83	$(CC) $(CFLAGS) call2.c blib.c -o /tmp/call2
84
85/tmp/call3: call3.c blib.c
86	$(CC) $(CFLAGS) call3.c blib.c -o /tmp/call3
87
88/tmp/cmp: cmp.c blib.c
89	    $(CC) $(CFLAGS) cmp.c blib.c -o /tmp/cmp
90
91/tmp/mbw1: mbwtest.c
92	$(CC) -O mbwtest.c -o /tmp/mbw1
93
94/tmp/mt1: mutex1.c blib.c mtx.s
95	$(CC) $(CFLAGS) mutex1.c blib.c mtx.s -o /tmp/mt1
96
97/tmp/mt2: mutex2.c blib.c mtx.s
98	$(CC) $(CFLAGS) mutex2.c blib.c mtx.s -o /tmp/mt2
99
100/tmp/mt3: mutex3.c blib.c mtx.s
101	$(CC) $(CFLAGS) mutex3.c blib.c mtx.s -o /tmp/mt3
102
103/tmp/mt4: mutex4.c blib.c mtx.s
104	$(CC) $(CFLAGS) mutex4.c blib.c mtx.s -o /tmp/mt4
105
106/tmp/sw1: quicksw1.c blib.c sw.S
107	$(CC) $(CFLAGS) -DUSE_ALL quicksw1.c blib.c sw.S -o /tmp/sw1
108
109/tmp/sw2: quicksw1.c blib.c sw.S
110	$(CC) $(CFLAGS) -DUSE_CALLU1 quicksw1.c blib.c sw.S -o /tmp/sw2
111
112/tmp/sw3: quicksw1.c blib.c sw.S
113	$(CC) $(CFLAGS) -DUSE_CALLU2 quicksw1.c blib.c sw.S -o /tmp/sw3
114
115/tmp/exec1: exec1.c blib.c
116	$(CC) $(CFLAGS) -static -DISSTATIC exec1.c blib.c -o /tmp/exec1
117
118/tmp/exec2: exec1.c blib.c
119	$(CC) $(CFLAGS) exec1.c blib.c -o /tmp/exec2
120
121/tmp/mem1: memcpy.c blib.c
122	$(CC) $(CFLAGS) memcpy.c blib.c -o /tmp/mem1
123
124/tmp/mem2: memzero.c blib.c
125	$(CC) $(CFLAGS) memzero.c blib.c -o /tmp/mem2
126
127/tmp/read1: read1.c blib.c
128	$(CC) $(CFLAGS) read1.c blib.c -o /tmp/read1
129
130/tmp/rr1: randread.c blib.c
131	$(CC) $(CFLAGS) randread.c blib.c -o /tmp/rr1
132
133/tmp/loop900k: loop900k.c
134	$(CC) $(CFLAGS) loop900k.c -o /tmp/loop900k -static
135
136/tmp/pipe900k: pipe900k.c
137	$(CC) $(CFLAGS) pipe900k.c -o /tmp/pipe900k -static
138
139/tmp/sleep900k: sleep900k.c
140	$(CC) $(CFLAGS) sleep900k.c -o /tmp/sleep900k -static
141
142clean:
143	rm -f $(TARGETS)
144