From bd525cc7ac872ac26c62d889ea504a82f2b77eec Mon Sep 17 00:00:00 2001 From: Simon Forman Date: Sat, 4 Feb 2023 18:59:59 -0800 Subject: [PATCH] Depend on joy.h. --- implementations/C/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/implementations/C/Makefile b/implementations/C/Makefile index 5525702..9a6af02 100644 --- a/implementations/C/Makefile +++ b/implementations/C/Makefile @@ -15,11 +15,15 @@ GPERF_OPTS = --readonly-tables --enum --includes --hash-function-name=keyword_ha joy: ${OBJS} $(STATIC_GCLIB) +joy.o: joy.h + + # Gperf doesn't add anything to '{""}' unused entries in the wordlist. # This causes "warning: missing field 'func' initializer [-Wmissing-field-initializers]" # which is promoted to an error and holds up the show. # But we can turn off that warning for the keyword code like so: keywords.o: CFLAGS+=-Wno-missing-field-initializers +keywords.o: joy.h keywords.c: KEYWORDS.txt gperf --output-file=$@ $(GPERF_OPTS) $<