BUILD: makefile: build flags.c before haproxy to speed up the build
authorWilly Tarreau <w@1wt.eu>
Wed, 20 Nov 2024 16:34:36 +0000 (17:34 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 20 Nov 2024 17:49:56 +0000 (18:49 +0100)
commitf16edcd34c704d1ce6a00c68954bd8318de21df0
tree34b0b1b6c649fb39c1dd76cb2a29c836ce80a9d1
parent667ac8acc63520cfc16d85740ef17554e09d3e26
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.
Makefile