Add seperate commands for static anmd shared linking. made for including as a dependency
This commit is contained in:
parent
8d4415460c
commit
804c8c5254
5
Makefile
5
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 $@ $^
|
||||
|
|
Loading…
Reference in New Issue
Block a user