From: Michael Gernoth Date: Thu, 10 Jul 2025 19:58:36 +0000 (+0200) Subject: Makefiles: support parallel compilation with -j X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/micropolis/commitdiff_plain/41a83ac163707298d8c4cc4ae7101afac0c3839e?ds=sidebyside;hp=176c45720f3b9e5555fe1084d3e6ea59488c1785 Makefiles: support parallel compilation with -j Fix dependencies in Makefiles to allow parallel compilation. --- diff --git a/Makefile b/Makefile index d502fdd..fa56486 100644 --- a/Makefile +++ b/Makefile @@ -42,10 +42,10 @@ tcl: tk: cd src/tk && $(MAKE) MAKEFLAGS= -tclx: +tclx: tcl tk cd src/tclx && $(MAKE) MAKEFLAGS= -sim: +sim: tclx cd src/sim && $(MAKE) MAKEFLAGS= clean: diff --git a/src/tclx/makefile b/src/tclx/makefile index fae1059..cf90bb7 100644 --- a/src/tclx/makefile +++ b/src/tclx/makefile @@ -65,7 +65,7 @@ libtcl.a: $(TCL_UCB_DIR)/libtcl.a wish: TKX_MAKES runwish -TKX_MAKES: libtk.a +TKX_MAKES: libtk.a tcl cd tkucbsrc; $(MAKE) -$(MAKEFLAGS) all cd tksrc; $(MAKE) -$(MAKEFLAGS) all @@ -83,7 +83,7 @@ libtk.a: $(TCL_TK_DIR)/libtk.a # Also generate a script to point the TCLDEFAULT environment variable # at this file for testing Tcl before its installed. -tcldef: +tcldef: tcl @echo " - Generating temporary TCLDEFAULT file. -" @echo " - Use runtcl script to test Tcl before installing -" @echo " - Use runwish script to test Tk before installing -" @@ -91,7 +91,7 @@ tcldef: @echo "set TCLPATH `pwd`/tcllib" >>tcldef @echo "set TCLINIT `pwd`/tcllib/tclinit.tcl" >>tcldef -runtcl: +runtcl: tcldef @echo ':' >runtcl @echo '# script for testing Tcl before installation' >>runtcl @echo "TCLDEFAULT=`pwd`/tcldef" >>runtcl