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 $@ $^