mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:38:11 +00:00
Build: support library and generator dependencies
Instead of directly manipulating LDFLAGS, set LIB_DEPS in each subdirectory Makefile listing the libraries needed for building/linking such as "LIB_DEPS = Core GUI Draw IPC Core". This adds each library as an -L and -l argument in LDFLAGS, but also adds the library.a file as a link dependency on the current $(PROGRAM). This causes the given library to be (re)built before linking the current $(PROGRAM), but will also re-link any binaries depending on that library when it is modified, when running make from the root directory. Also turn generator tools like IPCCompiler into dependencies on the files they generate, so they are built on-demand when a particular directory needs them. This all allows the root Makefile to just list directories and not care about the order, as all of the dependency tracking will figure it out.
This commit is contained in:
parent
2aeae2aea9
commit
c127d16326
47 changed files with 130 additions and 113 deletions
3
Libraries/LibHTML/CodeGenerators/Makefile
Normal file
3
Libraries/LibHTML/CodeGenerators/Makefile
Normal file
|
@ -0,0 +1,3 @@
|
|||
SUBDIRS := $(wildcard */.)
|
||||
|
||||
include ../../../Makefile.subdir
|
Loading…
Add table
Add a link
Reference in a new issue