1179efaf0SMatthew DillonTARGETS=/tmp/sc1 /tmp/sc2 /tmp/sc3 /tmp/sc4 /tmp/sc5 /tmp/sc6 /tmp/sc7 \ 2b13267a5SMatthew Dillon /tmp/loop1 /tmp/loop2 /tmp/loop3 /tmp/loop4 \ 3a99bca8eSHiten Pandya /tmp/call1 /tmp/call2 /tmp/call3 /tmp/cmp \ 4b13267a5SMatthew Dillon /tmp/mt2 /tmp/mt3 /tmp/mt4 \ 5a33ac161SMatthew Dillon /tmp/fork1 /tmp/pipe1 /tmp/pipe2 /tmp/pipe3 \ 6a33ac161SMatthew Dillon /tmp/umtx1 \ 7d93c720cSMatthew Dillon /tmp/sp1 \ 83885a8e0SMatthew Dillon /tmp/sw1 /tmp/sw2 /tmp/sw3 \ 93eb3763bSMatthew Dillon /tmp/mbw1 \ 10ab4bc20fSMatthew Dillon /tmp/exec1 /tmp/exec2 \ 11bb6aee91SMatthew Dillon /tmp/mem1 /tmp/mem2 \ 1275a0ef5dSMatthew Dillon /tmp/cld1 \ 13b1877161SMatthew Dillon /tmp/rr1 \ 14367612aaSMatthew Dillon /tmp/lockmgr1 /tmp/lockmgr2 /tmp/lockmgr3 \ 15b1877161SMatthew Dillon /tmp/loop900k /tmp/pipe900k /tmp/sleep900k 166b055cd4SMatthew Dillon 17f6fe9caeSHiten Pandya.if defined(NO_OPTIMIZE) 18f6fe9caeSHiten PandyaCOPTFLAGS= -O 19f6fe9caeSHiten Pandya.else 20f6fe9caeSHiten PandyaCOPTFLAGS= -O2 21f6fe9caeSHiten Pandya.endif 22f6fe9caeSHiten PandyaCFLAGS= ${COPTFLAGS} -g -I/usr/src/sys 236b055cd4SMatthew Dillon 24*c6ecc293SAaron LIall: ${TARGETS} 256b055cd4SMatthew Dillon 26bb6aee91SMatthew Dillon/tmp/cld1: cld1.c blib.c 27*c6ecc293SAaron LI ${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} 28bb6aee91SMatthew Dillon 299ee18353SEirik Nygaard/tmp/sc1: syscall1.c blib.c 30*c6ecc293SAaron LI ${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} 316b055cd4SMatthew Dillon 32adc1b605SMatthew Dillon/tmp/sc2: syscall2.c blib.c 33*c6ecc293SAaron LI ${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} 346b055cd4SMatthew Dillon 35adc1b605SMatthew Dillon/tmp/sc3: syscall3.c blib.c 36*c6ecc293SAaron LI ${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} 376b055cd4SMatthew Dillon 386dd7c9c5SMatthew Dillon/tmp/sc4: syscall4.c blib.c 39*c6ecc293SAaron LI ${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} 406dd7c9c5SMatthew Dillon 41b372da35SMatthew Dillon/tmp/sc5: syscall5.c blib.c 42*c6ecc293SAaron LI ${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} 43b372da35SMatthew Dillon 44179efaf0SMatthew Dillon/tmp/sc6: syscall6.c blib.c 45*c6ecc293SAaron LI ${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} 46179efaf0SMatthew Dillon 47179efaf0SMatthew Dillon/tmp/sc7: syscall7.c blib.c 48*c6ecc293SAaron LI ${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} 49179efaf0SMatthew Dillon 506b055cd4SMatthew Dillon/tmp/fork1: fork1.c blib.c 51*c6ecc293SAaron LI ${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} 526b055cd4SMatthew Dillon 536b055cd4SMatthew Dillon/tmp/pipe1: pipe1.c blib.c 54*c6ecc293SAaron LI ${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} 556b055cd4SMatthew Dillon 5654e0874dSMatthew Dillon/tmp/pipe2: pipe2.c blib.c 57*c6ecc293SAaron LI ${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} 5854e0874dSMatthew Dillon 59a33ac161SMatthew Dillon/tmp/pipe3: pipe3.c blib.c 60*c6ecc293SAaron LI ${CC} ${CFLAGS} ${.ALLSRC} -pthread -o ${.TARGET} 61a33ac161SMatthew Dillon 62a33ac161SMatthew Dillon/tmp/umtx1: umtx1.c blib.c 63*c6ecc293SAaron LI ${CC} ${CFLAGS} ${.ALLSRC} -pthread -o ${.TARGET} 64a33ac161SMatthew Dillon 65d93c720cSMatthew Dillon/tmp/sp1: socketpair.c blib.c 66*c6ecc293SAaron LI ${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} 67d93c720cSMatthew Dillon 686b055cd4SMatthew Dillon/tmp/loop1: loop1.c blib.c 69*c6ecc293SAaron LI ${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} 706b055cd4SMatthew Dillon 716b055cd4SMatthew Dillon/tmp/loop2: loop2.c blib.c 72*c6ecc293SAaron LI ${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} 736b055cd4SMatthew Dillon 746b055cd4SMatthew Dillon/tmp/loop3: loop3.c blib.c 75*c6ecc293SAaron LI ${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} 766b055cd4SMatthew Dillon 77b13267a5SMatthew Dillon/tmp/loop4: loop4.c blib.c 78*c6ecc293SAaron LI ${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} 79b13267a5SMatthew Dillon 80e4e0c22cSMatthew Dillon/tmp/call1: call1.c blib.c 81*c6ecc293SAaron LI ${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} 82e4e0c22cSMatthew Dillon 83e4e0c22cSMatthew Dillon/tmp/call2: call2.c blib.c 84*c6ecc293SAaron LI ${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} 85e4e0c22cSMatthew Dillon 86e4e0c22cSMatthew Dillon/tmp/call3: call3.c blib.c 87*c6ecc293SAaron LI ${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} 88e4e0c22cSMatthew Dillon 89a99bca8eSHiten Pandya/tmp/cmp: cmp.c blib.c 90*c6ecc293SAaron LI ${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} 91a99bca8eSHiten Pandya 923885a8e0SMatthew Dillon/tmp/mbw1: mbwtest.c 93*c6ecc293SAaron LI ${CC} -O ${.ALLSRC} -o ${.TARGET} 943885a8e0SMatthew Dillon 958faadb75SMatthew Dillon/tmp/mt1: mutex1.c blib.c mtx.s 96*c6ecc293SAaron LI ${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} 978faadb75SMatthew Dillon 986b055cd4SMatthew Dillon/tmp/mt2: mutex2.c blib.c mtx.s 99*c6ecc293SAaron LI ${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} 1006b055cd4SMatthew Dillon 1015359b6c9SMatthew Dillon/tmp/mt3: mutex3.c blib.c mtx.s 102*c6ecc293SAaron LI ${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} 1035359b6c9SMatthew Dillon 104b13267a5SMatthew Dillon/tmp/mt4: mutex4.c blib.c mtx.s 105*c6ecc293SAaron LI ${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} 106b13267a5SMatthew Dillon 1076b055cd4SMatthew Dillon/tmp/sw1: quicksw1.c blib.c sw.S 108*c6ecc293SAaron LI ${CC} ${CFLAGS} -DUSE_ALL ${.ALLSRC} -o ${.TARGET} 1096b055cd4SMatthew Dillon 1106b055cd4SMatthew Dillon/tmp/sw2: quicksw1.c blib.c sw.S 111*c6ecc293SAaron LI ${CC} ${CFLAGS} -DUSE_CALLU1 ${.ALLSRC} -o ${.TARGET} 1126b055cd4SMatthew Dillon 1136b055cd4SMatthew Dillon/tmp/sw3: quicksw1.c blib.c sw.S 114*c6ecc293SAaron LI ${CC} ${CFLAGS} -DUSE_CALLU2 ${.ALLSRC} -o ${.TARGET} 1156b055cd4SMatthew Dillon 1166157d9fcSMatthew Dillon/tmp/exec1: exec1.c blib.c 117*c6ecc293SAaron LI ${CC} ${CFLAGS} -static -DISSTATIC ${.ALLSRC} -o ${.TARGET} 1186157d9fcSMatthew Dillon 1196157d9fcSMatthew Dillon/tmp/exec2: exec1.c blib.c 120*c6ecc293SAaron LI ${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} 1216157d9fcSMatthew Dillon 1227141674dSMatthew Dillon/tmp/mem1: memcpy.c blib.c 123*c6ecc293SAaron LI ${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} 124ab4bc20fSMatthew Dillon 1257141674dSMatthew Dillon/tmp/mem2: memzero.c blib.c 126*c6ecc293SAaron LI ${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} 127ab4bc20fSMatthew Dillon 128830da309SMatthew Dillon/tmp/read1: read1.c blib.c 129*c6ecc293SAaron LI ${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} 130830da309SMatthew Dillon 13175a0ef5dSMatthew Dillon/tmp/rr1: randread.c blib.c 132*c6ecc293SAaron LI ${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} 13375a0ef5dSMatthew Dillon 134367612aaSMatthew Dillon/tmp/lockmgr1: lockmgr1.c blib.c 135*c6ecc293SAaron LI ${CC} ${.ALLSRC} -o ${.TARGET} 136367612aaSMatthew Dillon 137367612aaSMatthew Dillon/tmp/lockmgr2: lockmgr2.c blib.c 138*c6ecc293SAaron LI ${CC} ${.ALLSRC} -o ${.TARGET} 139367612aaSMatthew Dillon 140367612aaSMatthew Dillon/tmp/lockmgr3: lockmgr3.c blib.c 141*c6ecc293SAaron LI ${CC} ${.ALLSRC} -o ${.TARGET} 142367612aaSMatthew Dillon 143b1877161SMatthew Dillon/tmp/loop900k: loop900k.c 144*c6ecc293SAaron LI ${CC} ${CFLAGS} -static ${.ALLSRC} -o ${.TARGET} 145b1877161SMatthew Dillon 146b1877161SMatthew Dillon/tmp/pipe900k: pipe900k.c 147*c6ecc293SAaron LI ${CC} ${CFLAGS} -static ${.ALLSRC} -o ${.TARGET} 148b1877161SMatthew Dillon 149b1877161SMatthew Dillon/tmp/sleep900k: sleep900k.c 150*c6ecc293SAaron LI ${CC} ${CFLAGS} -static ${.ALLSRC} -o ${.TARGET} 151b1877161SMatthew Dillon 1526b055cd4SMatthew Dillonclean: 153*c6ecc293SAaron LI rm -f ${TARGETS} 154