From 804c8c5254a7555e66e5a07f5c7362fb40f16505 Mon Sep 17 00:00:00 2001 From: MCorange Date: Mon, 2 Jun 2025 16:20:04 +0300 Subject: [PATCH] Add seperate commands for static anmd shared linking. made for including as a dependency --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0899e13..c0073d9 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,10 @@ c_sources=$(wildcard src/*.c) objects=$(patsubst src/%.cpp,build/obj/%.cpp.o,$(cxx_sources)) $(patsubst src/%.c,build/obj/%.c.o,$(c_sources)) -all: build/$(LIB).a build/$(LIB).so compile_commands.json +all: shared static compile_commands.json + +shared: build/$(LIB).so +static: build/$(LIB).a build/$(LIB).a: $(objects) $(AR) rcs $@ $^