summaryrefslogtreecommitdiff
path: root/libc/misc/fnmatch/Makefile.in
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-12-24 00:15:05 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-12-24 00:15:05 +0000
commitf8be4236ba4bc66ac22510d47db44427e946e64d (patch)
tree2e24ed00cdb40b5cd1d56c077d3f7baf405a10ee /libc/misc/fnmatch/Makefile.in
parent0eef7f38a16a540991dbc050b9643a031b91469e (diff)
Add new fnmatch code, for now mbstate_t and mbsrtowcs are depending on UCLIBC_HAS_LOCALE, making the new object about 5k, else it would be 10k
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