From 1069d018c99fc394597f08f8f737a1e5ddb5179e Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sun, 10 Apr 2016 20:20:53 +0200 Subject: libmp: fix build for spim, reduce by the mips assembly files --- sys/src/libmp/port/mkfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/src/libmp/port/mkfile b/sys/src/libmp/port/mkfile index 547b259eb..9aaad2d80 100644 --- a/sys/src/libmp/port/mkfile +++ b/sys/src/libmp/port/mkfile @@ -45,7 +45,9 @@ FILES=\ ALLOFILES=${FILES:%=%.$O} # cull things in the per-machine directories from this list -OFILES= `{rc ./reduce $O $objtype $ALLOFILES} +OFILES= `{rfork e; \ + if(~ $objtype spim) objtype=mips; \ + rc ./reduce $O $objtype $ALLOFILES} HFILES=\ /$objtype/include/u.h\ -- cgit v1.2.3