summaryrefslogtreecommitdiff
path: root/libc/misc/glob/Makefile.in
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2013-02-05 18:54:24 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2013-02-05 18:55:08 +0100
commit1b3025b7352f5e432ffa1c7adc57085ac9092b77 (patch)
treebb94261d0cf3f76b7bc206a8aa2e69b2419b3944 /libc/misc/glob/Makefile.in
parentaeac3e1220a8afc856bd25e4d87441a26588aac0 (diff)
buildsys: switch libc to kbuild-style
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/misc/glob/Makefile.in')
-rw-r--r--libc/misc/glob/Makefile.in18
1 files changed, 5 insertions, 13 deletions
diff --git a/libc/misc/glob/Makefile.in b/libc/misc/glob/Makefile.in
index 03bfcca36..c89d2b08d 100644
--- a/libc/misc/glob/Makefile.in
+++ b/libc/misc/glob/Makefile.in
@@ -7,23 +7,15 @@
subdirs += libc/misc/glob
-ifeq ($(UCLIBC_HAS_GNU_GLOB),y)
-CSRC := glob.c
-ifeq ($(UCLIBC_HAS_LFS),y)
-CSRC += glob64.c
-endif
-else
-CSRC := glob-susv3.c
-ifeq ($(UCLIBC_HAS_LFS),y)
-CSRC += glob64-susv3.c
-endif
-endif
+VARIANT := $(if $(UCLIBC_HAS_GNU_GLOB),,-susv3)
+CSRC-y := glob$(VARIANT).c
+CSRC-$(UCLIBC_HAS_LFS) += glob64$(VARIANT).c
MISC_GLOB_DIR := $(top_srcdir)libc/misc/glob
MISC_GLOB_OUT := $(top_builddir)libc/misc/glob
-MISC_GLOB_SRC := $(patsubst %.c,$(MISC_GLOB_DIR)/%.c,$(CSRC))
-MISC_GLOB_OBJ := $(patsubst %.c,$(MISC_GLOB_OUT)/%.o,$(CSRC))
+MISC_GLOB_SRC := $(patsubst %.c,$(MISC_GLOB_DIR)/%.c,$(CSRC-y))
+MISC_GLOB_OBJ := $(patsubst %.c,$(MISC_GLOB_OUT)/%.o,$(CSRC-y))
libc-$(UCLIBC_HAS_GLOB) += $(MISC_GLOB_OBJ)