From: Maximilian <max.federle@googlemail.com>
Date: Wed, 12 Feb 2014 00:52:36 +0000 (+0100)
Subject: Make Makefile safe for parallel compilation.
X-Git-Tag: v1.2~33^2
X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=406473da4e5ec7cd9fa9377f44b6e0bedf9afbb0;p=sx%2Fsimavr.git

Make Makefile safe for parallel compilation.
---

diff --git a/simavr/Makefile b/simavr/Makefile
index 080651c..aebc070 100644
--- a/simavr/Makefile
+++ b/simavr/Makefile
@@ -30,7 +30,9 @@ CFLAGS	+= -Werror
 # it otherwise eat quite a bit of few cycles, even disabled
 #CFLAGS	+= -DCONFIG_SIMAVR_TRACE=1
 
-all:	obj config libsimavr ${target}
+all:
+	$(MAKE) obj config
+	$(MAKE) libsimavr ${target}
 
 include ../Makefile.common