shithub: mc

Download patch

ref: 6af02a3600c74a974bfdcec12ead515a611a0234
parent: 1076d5c95b263eabec0bd911960ebd21ddc19751
author: Ori Bernstein <[email protected]>
date: Thu Oct 18 17:09:57 EDT 2012

Build the test code for libstd as well.

--- a/libstd/Makefile
+++ b/libstd/Makefile
@@ -18,7 +18,7 @@
 
 include ../config.mk
 
-all: $(MYRLIB) $(MYRBIN)
+all: $(MYRLIB) $(MYRBIN) test
 
 sys.myr: sys-$(SYS).myr
 	cp sys-$(SYS).myr sys.myr
@@ -29,7 +29,10 @@
 start.s: start-$(SYS).s
 	cp start-$(SYS).s start.s
 
+test: libstd.a
+	myrbuild -b test test.myr -I.
 
+
 $(MYRLIB): $(MYRSRC) $(ASMSRC)
 	../myrbuild/myrbuild -C../6/6m -M../muse/muse -l $(MYRLIB) $^
 
@@ -38,9 +41,9 @@
 USE=$(MYRSRC:.myr=.use) $(MYRLIB)
 .PHONY: clean
 clean:
-	rm -f $(OBJ)
-	rm -f $(USE)
-	rm -f $(JUNKASM)
+	rm -f $(OBJ) test.o
+	rm -f $(USE) test.use
+	rm -f $(JUNKASM) test.s
 	rm -f lib$(MYRLIB).a