fix library mkfiles for objtype=spim

This commit is contained in:
cinap_lenrek 2015-08-08 08:04:41 +02:00
parent 23215e14d0
commit ebe88f34cb
7 changed files with 88 additions and 7 deletions

View file

@ -1,11 +1,11 @@
syntax: regexp
^(386|68000|68020|alpha|amd64|arm|mips|power|power64|sparc|sparc64)/(bin|lib)(/|$)
^(acme|sys/src)/(.*/)?[125678vqki]\..*$
^(acme|sys/src)/.*\.[ao]?[125678vqki]?$
^(386|68000|68020|alpha|amd64|arm|mips|power|power64|sparc|sparc64|spim)/(bin|lib)(/|$)
^(acme|sys/src)/(.*/)?[0125678vqki]\..*$
^(acme|sys/src)/.*\.[ao]?[0125678vqki]?$
^(dev|fd|net.*|srv|shr|env|root|proc|boot|mnt|n|bin|usr|cfg|cron|mail|tmp)(/|$)
^386/(9(pc|boot).*|pbs|mbr|init)
^amd64/(9pc64|init)
^acme/bin/(386|68000|68020|alpha|amd64|arm|power|power64|sparc|sparc64)(/|$)
^acme/bin/(386|68000|68020|alpha|amd64|arm|mips|power|power64|sparc|sparc64|spim)(/|$)
^adm/(cache|keys|netkeys|secstore|users|whois|timezone/local)(/|$)
^lib/(ndb|audio|firmware)(/|$)
^lib/rfc/(drafts|index|rfc.*)(/|$)

41
sys/src/libc/spim/mkfile Normal file
View file

@ -0,0 +1,41 @@
objtype=spim
</$objtype/mkfile
LIB=/$objtype/lib/libc.a
SFILES=\
argv0.s\
atom.s\
getcallerpc.s\
getfcr.s\
main9.s\
main9p.s\
memccpy.s\
memchr.s\
memcmp.s\
memmove.s\
memset.s\
setjmp.s\
strchr.s\
strcmp.s\
strcpy.s\
tas.s\
vlop.s\
CFILES=\
cycles.c\
lock.c\
notejmp.c\
sqrt.c\
vlrt.c\
HFILES=/sys/include/libc.h
OFILES=${CFILES:%.c=%.$O} ${SFILES:%.s=%.$O}
%.$O: ../mips/%.c
$CC -I../mips $CFLAGS ../mips/$stem.c
%.$O: ../mips/%.s
$AS -I../mips $AFLAGS ../mips/$stem.s
</sys/src/cmd/mksyslib

19
sys/src/libmp/spim/mkfile Normal file
View file

@ -0,0 +1,19 @@
objtype=spim
</mips/mkfile
LIB=/$objtype/lib/libmp.a
SFILES=\
mpvecadd.s\
mpvecsub.s\
mpvecdigmuladd.s\
mpvecdigmulsub.s\
# mpdigdiv.s\
HFILES=/$objtype/include/u.h /sys/include/mp.h ../port/dat.h
OFILES=${SFILES:%.s=%.$O}
%.$O: ../mips/%.s
$AS -I../mips $AFLAGS ../mips/$stem.s
</sys/src/cmd/mksyslib

View file

@ -34,7 +34,7 @@ installall:V:
everything:V:
rm -f */*.[012456789kqv]
for(objtype in 386)@{
for(objtype in $CPUS)@{
echo $objtype
mk $MKFLAGS install
}

View file

@ -0,0 +1,18 @@
objtype=spim
</$objtype/mkfile
LIB=/$objtype/lib/libsec.a
FILES=\
md5block\
sha1block\
HFILES=/sys/include/libsec.h
SFILES=${FILES:%=%.s}
OFILES=${FILES:%=%.$O}
%.$O: ../mips/%.s
$AS -I../mips $AFLAGS ../mips/$stem.s
</sys/src/cmd/mksyslib

View file

@ -72,6 +72,9 @@ UPDATE=mkfile\
$CFILES\
$SFILES\
spim.$O: mips.c
$CC $CFLAGS -o $target mips.c
all:V: $LIB sched.acid channel.acid
</sys/src/cmd/mksyslib

View file

@ -2,8 +2,8 @@
# common mkfile parameters shared by all architectures
#
OS=5678qv
CPUS=arm alpha 386 power mips
OS=05678qv
CPUS=spim arm amd64 alpha 386 power mips
CFLAGS=-FTVw
LEX=lex
YACC=yacc