From d952b7d620b9e2eddec26af78c044fc5135e4aac Mon Sep 17 00:00:00 2001 From: 0scar Date: Tue, 21 Sep 2021 12:31:31 +0200 Subject: Add header file as dependency --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e340023..97623ba 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ OBJ :=$(addprefix obj/,$(notdir $(SRC:.c=.o))) test: debug ./$(OUT) -gdb: debug +gdb: debug src/btree.h gdb -q -ex r $(OUT) debug: DEFS += -g3 -DDEBUG @@ -21,7 +21,7 @@ build: $(OUT) $(OUT): $(OBJ) $(CC) $(DEFS) $(FLAGS) $(LFLAGS) -o $(OUT) $(OBJ) -obj/%.o: src/%.c +obj/%.o: src/%.c src/btree.h $(CC) $(DEFS) $(FLAGS) -c -o $@ $< obj: -- cgit v1.3