shithub: mc

Download patch

ref: f38af3a8177b033afb354b89b06914d03468a27a
parent: 17ddc7e58741270991fec402b36e749027c8f796
author: Ori Bernstein <[email protected]>
date: Thu Dec 25 18:54:45 EST 2014

Make the mkfiles deal with the objfile suffix change.

--- a/libstd/mkfile
+++ b/libstd/mkfile
@@ -1,4 +1,4 @@
-</$objtype/mkfile
+.</$objtype/mkfile
 
 SYSLIB=sys
 SYSSRC= \
@@ -95,7 +95,7 @@
 %.s: %+x64.s
 	cp $stem+x64.s $stem.s
 
-OBJ=${STDSRC:%.myr=%.o} ${SYSSRC:%.myr=%.o} ${STDASMSRC:%.s=%.o} ${SYSASMSRC:%.s=%.o}
+OBJ=${STDSRC:%.myr=%.$O} ${SYSSRC:%.myr=%.$O} ${STDASMSRC:%.s=%.$O} ${SYSASMSRC:%.s=%.$O}
 USE=${STDSRC:%.myr=%.use} ${SYSSRC:%.myr=%.use} ${STDLIB}
 LIBS=lib$STDLIB.a lib$SYSLIB.a
 .PHONY: clean
@@ -102,6 +102,6 @@
 clean:V:
 	rm -f $OBJ
 	rm -f $USE
-	rm -f $LIBS
+	rm -f $LIBS $STDLIB $SYSLIB
 
 nuke:V: clean