More minor IPI work.
[dragonfly/vkernel-mp.git] / test / sysperf / Makefile
blob36c99c03d506069ede4c2e9d353461271b0edcf0
2 # $DragonFly: src/test/sysperf/Makefile,v 1.16 2006/09/10 03:26:41 dillon Exp $
5 TARGETS=/tmp/sc1 /tmp/sc2 /tmp/sc3 /tmp/sc4 /tmp/sc5 \
6 /tmp/loop1 /tmp/loop2 /tmp/loop3 /tmp/loop4 \
7 /tmp/call1 /tmp/call2 /tmp/call3 /tmp/cmp \
8 /tmp/mt2 /tmp/mt3 /tmp/mt4 \
9 /tmp/fork1 /tmp/pipe1 /tmp/pipe2 \
10 /tmp/sw1 /tmp/sw2 /tmp/sw3 \
11 /tmp/mbw1 \
12 /tmp/upc1 \
13 /tmp/exec1 /tmp/exec2 \
14 /tmp/mem1 /tmp/mem2
16 .if defined(NO_OPTIMIZE)
17 COPTFLAGS= -O
18 .else
19 COPTFLAGS= -O2
20 .endif
21 CFLAGS= ${COPTFLAGS} -g -I/usr/src/sys
23 all: $(TARGETS)
25 /tmp/sc1: syscall1.c blib.c
26 $(CC) $(CFLAGS) syscall1.c blib.c -o /tmp/sc1
28 /tmp/sc2: syscall2.c getuid_msg.c blib.c
29 $(CC) $(CFLAGS) syscall2.c getuid_msg.c blib.c -o /tmp/sc2
31 /tmp/sc3: syscall3.c getuid_msg.c blib.c
32 $(CC) $(CFLAGS) syscall3.c getuid_msg.c blib.c -o /tmp/sc3
34 /tmp/sc4: syscall4.c blib.c
35 $(CC) $(CFLAGS) syscall4.c blib.c -o /tmp/sc4
37 /tmp/sc5: syscall5.c blib.c
38 $(CC) $(CFLAGS) syscall5.c blib.c -o /tmp/sc5
40 /tmp/fork1: fork1.c blib.c
41 $(CC) $(CFLAGS) fork1.c blib.c -o /tmp/fork1
43 /tmp/pipe1: pipe1.c blib.c
44 $(CC) $(CFLAGS) pipe1.c blib.c -o /tmp/pipe1
46 /tmp/pipe2: pipe2.c blib.c
47 $(CC) $(CFLAGS) pipe2.c blib.c -o /tmp/pipe2
49 /tmp/loop1: loop1.c blib.c
50 $(CC) $(CFLAGS) loop1.c blib.c -o /tmp/loop1
52 /tmp/loop2: loop2.c blib.c
53 $(CC) $(CFLAGS) loop2.c blib.c -o /tmp/loop2
55 /tmp/loop3: loop3.c blib.c
56 $(CC) $(CFLAGS) loop3.c blib.c -o /tmp/loop3
58 /tmp/loop4: loop4.c blib.c
59 $(CC) $(CFLAGS) loop4.c blib.c -o /tmp/loop4
61 /tmp/call1: call1.c blib.c
62 $(CC) $(CFLAGS) call1.c blib.c -o /tmp/call1
64 /tmp/call2: call2.c blib.c
65 $(CC) $(CFLAGS) call2.c blib.c -o /tmp/call2
67 /tmp/call3: call3.c blib.c
68 $(CC) $(CFLAGS) call3.c blib.c -o /tmp/call3
70 /tmp/cmp: cmp.c blib.c
71 $(CC) $(CFLAGS) cmp.c blib.c -o /tmp/cmp
73 /tmp/mbw1: mbwtest.c
74 $(CC) -O mbwtest.c -o /tmp/mbw1
76 /tmp/mt1: mutex1.c blib.c mtx.s
77 $(CC) $(CFLAGS) mutex1.c blib.c mtx.s -o /tmp/mt1
79 /tmp/mt2: mutex2.c blib.c mtx.s
80 $(CC) $(CFLAGS) mutex2.c blib.c mtx.s -o /tmp/mt2
82 /tmp/mt3: mutex3.c blib.c mtx.s
83 $(CC) $(CFLAGS) mutex3.c blib.c mtx.s -o /tmp/mt3
85 /tmp/mt4: mutex4.c blib.c mtx.s
86 $(CC) $(CFLAGS) mutex4.c blib.c mtx.s -o /tmp/mt4
88 /tmp/sw1: quicksw1.c blib.c sw.S
89 $(CC) $(CFLAGS) -DUSE_ALL quicksw1.c blib.c sw.S -o /tmp/sw1
91 /tmp/sw2: quicksw1.c blib.c sw.S
92 $(CC) $(CFLAGS) -DUSE_CALLU1 quicksw1.c blib.c sw.S -o /tmp/sw2
94 /tmp/sw3: quicksw1.c blib.c sw.S
95 $(CC) $(CFLAGS) -DUSE_CALLU2 quicksw1.c blib.c sw.S -o /tmp/sw3
97 /tmp/upc1: upcall.S upcall1.c blib.c
98 $(CC) $(CFLAGS) -DUSE_CALLU2 upcall.S upcall1.c blib.c -o /tmp/upc1
100 /tmp/exec1: exec1.c blib.c
101 $(CC) $(CFLAGS) -static -DISSTATIC exec1.c blib.c -o /tmp/exec1
103 /tmp/exec2: exec1.c blib.c
104 $(CC) $(CFLAGS) exec1.c blib.c -o /tmp/exec2
106 /tmp/mem1: memcpy.c memcpy.S blib.c
107 $(CC) $(CFLAGS) memcpy.c memcpy.S blib.c -o /tmp/mem1
109 /tmp/mem2: memzero.c memzero.S blib.c
110 $(CC) $(CFLAGS) memzero.c memzero.S blib.c -o /tmp/mem2
112 /tmp/read1: read1.c blib.c
113 $(CC) $(CFLAGS) read1.c blib.c -o /tmp/read1
115 clean:
116 rm -f $(TARGETS)