lib.mk: Disable building of .so and friends if no .a is present

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2019-03-13 15:26:22 +00:00
commit 5b38496ce1

View file

@ -9,12 +9,17 @@ include $(MODDIR)/make/rules.mk
include $(MODDIR)/make/dev-utils.mk
all:
ifeq ($(wildcard $(LIB_A)),)
USE_PROJECT_LIB = false
endif
ifeq ($(USE_PROJECT_LIB),false)
ifeq ($(TARGET),mingw)
SHOBJS += $(wildcard *.dll)
else
SHOBJS += $(wildcard *.so)
endif
ifeq ($(TARGET),mingw)
SHOBJS += $(wildcard *.dll)
else
SHOBJS += $(wildcard *.so)
endif
all: $(LD_CONF)
install:
else