kernel: Replace the remaining __amd64__ with __x86_64__ for consistency.
[dragonfly.git] / test / sysperf / Makefile
bloba77c282c52e6e506dcc202812a6d722370c652fa
1 TARGETS=/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 \
6 /tmp/sp1 \
7 /tmp/sw1 /tmp/sw2 /tmp/sw3 \
8 /tmp/mbw1 \
9 /tmp/exec1 /tmp/exec2 \
10 /tmp/mem1 /tmp/mem2 \
11 /tmp/cld1 \
12 /tmp/rr1
14 .if defined(NO_OPTIMIZE)
15 COPTFLAGS= -O
16 .else
17 COPTFLAGS= -O2
18 .endif
19 CFLAGS= ${COPTFLAGS} -g -I/usr/src/sys
21 all: $(TARGETS)
23 /tmp/cld1: cld1.c blib.c
24 $(CC) $(CFLAGS) cld1.c blib.c -o /tmp/cld1
26 /tmp/sc1: syscall1.c blib.c
27 $(CC) $(CFLAGS) syscall1.c blib.c -o /tmp/sc1
29 /tmp/sc2: syscall2.c getuid_msg.c blib.c
30 $(CC) $(CFLAGS) syscall2.c getuid_msg.c blib.c -o /tmp/sc2
32 /tmp/sc3: syscall3.c getuid_msg.c blib.c
33 $(CC) $(CFLAGS) syscall3.c getuid_msg.c blib.c -o /tmp/sc3
35 /tmp/sc4: syscall4.c blib.c
36 $(CC) $(CFLAGS) syscall4.c blib.c -o /tmp/sc4
38 /tmp/sc5: syscall5.c blib.c
39 $(CC) $(CFLAGS) syscall5.c blib.c -o /tmp/sc5
41 /tmp/sc6: syscall6.c blib.c
42 $(CC) $(CFLAGS) syscall6.c blib.c -o /tmp/sc6
44 /tmp/sc7: syscall7.c blib.c
45 $(CC) $(CFLAGS) syscall7.c blib.c -o /tmp/sc7
47 /tmp/fork1: fork1.c blib.c
48 $(CC) $(CFLAGS) fork1.c blib.c -o /tmp/fork1
50 /tmp/pipe1: pipe1.c blib.c
51 $(CC) $(CFLAGS) pipe1.c blib.c -o /tmp/pipe1
53 /tmp/pipe2: pipe2.c blib.c
54 $(CC) $(CFLAGS) pipe2.c blib.c -o /tmp/pipe2
56 /tmp/sp1: socketpair.c blib.c
57 $(CC) $(CFLAGS) socketpair.c blib.c -o /tmp/sp1
59 /tmp/loop1: loop1.c blib.c
60 $(CC) $(CFLAGS) loop1.c blib.c -o /tmp/loop1
62 /tmp/loop2: loop2.c blib.c
63 $(CC) $(CFLAGS) loop2.c blib.c -o /tmp/loop2
65 /tmp/loop3: loop3.c blib.c
66 $(CC) $(CFLAGS) loop3.c blib.c -o /tmp/loop3
68 /tmp/loop4: loop4.c blib.c
69 $(CC) $(CFLAGS) loop4.c blib.c -o /tmp/loop4
71 /tmp/call1: call1.c blib.c
72 $(CC) $(CFLAGS) call1.c blib.c -o /tmp/call1
74 /tmp/call2: call2.c blib.c
75 $(CC) $(CFLAGS) call2.c blib.c -o /tmp/call2
77 /tmp/call3: call3.c blib.c
78 $(CC) $(CFLAGS) call3.c blib.c -o /tmp/call3
80 /tmp/cmp: cmp.c blib.c
81 $(CC) $(CFLAGS) cmp.c blib.c -o /tmp/cmp
83 /tmp/mbw1: mbwtest.c
84 $(CC) -O mbwtest.c -o /tmp/mbw1
86 /tmp/mt1: mutex1.c blib.c mtx.s
87 $(CC) $(CFLAGS) mutex1.c blib.c mtx.s -o /tmp/mt1
89 /tmp/mt2: mutex2.c blib.c mtx.s
90 $(CC) $(CFLAGS) mutex2.c blib.c mtx.s -o /tmp/mt2
92 /tmp/mt3: mutex3.c blib.c mtx.s
93 $(CC) $(CFLAGS) mutex3.c blib.c mtx.s -o /tmp/mt3
95 /tmp/mt4: mutex4.c blib.c mtx.s
96 $(CC) $(CFLAGS) mutex4.c blib.c mtx.s -o /tmp/mt4
98 /tmp/sw1: quicksw1.c blib.c sw.S
99 $(CC) $(CFLAGS) -DUSE_ALL quicksw1.c blib.c sw.S -o /tmp/sw1
101 /tmp/sw2: quicksw1.c blib.c sw.S
102 $(CC) $(CFLAGS) -DUSE_CALLU1 quicksw1.c blib.c sw.S -o /tmp/sw2
104 /tmp/sw3: quicksw1.c blib.c sw.S
105 $(CC) $(CFLAGS) -DUSE_CALLU2 quicksw1.c blib.c sw.S -o /tmp/sw3
107 /tmp/exec1: exec1.c blib.c
108 $(CC) $(CFLAGS) -static -DISSTATIC exec1.c blib.c -o /tmp/exec1
110 /tmp/exec2: exec1.c blib.c
111 $(CC) $(CFLAGS) exec1.c blib.c -o /tmp/exec2
113 /tmp/mem1: memcpy.c blib.c
114 $(CC) $(CFLAGS) memcpy.c blib.c -o /tmp/mem1
116 /tmp/mem2: memzero.c blib.c
117 $(CC) $(CFLAGS) memzero.c blib.c -o /tmp/mem2
119 /tmp/read1: read1.c blib.c
120 $(CC) $(CFLAGS) read1.c blib.c -o /tmp/read1
122 /tmp/rr1: randread.c blib.c
123 $(CC) $(CFLAGS) randread.c blib.c -o /tmp/rr1
125 clean:
126 rm -f $(TARGETS)