blob: 44aae37506b3f8c798f7ec9ed9a13b6d4ce508c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
APE=/sys/src/ape
<$APE/config
LIB=/$objtype/lib/ape/libap.a
MIPSSFILES=\
getfcr.s\
main9.s\
main9p.s\
memmove.s\
memset.s\
setjmp.s\
strcmp.s\
strcpy.s\
tas.s\
MIPSCFILES=\
cycles.c\
lock.c\
notetramp.c\
SFILES=\
memchr.s\
memcmp.s\
strchr.s\
vlop.s\
CFILES=\
vlrt.c\
OFILES=\
${MIPSSFILES:%.s=%.$O}\
${SFILES:%.s=%.$O}\
${MIPSCFILES:%.c=%.$O}\
${CFILES:%.c=%.$O}\
MIPSS=`{echo $MIPSSFILES | sed 's/\.s//g; s/ /|/g'}
^($MIPSS)\.$O:R: '../mips/\1.s'
$AS $AFLAGS ../mips/$stem1.s
MIPSC=`{echo $MIPSCFILES | sed 's/\.c//g; s/ /|/g'}
^($MIPSC)\.$O:R: '../mips/\1.c'
$CC $CFLAGS ../mips/$stem1.c
</sys/src/cmd/mksyslib
CFLAGS=-c -D_POSIX_SOURCE -D_PLAN9_SOURCE
|