From 06dae8eb4ea93c15484a1888abb723eaefab7d7e Mon Sep 17 00:00:00 2001 From: MCorange99 Date: Mon, 20 May 2024 12:15:47 +0300 Subject: [PATCH] Update Makefile --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 08487ce..51ff7e5 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ c_sources=$(wildcard src/*.c) objects=$(patsubst src/%.cpp,bin/obj/%.cpp.o,$(cxx_sources)) $(patsubst src/%.c,bin/obj/%.c.o,$(c_sources)) $(LIBS) -all: bin/$(BIN) +all: bin/$(BIN) compile_commands.json @rm -r bin/obj keep: bin/$(BIN) @@ -35,3 +35,6 @@ bin/obj/%.cpp.o: */%.cpp bin/obj/%.c.o: */%.c @mkdir -p $(dir $@) $(CC) -c -o $@ $< $(CC_FLAGS) + +compile_commands.json: + compiledb -n make