summaryrefslogtreecommitdiff
path: root/libc/misc/fnmatch/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'libc/misc/fnmatch/Makefile.in')
-rw-r--r--libc/misc/fnmatch/Makefile.in10
1 files changed, 7 insertions, 3 deletions
diff --git a/libc/misc/fnmatch/Makefile.in b/libc/misc/fnmatch/Makefile.in
index e2a83f223..39387d9a1 100644
--- a/libc/misc/fnmatch/Makefile.in
+++ b/libc/misc/fnmatch/Makefile.in
@@ -6,7 +6,11 @@
# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
#
+ifeq ($(UCLIBC_HAS_FNMATCH_OLD),y)
CSRC:=fnmatch_old.c
+else
+CSRC:=fnmatch.c
+endif
MISC_FNMATCH_DIR:=$(top_srcdir)libc/misc/fnmatch
MISC_FNMATCH_OUT:=$(top_builddir)libc/misc/fnmatch
@@ -14,10 +18,10 @@ MISC_FNMATCH_OUT:=$(top_builddir)libc/misc/fnmatch
MISC_FNMATCH_SRC:=$(patsubst %.c,$(MISC_FNMATCH_DIR)/%.c,$(CSRC))
MISC_FNMATCH_OBJ:=$(patsubst %.c,$(MISC_FNMATCH_OUT)/%.c,$(CSRC))
-libc-a-y+=$(MISC_FNMATCH_OBJ)
-libc-so-y+=$(MISC_FNMATCH_OBJ:.o=.os)
+libc-a-$(UCLIBC_HAS_FNMATCH)+=$(MISC_FNMATCH_OBJ)
+libc-so-$(UCLIBC_HAS_FNMATCH)+=$(MISC_FNMATCH_OBJ:.o=.os)
-libc-multi-y+=$(MISC_FNMATCH_SRC)
+libc-multi-$(UCLIBC_HAS_FNMATCH)+=$(MISC_FNMATCH_SRC)
objclean-y+=misc_fnmatch_objclean