From dd1bc000bbb7191729fe9659706df385430ec0a3 Mon Sep 17 00:00:00 2001 From: midipix Date: Jan 09 2019 10:48:15 +0000 Subject: build system: core: allow cfgdefs.mk to pre-set core variables. --- diff --git a/sofort/core/defs.mk b/sofort/core/defs.mk index 151bc3d..ff656c8 100644 --- a/sofort/core/defs.mk +++ b/sofort/core/defs.mk @@ -1,18 +1,18 @@ -SHARED_LIB_DEPS = -SHARED_APP_DEPS = -STATIC_APP_DEPS = +SHARED_LIB_DEPS += +SHARED_APP_DEPS += +STATIC_APP_DEPS += -COMMON_LOBJS = $(COMMON_SRCS:.c=.lo) -COMMON_OBJS = $(COMMON_SRCS:.c=.o) +COMMON_LOBJS += $(COMMON_SRCS:.c=.lo) +COMMON_OBJS += $(COMMON_SRCS:.c=.o) -ARCH_LOBJS = $(ARCH_SRCS:.c=.lo) -ARCH_OBJS = $(ARCH_SRCS:.c=.o) +ARCH_LOBJS += $(ARCH_SRCS:.c=.lo) +ARCH_OBJS += $(ARCH_SRCS:.c=.o) -APP_LOBJS = $(APP_SRCS:.c=.lo) -APP_OBJS = $(APP_SRCS:.c=.o) +APP_LOBJS += $(APP_SRCS:.c=.lo) +APP_OBJS += $(APP_SRCS:.c=.o) -SHARED_OBJS = $(COMMON_LOBJS) $(ARCH_LOBJS) -STATIC_OBJS = $(COMMON_OBJS) $(ARCH_OBJS) +SHARED_OBJS += $(COMMON_LOBJS) $(ARCH_LOBJS) +STATIC_OBJS += $(COMMON_OBJS) $(ARCH_OBJS) STATIC_LIB_NAME = $(OS_LIB_PREFIX)$(PACKAGE)$(OS_ARCHIVE_EXT) STATIC_LIB = lib/$(STATIC_LIB_NAME)