[git commit branch/0.9.33] librt: refactor source selection

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Mon Mar 26 11:20:41 UTC 2012


commit: http://git.uclibc.org/uClibc/commit/?id=4afbf96175c7626b3e958b48736576331da8de0b
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/0.9.33

Should make adding more knob control simpler as people only need
to modify one variable now (librt_filter_SRC).

Signed-off-by: Mike Frysinger <vapier at gentoo.org>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
 librt/Makefile.in |   19 +++++++++++--------
 1 files changed, 11 insertions(+), 8 deletions(-)

diff --git a/librt/Makefile.in b/librt/Makefile.in
index 7d295d4..909afd8 100644
--- a/librt/Makefile.in
+++ b/librt/Makefile.in
@@ -22,18 +22,21 @@ librt_DIR := $(top_srcdir)librt
 librt_OUT := $(top_builddir)librt
 
 ifeq ($(UCLIBC_HAS_REALTIME),y)
+
+librt_SRC := $(notdir $(wildcard $(librt_DIR)/*.c))
+librt_filter_SRC :=
 ifeq ($(UCLIBC_HAS_THREADS_NATIVE),y)
-librt_CSRC := $(filter-out mq_notify.c timer_create.c timer_delete.c	\
-		timer_getoverr.c timer_gettime.c timer_settime.c,	\
-		$(notdir $(wildcard $(librt_DIR)/*.c)))
+librt_filter_SRC += mq_notify.c timer_create.c timer_delete.c \
+	timer_getoverr.c timer_gettime.c timer_settime.c
 librt_SSRC := $(wildcard $(librt_DIR)/*.S)
-librt_OBJ := $(patsubst %.c,$(librt_OUT)/%.o,$(librt_CSRC))
-librt_OBJ += $(patsubst $(librt_DIR)/%.S,$(librt_OUT)/%.o,$(librt_SSRC))
 else
-librt_SRC := $(filter-out clock_nanosleep.c clock_getcpuclockid.c clock_gettime.c,	\
-		$(notdir $(wildcard $(librt_DIR)/*.c)))
-librt_OBJ := $(patsubst %.c,$(librt_OUT)/%.o,$(librt_SRC))
+librt_filter_SRC += clock_nanosleep.c clock_getcpuclockid.c clock_gettime.c
+librt_SSRC :=
 endif
+librt_SRC := $(filter-out $(librt_filter_SRC),$(librt_SRC))
+
+librt_OBJ := $(patsubst %.c,$(librt_OUT)/%.o,$(librt_SRC))
+librt_OBJ += $(patsubst $(librt_DIR)/%.S,$(librt_OUT)/%.o,$(librt_SSRC))
 
 ASFLAGS-mq_timedreceive.S = -D_LIBC_REENTRANT
 ASFLAGS-mq_timedsend.S = -D_LIBC_REENTRANT


More information about the uClibc-cvs mailing list