firmware: add build rules for RegGen-generated headers

Change-Id: I86ff1a39aec1ee428abd6464483ae3732fdf9196
This commit is contained in:
Aidan MacDonald 2025-12-21 20:01:54 +00:00
parent a8d792c248
commit 44afcc8cbe
4 changed files with 35 additions and 0 deletions

View file

@ -41,6 +41,10 @@ $(TOOLSDIR)/convttf: $(TOOLSDIR)/convttf.c
$(SILENT)$(HOSTCC) $(TOOLSFLAGS) -lm -O2 -Wall -g $+ -o $@ \
`pkg-config --cflags --libs freetype2`
$(TOOLSDIR)/reggen: $(wildcard $(TOOLSDIR)/reggen_src/*.c)
$(call PRINTS,CC $(@F))
$(SILENT)$(HOSTCC) $(TOOLSFLAGS) -Wall -Wextra -O2 -g -o $@ $+
# implicit rule for simple tools
$(TOOLSDIR)/%: $(TOOLSDIR)/%.c
$(call PRINTS,CC $(subst $(ROOTDIR)/,,$@))