From: Willy Tarreau Date: Wed, 20 Nov 2024 16:34:36 +0000 (+0100) Subject: BUILD: makefile: build flags.c before haproxy to speed up the build X-Git-Tag: v3.1-dev14~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f16edcd34c704d1ce6a00c68954bd8318de21df0;p=thirdparty%2Fhaproxy.git BUILD: makefile: build flags.c before haproxy to speed up the build The end of the build is often super slow. In practice it's flags.o that now takes ages (3.4 seconds) and blocks everything on a single core at the end. Let's declare it before the haproxy target so that it starts earlier. On a quad-2.2 GHz CPU, the build time goes down from 44 to 42s and the end feels less painful. --- diff --git a/Makefile b/Makefile index 6a9f84cf3f..09260ca626 100644 --- a/Makefile +++ b/Makefile @@ -936,7 +936,7 @@ all: @echo @exit 1 else -all: haproxy dev/flags/flags $(EXTRA) +all: dev/flags/flags haproxy $(EXTRA) endif # obsolete targets endif # TARGET