shithub: mc

Download patch

ref: 87b9d6012af6af199b8304c67d2dbcf2365fd649
parent: d31daf7836754eeb2e0795140db2742a70092868
author: Ori Bernstein <[email protected]>
date: Wed Jan 22 05:14:09 EST 2014

Fix parallel make.

    The output file for 'test.myr' depended on 'libstd.a', but
    we only named the 'std' output file. This makes it depend on the
    right things.

--- a/libstd/Makefile
+++ b/libstd/Makefile
@@ -53,7 +53,7 @@
 
 include ../config.mk
 
-all: $(MYRLIB) $(MYRBIN) test
+all: lib$(MYRLIB).a $(MYRBIN) test
 
 sys.myr: sys-$(SYS).myr
 	cp sys-$(SYS).myr sys.myr
@@ -71,7 +71,7 @@
 	../myrbuild/myrbuild -C../6/6m -M../muse/muse -b test -I. test.myr
 
 
-$(MYRLIB): $(MYRSRC) $(ASMSRC) ../6/6m
+lib$(MYRLIB).a: $(MYRSRC) $(ASMSRC) ../6/6m
 	../myrbuild/myrbuild -C../6/6m -M../muse/muse -l $(MYRLIB) $(MYRSRC) $(ASMSRC)
 
 OBJ=$(MYRSRC:.myr=.o) $(ASMSRC:.s=.o)