Skip to content

Commit

Permalink
Added lib-static-dynamic support
Browse files Browse the repository at this point in the history
  • Loading branch information
ravi688 committed Feb 6, 2022
1 parent e42c580 commit b98217a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ TARGET_DYNAMIC_IMPORT_LIB = $(addprefix $(dir $(TARGET_DYNAMIC_LIB)), $(addprefi
.PHONY: lib-dynamic
.PHONY: lib-dynamic-debug
.PHONY: lib-dynamic-release
.PHONY: lib-static-dynamic
.PHONY: lib-static-dynamic-debug
.PHONY: lib-static-dynamic-release
.PHONY: release
.PHONY: debug
.PHONY: $(TARGET)
Expand All @@ -154,6 +157,16 @@ lib-dynamic-release: __STATIC_LIB_COMMAND = lib-static-release
lib-dynamic-release: COMPILER_FLAGS += -fPIC
lib-dynamic-release: $(TARGET_DYNAMIC_LIB)

lib-static-dynamic: lib-static-dynamic-release
lib-static-dynamic-debug: DEFINES += $(DEBUG_DEFINES) -DBUILD_DYNAMIC_LIBRARY
lib-static-dynamic-debug: __STATIC_LIB_COMMAND = lib-static-dynamic-debug
lib-static-dynamic-debug: COMPILER_FLAGS += -g
lib-static-dynamic-debug: $(TARGET_STATIC_LIB)
lib-static-dynamic-release: DEFINES += $(RELEASE_DEFINES) -DBUILD_DYNAMIC_LIBRARY
lib-static-dynamic-release: __STATIC_LIB_COMMAND = lib-static-dynamic-release
lib-static-dynamic-release: COMPILER_FLAGS += -g
lib-static-dynamic-release: $(TARGET_STATIC_LIB)

release: DEFINES += $(RELEASE_DEFINES) -DBUILD_EXECUTABLE
release: __STATIC_LIB_COMMAND = lib-static-release
release: $(TARGET)
Expand Down

0 comments on commit b98217a

Please sign in to comment.