Make sure we rebuild everything on a header file change...

This commit is contained in:
K. Lange 2021-01-08 16:53:17 +09:00
parent 3735b9c16b
commit 0d2e115c93

View File

@ -8,6 +8,8 @@ MODULES=$(patsubst src/%.c, modules/%.so, $(sort $(wildcard src/*.c)))
all: ${TARGET} ${MODULES}
%.o: *.h
modules/%.so: src/%.c
${CC} ${CFLAGS} -shared -o $@ $<