summaryrefslogtreecommitdiff
path: root/libc/misc
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-10-25 22:17:39 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-10-25 22:17:39 +0000
commita80fc77b658a7883df95ac41ad83ac9ff7c8ff07 (patch)
tree3edbcb812b876e0ba1424b229d50e9c04a2b0d4a /libc/misc
parent7ce8f67d27885ea6b1cba2c43e5edc9f1dc17f0f (diff)
All Makefile.in's. Only arm/i386/mips/powerpc/x86_64 are done, the other archs lack proper crt1. The Makefiles in extra/scripts are intended to be linked into each dir, where it is necessary to build locally.
Diffstat (limited to 'libc/misc')
-rw-r--r--libc/misc/Makefile.in36
-rw-r--r--libc/misc/assert/Makefile.in26
-rw-r--r--libc/misc/ctype/Makefile.in56
-rw-r--r--libc/misc/dirent/Makefile.in28
-rw-r--r--libc/misc/error/Makefile.in25
-rw-r--r--libc/misc/file/Makefile.in27
-rw-r--r--libc/misc/fnmatch/Makefile.in24
-rw-r--r--libc/misc/ftw/Makefile.in38
-rw-r--r--libc/misc/glob/Makefile.in30
-rw-r--r--libc/misc/gnu/Makefile.in26
-rw-r--r--libc/misc/internals/Makefile.in41
-rw-r--r--libc/misc/intl/Makefile.in33
-rw-r--r--libc/misc/locale/Makefile.in61
-rw-r--r--libc/misc/mntent/Makefile.in26
-rw-r--r--libc/misc/pthread/Makefile.in26
-rw-r--r--libc/misc/regex/Makefile.in26
-rw-r--r--libc/misc/search/Makefile.in66
-rw-r--r--libc/misc/statfs/Makefile.in28
-rw-r--r--libc/misc/syslog/Makefile.in26
-rw-r--r--libc/misc/sysvipc/Makefile.in62
-rw-r--r--libc/misc/time/Makefile.in69
-rw-r--r--libc/misc/ttyent/Makefile.in25
-rw-r--r--libc/misc/utmp/Makefile.in26
-rw-r--r--libc/misc/wchar/Makefile.in49
-rw-r--r--libc/misc/wctype/Makefile.in50
-rw-r--r--libc/misc/wordexp/Makefile.in25
26 files changed, 955 insertions, 0 deletions
diff --git a/libc/misc/Makefile.in b/libc/misc/Makefile.in
new file mode 100644
index 000000000..f9331c9dd
--- /dev/null
+++ b/libc/misc/Makefile.in
@@ -0,0 +1,36 @@
+# Makefile for uClibc
+#
+# Copyright (C) 2000 by Lineo, inc.
+# Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
+#
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+#
+
+#DIRS:=assert ctype dirent error file fnmatch ftw glob gnu internals intl locale mntent \
+# pthread regex search statfs syslog sysvipc time ttyent utmp wchar wctype wordexp
+
+include $(top_srcdir)libc/misc/assert/Makefile.in
+include $(top_srcdir)libc/misc/ctype/Makefile.in
+include $(top_srcdir)libc/misc/dirent/Makefile.in
+include $(top_srcdir)libc/misc/error/Makefile.in
+include $(top_srcdir)libc/misc/file/Makefile.in
+include $(top_srcdir)libc/misc/fnmatch/Makefile.in
+include $(top_srcdir)libc/misc/ftw/Makefile.in
+include $(top_srcdir)libc/misc/glob/Makefile.in
+include $(top_srcdir)libc/misc/gnu/Makefile.in
+include $(top_srcdir)libc/misc/internals/Makefile.in
+include $(top_srcdir)libc/misc/intl/Makefile.in
+include $(top_srcdir)libc/misc/locale/Makefile.in
+include $(top_srcdir)libc/misc/mntent/Makefile.in
+include $(top_srcdir)libc/misc/pthread/Makefile.in
+include $(top_srcdir)libc/misc/regex/Makefile.in
+include $(top_srcdir)libc/misc/search/Makefile.in
+include $(top_srcdir)libc/misc/statfs/Makefile.in
+include $(top_srcdir)libc/misc/syslog/Makefile.in
+include $(top_srcdir)libc/misc/sysvipc/Makefile.in
+include $(top_srcdir)libc/misc/time/Makefile.in
+include $(top_srcdir)libc/misc/ttyent/Makefile.in
+include $(top_srcdir)libc/misc/utmp/Makefile.in
+include $(top_srcdir)libc/misc/wchar/Makefile.in
+include $(top_srcdir)libc/misc/wctype/Makefile.in
+include $(top_srcdir)libc/misc/wordexp/Makefile.in
diff --git a/libc/misc/assert/Makefile.in b/libc/misc/assert/Makefile.in
new file mode 100644
index 000000000..6fbdcb72a
--- /dev/null
+++ b/libc/misc/assert/Makefile.in
@@ -0,0 +1,26 @@
+# Makefile for uClibc
+#
+# Copyright (C) 2000 by Lineo, inc.
+# Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
+#
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+#
+
+CSRC:=__assert.c
+
+MISC_ASSERT_DIR:=$(top_srcdir)libc/misc/assert
+MISC_ASSERT_OUT:=$(top_builddir)libc/misc/assert
+
+MISC_ASSERT_SRC:=$(MISC_ASSERT_DIR)/__assert.c
+MISC_ASSERT_OBJ:=$(MISC_ASSERT_OUT)/__assert.o
+
+libc-a-y+=$(MISC_ASSERT_OBJ)
+libc-a-pic-y+=$(MISC_ASSERT_OBJ:.o=.os)
+libc-so-y+=$(MISC_ASSERT_OBJ:.o=.os)
+
+libc-multi-y+=$(MISC_ASSERT_SRC)
+
+objclean-y+=misc_assert_objclean
+
+misc_assert_objclean:
+ $(RM) $(MISC_ASSERT_OUT)/*.{o,os}
diff --git a/libc/misc/ctype/Makefile.in b/libc/misc/ctype/Makefile.in
new file mode 100644
index 000000000..f9f1bfbed
--- /dev/null
+++ b/libc/misc/ctype/Makefile.in
@@ -0,0 +1,56 @@
+# Makefile for uClibc
+#
+# Copyright (C) 2000 by Lineo, inc.
+# Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
+#
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+#
+
+MSRC:=ctype.c
+MOBJ:= isalnum.o isalpha.o isascii.o iscntrl.o isdigit.o \
+ isgraph.o islower.o isprint.o ispunct.o isspace.o \
+ isupper.o isxdigit.o toascii.o tolower.o toupper.o \
+ isblank.o isxlower.o isxupper.o
+
+ifeq ($(UCLIBC_HAS_CTYPE_TABLES),y)
+MOBJ+= __C_ctype_b.o __C_ctype_tolower.o __C_ctype_toupper.o \
+ __ctype_b_loc.o __ctype_tolower_loc.o __ctype_toupper_loc.o \
+ __ctype_assert.o isctype.o
+endif
+
+MOBJx= isalnum_l.o isalpha_l.o isascii_l.o iscntrl_l.o isdigit_l.o \
+ isgraph_l.o islower_l.o isprint_l.o ispunct_l.o isspace_l.o \
+ isupper_l.o isxdigit_l.o toascii_l.o tolower_l.o toupper_l.o \
+ isblank_l.o # isxlower_l.o isxupper_l.o
+
+MISC_CTYPE_DIR:=$(top_srcdir)libc/misc/ctype
+MISC_CTYPE_OUT:=$(top_builddir)libc/misc/ctype
+
+MISC_CTYPE_MSRC:=$(MISC_CTYPE_DIR)/$(MSRC)
+MISC_CTYPE_MOBJ:=$(patsubst %.o,$(MISC_CTYPE_OUT)/%.o,$(MOBJ))
+MISC_CTYPE_MOBJx=$(patsubst %.o,$(MISC_CTYPE_OUT)/%.o,$(MOBJx))
+
+# adapt this if MOBJx is done for multi
+MISC_CTYPE_DEF:=$(patsubst %,-DL_%,$(subst .o,,$(notdir $(MISC_CTYPE_MOBJ))))
+
+$(MISC_CTYPE_MOBJ) $(MISC_CTYPE_MOBJ:.o=.os): $(MISC_CTYPE_MSRC)
+ $(compile.m)
+
+$(MISC_CTYPE_MOBJx) $(MISC_CTYPE_MOBJx:.o=.os): $(MISC_CTYPE_MSRC)
+ $(compile.m) -D__UCLIBC_DO_XLOCALE
+
+libc-a-y+=$(MISC_CTYPE_MOBJ)
+libc-a-$(UCLIBC_HAS_XLOCALE)+=$(MISC_CTYPE_MOBJx)
+libc-a-pic-y+=$(MISC_CTYPE_MOBJ:.o=.os)
+libc-a-pic-$(UCLIBC_HAS_XLOCALE)+=$(MISC_CTYPE_MOBJx:.o=.os)
+libc-so-y+=$(MISC_CTYPE_MOBJ:.o=.os)
+libc-so-$(UCLIBC_HAS_XLOCALE)+=$(MISC_CTYPE_MOBJx:.o=.os)
+
+CFLAGS-multi-y+=$(MISC_CTYPE_DEF)
+libc-multi-y+=$(MISC_CTYPE_MSRC)
+libc-nomulti-$(UCLIBC_HAS_XLOCALE)+=$(MISC_CTYPE_MOBJx)
+
+objclean-y+=misc_ctype_objclean
+
+misc_ctype_objclean:
+ $(RM) $(MISC_CTYPE_OUT)/*.{o,os}
diff --git a/libc/misc/dirent/Makefile.in b/libc/misc/dirent/Makefile.in
new file mode 100644
index 000000000..8ba28cdeb
--- /dev/null
+++ b/libc/misc/dirent/Makefile.in
@@ -0,0 +1,28 @@
+# Makefile for uClibc
+#
+# Copyright (C) 2001 by Lineo, inc.
+# Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
+#
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+#
+
+CSRC:= alphasort.c closedir.c dirfd.c opendir.c readdir.c rewinddir.c scandir.c \
+ seekdir.c telldir.c readdir64.c alphasort64.c scandir64.c readdir_r.c \
+ readdir64_r.c
+
+MISC_DIRENT_DIR:=$(top_srcdir)libc/misc/dirent
+MISC_DIRENT_OUT:=$(top_builddir)libc/misc/dirent
+
+MISC_DIRENT_SRC:=$(patsubst %.c,$(MISC_DIRENT_DIR)/%.c,$(CSRC))
+MISC_DIRENT_OBJ:=$(patsubst %.c,$(MISC_DIRENT_OUT)/%.o,$(CSRC))
+
+libc-a-y+=$(MISC_DIRENT_OBJ)
+libc-a-pic-y+=$(MISC_DIRENT_OBJ:.o=.os)
+libc-so-y+=$(MISC_DIRENT_OBJ:.o=.os)
+
+libc-multi-y+=$(MISC_DIRENT_SRC)
+
+objclean-y+=misc_dirent_objclean
+
+misc_dirent_objclean:
+ $(RM) $(MISC_DIRENT_OUT)/*.{o,os}
diff --git a/libc/misc/error/Makefile.in b/libc/misc/error/Makefile.in
new file mode 100644
index 000000000..86bf881fa
--- /dev/null
+++ b/libc/misc/error/Makefile.in
@@ -0,0 +1,25 @@
+# Makefile for uClibc
+#
+# Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
+#
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+#
+
+CSRC:=error.c err.c
+
+MISC_ERROR_DIR:=$(top_srcdir)libc/misc/error
+MISC_ERROR_OUT:=$(top_builddir)libc/misc/error
+
+MISC_ERROR_SRC:=$(patsubst %.c,$(MISC_ERROR_DIR)/%.c,$(CSRC))
+MISC_ERROR_OBJ:=$(patsubst %.c,$(MISC_ERROR_OUT)/%.o,$(CSRC))
+
+libc-a-y+=$(MISC_ERROR_OBJ)
+libc-a-pic-y+=$(MISC_ERROR_OBJ:.o=.os)
+libc-so-y+=$(MISC_ERROR_OBJ:.o=.os)
+
+libc-multi-y+=$(MISC_ERROR_SRC)
+
+objclean-y+=misc_error_objclean
+
+misc_error_objclean:
+ $(RM) $(MISC_ERROR_OUT)/*.{o,os}
diff --git a/libc/misc/file/Makefile.in b/libc/misc/file/Makefile.in
new file mode 100644
index 000000000..76eff7868
--- /dev/null
+++ b/libc/misc/file/Makefile.in
@@ -0,0 +1,27 @@
+# Makefile for uClibc
+#
+# Copyright (C) 2000 by Lineo, inc.
+# Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
+#
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+#
+
+MISC_FILE_DIR:=$(top_srcdir)libc/misc/file
+MISC_FILE_OUT:=$(top_builddir)libc/misc/file
+
+MISC_FILE_SRC:=$(wildcard $(MISC_FILE_DIR)/*.c)
+ifneq ($(UCLIBC_HAS_LFS),y)
+MISC_FILE_SRC:=$(filter-out $(MISC_FILE_DIR)/lockf64.c,$(MISC_FILE_SRC))
+endif
+MISC_FILE_OBJ:=$(patsubst $(MISC_FILE_DIR)/%.c,$(MISC_FILE_OUT)/%.o,$(MISC_FILE_SRC))
+
+libc-a-y+=$(MISC_FILE_OBJ)
+libc-a-pic-y+=$(MISC_FILE_OBJ:.o=.os)
+libc-so-y+=$(MISC_FILE_OBJ:.o=.os)
+
+libc-multi-y+=$(MISC_FILE_SRC)
+
+objclean-y+=misc_file_objclean
+
+misc_file_objclean:
+ $(RM) $(MISC_FILE_OUT)/*.{o,os}
diff --git a/libc/misc/fnmatch/Makefile.in b/libc/misc/fnmatch/Makefile.in
new file mode 100644
index 000000000..24019dede
--- /dev/null
+++ b/libc/misc/fnmatch/Makefile.in
@@ -0,0 +1,24 @@
+# Makefile for uClibc
+#
+# Copyright (C) 2000 by Lineo, inc.
+# Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
+#
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+#
+
+MISC_FNMATCH_DIR:=$(top_srcdir)libc/misc/fnmatch
+MISC_FNMATCH_OUT:=$(top_builddir)libc/misc/fnmatch
+
+MISC_FNMATCH_SRC:=$(MISC_FNMATCH_DIR)/fnmatch.c
+MISC_FNMATCH_OBJ:=$(MISC_FNMATCH_OUT)/fnmatch.o
+
+libc-a-y+=$(MISC_FNMATCH_OBJ)
+libc-a-pic-y+=$(MISC_FNMATCH_OBJ:.o=.os)
+libc-so-y+=$(MISC_FNMATCH_OBJ:.o=.os)
+
+libc-multi-y+=$(MISC_FNMATCH_SRC)
+
+objclean-y+=misc_fnmatch_objclean
+
+misc_fnmatch_objclean:
+ $(RM) $(MISC_FNMATCH_OUT)/*.{o,os}
diff --git a/libc/misc/ftw/Makefile.in b/libc/misc/ftw/Makefile.in
new file mode 100644
index 000000000..2f92ef0ec
--- /dev/null
+++ b/libc/misc/ftw/Makefile.in
@@ -0,0 +1,38 @@
+# Makefile for uClibc
+#
+# Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
+#
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+#
+
+MSRC:=ftw.c
+MOBJ:=ftw.o ftw64.o
+
+MISC_FTW_DIR:=$(top_srcdir)libc/misc/ftw
+MISC_FTW_OUT:=$(top_builddir)libc/misc/ftw
+
+# ftw.c has to be rewritten to allow multi
+MISC_FTW_NO_MULTI:=ftw64.o
+MOBJ:=$(filter-out $(MISC_FTW_NO_MULTI),$(MOBJ))
+
+MISC_FTW_MSRC:=$(MISC_FTW_DIR)/$(MSRC)
+MISC_FTW_MOBJ:=$(patsubst %.o,$(MISC_FTW_OUT)/%.o,$(MOBJ))
+MISC_FTW_DEF:=$(patsubst %,-DL_%,$(subst .o,,$(notdir $(MISC_FTW_MOBJ))))
+
+MISC_FTW_OBJS:=$(MISC_FTW_MOBJ) $(MISC_FTW_OUT)/$(MISC_FTW_NO_MULTI)
+
+$(MISC_FTW_OBJS) $(MISC_FTW_OBJS:.o=.os): $(MISC_FTW_MSRC)
+ $(compile.m)
+
+libc-a-$(UCLIBC_HAS_FTW)+=$(MISC_FTW_OBJS)
+libc-a-pic-$(UCLIBC_HAS_FTW)+=$(MISC_FTW_OBJS:.o=.os)
+libc-so-$(UCLIBC_HAS_FTW)+=$(MISC_FTW_OBJS:.o=.os)
+
+CFLAGS-multi-$(UCLIBC_HAS_FTW)+=$(MISC_FTW_DEF)
+libc-multi-$(UCLIBC_HAS_FTW)+=$(MISC_FTW_MSRC)
+libc-nomulti-$(UCLIBC_HAS_FTW)+=$(MISC_FTW_OUT)/$(MISC_FTW_NO_MULTI)
+
+objclean-y+=misc_ftw_objclean
+
+misc_ftw_objclean:
+ $(RM) $(MISC_FTW_OUT)/*.{o,os}
diff --git a/libc/misc/glob/Makefile.in b/libc/misc/glob/Makefile.in
new file mode 100644
index 000000000..c17086fde
--- /dev/null
+++ b/libc/misc/glob/Makefile.in
@@ -0,0 +1,30 @@
+# Makefile for uClibc
+#
+# Copyright (C) 2000 by Lineo, inc.
+# Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
+#
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+#
+
+CSRC:=glob.c glob64.c glob-hooks.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_OUT)/glob64.o $(MISC_GLOB_OUT)/glob64.os: $(MISC_GLOB_DIR)/glob64.c $(MISC_GLOB_DIR)/glob.c
+
+libc-a-$(UCLIBC_HAS_GLOB)+=$(MISC_GLOB_OBJ)
+libc-a-pic-$(UCLIBC_HAS_GLOB)+=$(MISC_GLOB_OBJ:.o=.os)
+libc-so-$(UCLIBC_HAS_GLOB)+=$(MISC_GLOB_OBJ:.o=.os)
+
+# glob has to be rewritten to allow multi
+#libc-multi-$(UCLIBC_HAS_GLOB)+=$(MISC_GLOB_SRC)
+libc-nomulti-$(UCLIBC_HAS_GLOB)+=$(MISC_GLOB_OBJ)
+
+objclean-y+=misc_glob_objclean
+
+misc_glob_objclean:
+ $(RM) $(MISC_GLOB_OUT)/*.{o,os}
diff --git a/libc/misc/gnu/Makefile.in b/libc/misc/gnu/Makefile.in
new file mode 100644
index 000000000..263b45713
--- /dev/null
+++ b/libc/misc/gnu/Makefile.in
@@ -0,0 +1,26 @@
+# Makefile for uClibc
+#
+# Copyright (C) 2000 by Lineo, inc.
+# Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
+#
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+#
+
+CSRC:=obstack.c
+
+MISC_GNU_DIR:=$(top_srcdir)libc/misc/gnu
+MISC_GNU_OUT:=$(top_builddir)libc/misc/gnu
+
+MISC_GNU_SRC:=$(MISC_GNU_DIR)/obstack.c
+MISC_GNU_OBJ:=$(MISC_GNU_OUT)/obstack.o
+
+libc-a-y+=$(MISC_GNU_OBJ)
+libc-a-pic-y+=$(MISC_GNU_OBJ:.o=.os)
+libc-so-y+=$(MISC_GNU_OBJ:.o=.os)
+
+libc-multi-y+=$(MISC_GNU_SRC)
+
+objclean-y+=misc_gnu_objclean
+
+misc_gnu_objclean:
+ $(RM) $(MISC_GNU_OUT)/*.{o,os}
diff --git a/libc/misc/internals/Makefile.in b/libc/misc/internals/Makefile.in
new file mode 100644
index 000000000..de611323e
--- /dev/null
+++ b/libc/misc/internals/Makefile.in
@@ -0,0 +1,41 @@
+# Makefile for uClibc
+#
+# Copyright (C) 2000 by Lineo, inc.
+# Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
+#
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+#
+
+CFLAGS-__uClibc_main.c=$(SSP_DISABLE_FLAGS)
+
+CSRC:=__uClibc_main.c tempname.c errno.c __errno_location.c __h_errno_location.c
+
+MISC_INTERNALS_DIR:=$(top_srcdir)libc/misc/internals
+MISC_INTERNALS_OUT:=$(top_builddir)libc/misc/internals
+
+MISC_INTERNALS_SRC:=$(patsubst %.c,$(MISC_INTERNALS_DIR)/%.c,$(CSRC))
+MISC_INTERNALS_OBJ:=$(patsubst %.c,$(MISC_INTERNALS_OUT)/%.o,$(CSRC))
+
+MISC_INTERNALS_OBJS:=$(MISC_INTERNALS_OBJ) $(MISC_INTERNALS_OUT)/static.o
+
+$(MISC_INTERNALS_OUT)/interp.c: $(MISC_INTERNALS_DIR)/Makefile.in
+ echo "/* Force shared libraries to know about the correct library loader */" > $@
+ echo "#include <features.h>" >> $@
+ echo "#ifdef __HAVE_ELF__" >> $@
+ echo "const char __dl_ldso__[] __attribute__ ((section " \
+ "(\".interp\"))) =\""$(SHARED_LIB_LOADER_PREFIX)/$(UCLIBC_LDSO)"\";" >> $@
+ echo "#endif" >> $@
+
+libc-a-y+=$(MISC_INTERNALS_OBJS)
+libc-a-pic-y+=$(MISC_INTERNALS_OBJS:.o=.os)
+# this is OBJ, not OBJS !!!, static does not go into .so
+libc-so-y+=$(MISC_INTERNALS_OBJ:.o=.os)
+other-y+=$(MISC_INTERNALS_OUT)/interp.os
+
+libc-multi-y+=$(filter-out $(MISC_INTERNALS_DIR)/__uClibc_main.c,$(MISC_INTERNALS_SRC))
+libc-nomulti-y+=$(MISC_INTERNALS_OUT)/__uClibc_main.o
+
+objclean-y+=misc_internals_objclean
+
+misc_internals_objclean:
+ $(RM) $(MISC_INTERNALS_OUT)/{*.{o,os},interp.c}
diff --git a/libc/misc/intl/Makefile.in b/libc/misc/intl/Makefile.in
new file mode 100644
index 000000000..40eadfa1b
--- /dev/null
+++ b/libc/misc/intl/Makefile.in
@@ -0,0 +1,33 @@
+# Makefile for uClibc
+#
+# Copyright (C) 2000 by Lineo, inc.
+# Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
+#
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+#
+
+MSRC:=intl.c
+MOBJ:= __uClibc_dgettext.o __uClibc_dcgettext.o \
+ __uClibc_textdomain.o __uClibc_bindtextdomain.o # for libstd++
+
+MISC_INTL_DIR:=$(top_srcdir)libc/misc/intl
+MISC_INTL_OUT:=$(top_builddir)libc/misc/intl
+
+MISC_INTL_MSRC:=$(MISC_INTL_DIR)/$(MSRC)
+MISC_INTL_MOBJ:=$(patsubst %.o,$(MISC_INTL_OUT)/%.o,$(MOBJ))
+MISC_INTL_DEF:=$(patsubst %,-DL_%,$(subst .o,,$(notdir $(MISC_INTL_MOBJ))))
+
+$(MISC_INTL_MOBJ) $(MISC_INTL_MOBJ:.o=.os): $(MISC_INTL_MSRC)
+ $(compile.m)
+
+libc-a-$(UCLIBC_HAS_GETTEXT_AWARENESS)+=$(MISC_INTL_MOBJ)
+libc-a-pic-$(UCLIBC_HAS_GETTEXT_AWARENESS)+=$(MISC_INTL_MOBJ:.o=.os)
+libc-so-$(UCLIBC_HAS_GETTEXT_AWARENESS)+=$(MISC_INTL_MOBJ:.o=.os)
+
+CFLAGS-multi-$(UCLIBC_HAS_GETTEXT_AWARENESS)+=$(MISC_INTL_DEF)
+libc-multi-$(UCLIBC_HAS_GETTEXT_AWARENESS)+=$(MISC_INTL_MSRC)
+
+objclean-y+=misc_intl_objclean
+
+misc_intl_objclean:
+ $(RM) $(MISC_INTL_OUT)/*.{o,os}
diff --git a/libc/misc/locale/Makefile.in b/libc/misc/locale/Makefile.in
new file mode 100644
index 000000000..f93abef33
--- /dev/null
+++ b/libc/misc/locale/Makefile.in
@@ -0,0 +1,61 @@
+# Makefile for uClibc
+#
+# Copyright (C) 2000 by Lineo, inc.
+# Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
+#
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+#
+
+MSRC:=locale.c
+MOBJ:=setlocale.o localeconv.o _locale_init.o nl_langinfo.o
+MOBJx=
+
+ifeq ($(UCLIBC_HAS_LOCALE),y)
+MOBJ+=newlocale.o __locale_mbrtowc_l.o
+endif
+
+ifeq ($(UCLIBC_HAS_XLOCALE),y)
+MOBJx+=nl_langinfo_l.o duplocale.o freelocale.o uselocale.o __curlocale.o
+endif
+
+DATA=
+ifeq ($(UCLIBC_HAS_LOCALE),y)
+DATA:=locale_data.o
+endif
+
+MISC_LOCALE_DIR:=$(top_srcdir)libc/misc/locale
+MISC_LOCALE_OUT:=$(top_builddir)libc/misc/locale
+
+MISC_LOCALE_MSRC:=$(MISC_LOCALE_DIR)/$(MSRC)
+MISC_LOCALE_MOBJ:=$(patsubst %.o,$(MISC_LOCALE_OUT)/%.o,$(MOBJ))
+MISC_LOCALE_MOBJx=$(patsubst %.o,$(MISC_LOCALE_OUT)/%.o,$(MOBJx))
+MISC_LOCALE_DATA=$(patsubst %.o,$(MISC_LOCALE_OUT)/%.o,$(DATA))
+
+MISC_LOCALE_DEF:=$(patsubst %,-DL_%,$(subst .o,,$(notdir $(MISC_LOCALE_MOBJ))))
+
+$(MISC_LOCALE_MOBJ) $(MISC_LOCALE_MOBJ:.o=.os): $(MISC_LOCALE_MSRC)
+ $(compile.m)
+
+$(MISC_LOCALE_MOBJx) $(MISC_LOCALE_MOBJx:.o=.os): $(MISC_LOCALE_MSRC)
+ $(compile.m) -D__UCLIBC_DO_XLOCALE
+
+$(MISC_LOCALE_DATA) $(MISC_LOCALE_DATA:.o=.os): $(top_builddir)extra/locale/$(notdir $(MISC_LOCALE_DATA:.o=.c))
+ $(compile.c) -D__WCHAR_ENABLED -I$<
+
+libc-a-y+=$(MISC_LOCALE_MOBJ)
+libc-a-$(UCLIBC_HAS_XLOCALE)+=$(MISC_LOCALE_MOBJx)
+libc-a-pic-y+=$(MISC_LOCALE_MOBJ:.o=.os)
+libc-a-pic-$(UCLIBC_HAS_XLOCALE)+=$(MISC_LOCALE_MOBJx:.o=.os)
+libc-so-y+=$(MISC_LOCALE_MOBJ:.o=.os)
+libc-so-$(UCLIBC_HAS_XLOCALE)+=$(MISC_LOCALE_MOBJx:.o=.os)
+
+#CFLAGS-multi-y+=$(MISC_LOCALE_DEF)
+#libc-multi-y+=$(MISC_LOCALE_MSRC)
+libc-nomulti-y+=$(MISC_LOCALE_MOBJ)
+libc-nomulti-$(UCLIBC_HAS_LOCALE)+=$(MISC_LOCALE_DATA)
+libc-nomulti-$(UCLIBC_HAS_XLOCALE)+=$(MISC_LOCALE_MOBJx)
+
+objclean-y+=misc_locale_objclean
+
+misc_locale_objclean:
+ $(RM) $(MISC_LOCALE_OUT)/{*.{o,os},locale_data.c}
diff --git a/libc/misc/mntent/Makefile.in b/libc/misc/mntent/Makefile.in
new file mode 100644
index 000000000..cdb8acd5e
--- /dev/null
+++ b/libc/misc/mntent/Makefile.in
@@ -0,0 +1,26 @@
+# Makefile for uClibc
+#
+# Copyright (C) 2000 by Lineo, inc.
+# Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
+#
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+#
+
+CSRC:=mntent.c
+
+MISC_MNTENT_DIR:=$(top_srcdir)libc/misc/mntent
+MISC_MNTENT_OUT:=$(top_builddir)libc/misc/mntent
+
+MISC_MNTENT_SRC:=$(MISC_MNTENT_DIR)/mntent.c
+MISC_MNTENT_OBJ:=$(MISC_MNTENT_OUT)/mntent.o
+
+libc-a-y+=$(MISC_MNTENT_OBJ)
+libc-a-pic-y+=$(MISC_MNTENT_OBJ:.o=.os)
+libc-so-y+=$(MISC_MNTENT_OBJ:.o=.os)
+
+libc-multi-y+=$(MISC_MNTENT_SRC)
+
+objclean-y+=misc_mntent_objclean
+
+misc_mntent_objclean:
+ $(RM) $(MISC_MNTENT_OUT)/*.{o,os}
diff --git a/libc/misc/pthread/Makefile.in b/libc/misc/pthread/Makefile.in
new file mode 100644
index 000000000..0bcb1496b
--- /dev/null
+++ b/libc/misc/pthread/Makefile.in
@@ -0,0 +1,26 @@
+# Makefile for uClibc
+#
+# Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
+#
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+#
+
+CSRC:=no-tsd.c weaks.c
+
+MISC_PTHREAD_DIR:=$(top_srcdir)libc/misc/pthread
+MISC_PTHREAD_OUT:=$(top_builddir)libc/misc/pthread
+
+MISC_PTHREAD_SRC:=$(patsubst %.c,$(MISC_PTHREAD_DIR)/%.c,$(CSRC))
+MISC_PTHREAD_OBJ:=$(patsubst %.c,$(MISC_PTHREAD_OUT)/%.o,$(CSRC))
+
+libc-a-$(UCLIBC_HAS_THREADS)+=$(MISC_PTHREAD_OBJ)
+libc-a-pic-$(UCLIBC_HAS_THREADS)+=$(MISC_PTHREAD_OBJ:.o=.os)
+libc-so-$(UCLIBC_HAS_THREADS)+=$(MISC_PTHREAD_OBJ:.o=.os)
+
+#libc-multi-$(UCLIBC_HAS_THREADS)+=$(MISC_PTHREAD_SRC)
+libc-nomulti-$(UCLIBC_HAS_THREADS)+=$(MISC_PTHREAD_OBJ)
+
+objclean-y+=misc_pthread_objclean
+
+misc_pthread_objclean:
+ $(RM) $(MISC_PTHREAD_OUT)/*.{o,os}
diff --git a/libc/misc/regex/Makefile.in b/libc/misc/regex/Makefile.in
new file mode 100644
index 000000000..6909e6246
--- /dev/null
+++ b/libc/misc/regex/Makefile.in
@@ -0,0 +1,26 @@
+# Makefile for uClibc
+#
+# Copyright (C) 2000 by Lineo, inc.
+# Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
+#
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+#
+
+CSRC:=regex.c
+
+MISC_REGEX_DIR:=$(top_srcdir)libc/misc/regex
+MISC_REGEX_OUT:=$(top_builddir)libc/misc/regex
+
+MISC_REGEX_SRC:=$(patsubst %.c,$(MISC_REGEX_DIR)/%.c,$(CSRC))
+MISC_REGEX_OBJ:=$(patsubst %.c,$(MISC_REGEX_OUT)/%.o,$(CSRC))
+
+libc-a-$(UCLIBC_HAS_REGEX)+=$(MISC_REGEX_OBJ)
+libc-a-pic-$(UCLIBC_HAS_REGEX)+=$(MISC_REGEX_OBJ:.o=.os)
+libc-so-$(UCLIBC_HAS_REGEX)+=$(MISC_REGEX_OBJ:.o=.os)
+
+libc-multi-$(UCLIBC_HAS_REGEX)+=$(MISC_REGEX_SRC)
+
+objclean-y+=misc_regex_objclean
+
+misc_regex_objclean:
+ $(RM) $(MISC_REGEX_OUT)/*.{o,os}
diff --git a/libc/misc/search/Makefile.in b/libc/misc/search/Makefile.in
new file mode 100644
index 000000000..b762db6e0
--- /dev/null
+++ b/libc/misc/search/Makefile.in
@@ -0,0 +1,66 @@
+# Makefile for uClibc
+#
+# Copyright (C) 2000 by Lineo, inc.
+# Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
+#
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+#
+
+MSRC1:=tsearch.c
+MOBJ1:=tsearch.o tfind.o tdelete.o twalk.o tdestroy.o
+
+MSRC2:=lsearch.c
+MOBJ2:=lfind.o lsearch.o
+
+MSRC3:=insremque.c
+MOBJ3:=insque.o remque.o
+
+MSRC4:=hsearch_r.c
+MOBJ4:=hcreate_r.o hdestroy_r.o hsearch_r.o
+
+CSRC:=hsearch.c
+
+MISC_SEARCH_DIR:=$(top_srcdir)libc/misc/search
+MISC_SEARCH_OUT:=$(top_builddir)libc/misc/search
+
+MISC_SEARCH_SRC:=$(patsubst %.c,$(MISC_SEARCH_DIR)/%.c,$(CSRC))
+MISC_SEARCH_OBJ:=$(patsubst %.c,$(MISC_SEARCH_OUT)/%.o,$(CSRC))
+
+MISC_SEARCH_MSRC1:=$(MISC_SEARCH_DIR)/$(MSRC1)
+MISC_SEARCH_MSRC2:=$(MISC_SEARCH_DIR)/$(MSRC2)
+MISC_SEARCH_MSRC3:=$(MISC_SEARCH_DIR)/$(MSRC3)
+MISC_SEARCH_MSRC4:=$(MISC_SEARCH_DIR)/$(MSRC4)
+MISC_SEARCH_MOBJ1:=$(patsubst %.o,$(MISC_SEARCH_OUT)/%.o,$(MOBJ1))
+MISC_SEARCH_MOBJ2:=$(patsubst %.o,$(MISC_SEARCH_OUT)/%.o,$(MOBJ2))
+MISC_SEARCH_MOBJ3:=$(patsubst %.o,$(MISC_SEARCH_OUT)/%.o,$(MOBJ3))
+MISC_SEARCH_MOBJ4:=$(patsubst %.o,$(MISC_SEARCH_OUT)/%.o,$(MOBJ4))
+
+MISC_SEARCH_MSRC:=$(MISC_SEARCH_MSRC1) $(MISC_SEARCH_MSRC2) $(MISC_SEARCH_MSRC3) $(MISC_SEARCH_MSRC4)
+MISC_SEARCH_MOBJ:=$(MISC_SEARCH_MOBJ1) $(MISC_SEARCH_MOBJ2) $(MISC_SEARCH_MOBJ3) $(MISC_SEARCH_MOBJ4)
+MISC_SEARCH_DEF:=$(patsubst %,-DL_%,$(subst .o,,$(notdir $(MISC_SEARCH_MOBJ))))
+
+MISC_SEARCH_OBJS:=$(MISC_SEARCH_OBJ) $(MISC_SEARCH_MOBJ)
+
+$(MISC_SEARCH_MOBJ1) $(MISC_SEARCH_MOBJ1:.o=.os): $(MISC_SEARCH_MSRC1)
+ $(compile.m)
+
+$(MISC_SEARCH_MOBJ2) $(MISC_SEARCH_MOBJ2:.o=.os): $(MISC_SEARCH_MSRC2)
+ $(compile.m)
+
+$(MISC_SEARCH_MOBJ3) $(MISC_SEARCH_MOBJ3:.o=.os): $(MISC_SEARCH_MSRC3)
+ $(compile.m)
+
+$(MISC_SEARCH_MOBJ4) $(MISC_SEARCH_MOBJ4:.o=.os): $(MISC_SEARCH_MSRC4)
+ $(compile.m)
+
+libc-a-y+=$(MISC_SEARCH_OBJS)
+libc-a-pic-y+=$(MISC_SEARCH_OBJS:.o=.os)
+libc-so-y+=$(MISC_SEARCH_OBJS:.o=.os)
+
+CFLAGS-multi-y+=$(MISC_SEARCH_DEF)
+libc-multi-y+=$(MISC_SEARCH_SRC) $(MISC_SEARCH_MSRC)
+
+objclean-y+=misc_search_objclean
+
+misc_search_objclean:
+ $(RM) $(MISC_SEARCH_OUT)/*.{o,os}
diff --git a/libc/misc/statfs/Makefile.in b/libc/misc/statfs/Makefile.in
new file mode 100644
index 000000000..2adb20f1d
--- /dev/null
+++ b/libc/misc/statfs/Makefile.in
@@ -0,0 +1,28 @@
+# Makefile for uClibc
+#
+# Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
+#
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+#
+
+CSRC:=statvfs.c fstatvfs.c
+ifeq ($(UCLIBC_HAS_LFS),y)
+CSRC+=fstatfs64.c statfs64.c statvfs64.c fstatvfs64.c
+endif
+
+MISC_STATFS_DIR:=$(top_srcdir)libc/misc/statfs
+MISC_STATFS_OUT:=$(top_builddir)libc/misc/statfs
+
+MISC_STATFS_SRC:=$(patsubst %.c,$(MISC_STATFS_DIR)/%.c,$(CSRC))
+MISC_STATFS_OBJ:=$(patsubst %.c,$(MISC_STATFS_OUT)/%.o,$(CSRC))
+
+libc-a-y+=$(MISC_STATFS_OBJ)
+libc-a-pic-y+=$(MISC_STATFS_OBJ:.o=.os)
+libc-so-y+=$(MISC_STATFS_OBJ:.o=.os)
+
+libc-multi-y+=$(MISC_STATFS_SRC)
+
+objclean-y+=misc_statfs_objclean
+
+misc_statfs_objclean:
+ $(RM) $(MISC_STATFS_OUT)/*.{o,os}
diff --git a/libc/misc/syslog/Makefile.in b/libc/misc/syslog/Makefile.in
new file mode 100644
index 000000000..bc6cb0710
--- /dev/null
+++ b/libc/misc/syslog/Makefile.in
@@ -0,0 +1,26 @@
+# Makefile for uClibc
+#
+# Copyright (C) 2000 by Lineo, inc.
+# Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
+#
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+#
+
+CSRC:=syslog.c
+
+MISC_SYSLOG_DIR:=$(top_srcdir)libc/misc/syslog
+MISC_SYSLOG_OUT:=$(top_builddir)libc/misc/syslog
+
+MISC_SYSLOG_SRC:=$(patsubst %.c,$(MISC_SYSLOG_DIR)/%.c,$(CSRC))
+MISC_SYSLOG_OBJ:=$(patsubst %.c,$(MISC_SYSLOG_OUT)/%.o,$(CSRC))
+
+libc-a-y+=$(MISC_SYSLOG_OBJ)
+libc-a-pic-y+=$(MISC_SYSLOG_OBJ:.o=.os)
+libc-so-y+=$(MISC_SYSLOG_OBJ:.o=.os)
+
+libc-multi-y+=$(MISC_SYSLOG_SRC)
+
+objclean-y+=misc_syslog_objclean
+
+misc_syslog_objclean:
+ $(RM) $(MISC_SYSLOG_OUT)/*.{o,os}
diff --git a/libc/misc/sysvipc/Makefile.in b/libc/misc/sysvipc/Makefile.in
new file mode 100644
index 000000000..73cc932aa
--- /dev/null
+++ b/libc/misc/sysvipc/Makefile.in
@@ -0,0 +1,62 @@
+# Makefile for uClibc
+#
+# Copyright (C) 2000 by Lineo, inc.
+# Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
+#
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+#
+
+MSRC1:=sem.c
+MOBJ1:=semget.o semctl.o semop.o
+
+MSRC2:=shm.c
+MOBJ2:=shmat.o shmctl.o shmdt.o shmget.o
+
+MSRC3:=msgq.c
+MOBJ3:=msgctl.o msgget.o msgrcv.o msgsnd.o
+
+CSRC:=ftok.c
+
+MISC_SYSVIPC_DIR:=$(top_srcdir)libc/misc/sysvipc
+MISC_SYSVIPC_OUT:=$(top_builddir)libc/misc/sysvipc
+
+MISC_SYSVIPC_SRC:=$(patsubst %.c,$(MISC_SYSVIPC_DIR)/%.c,$(CSRC))
+MISC_SYSVIPC_OBJ:=$(patsubst %.c,$(MISC_SYSVIPC_OUT)/%.o,$(CSRC))
+
+MISC_SYSVIPC_NO_MULTI:=$(MOBJ1) $(MOBJ3)
+
+MISC_SYSVIPC_MSRC1:=$(patsubst %.c,$(MISC_SYSVIPC_DIR)/%.c,$(MSRC1))
+MISC_SYSVIPC_MSRC2:=$(patsubst %.c,$(MISC_SYSVIPC_DIR)/%.c,$(MSRC2))
+MISC_SYSVIPC_MSRC3:=$(patsubst %.c,$(MISC_SYSVIPC_DIR)/%.c,$(MSRC3))
+MISC_SYSVIPC_MOBJ1:=$(patsubst %.o,$(MISC_SYSVIPC_OUT)/%.o,$(MOBJ1))
+MISC_SYSVIPC_MOBJ2:=$(patsubst %.o,$(MISC_SYSVIPC_OUT)/%.o,$(MOBJ2))
+MISC_SYSVIPC_MOBJ3:=$(patsubst %.o,$(MISC_SYSVIPC_OUT)/%.o,$(MOBJ3))
+
+MISC_SYSVIPC_MSRC:=$(MISC_SYSVIPC_MSRC1) $(MISC_SYSVIPC_MSRC2) $(MISC_SYSVIPC_MSRC3)
+MISC_SYSVIPC_MOBJ:=$(MISC_SYSVIPC_MOBJ1) $(MISC_SYSVIPC_MOBJ2) $(MISC_SYSVIPC_MOBJ3)
+# only MSRC2
+MISC_SYSVIPC_DEF:=$(patsubst %,-DL_%,$(subst .o,,$(notdir $(MISC_SYSVIPC_MOBJ2))))
+
+MISC_SYSVIPC_OBJS:=$(MISC_SYSVIPC_OBJ) $(MISC_SYSVIPC_MOBJ)
+
+$(MISC_SYSVIPC_MOBJ1) $(MISC_SYSVIPC_MOBJ1:.o=.os): $(MISC_SYSVIPC_MSRC1)
+ $(compile.m)
+
+$(MISC_SYSVIPC_MOBJ2) $(MISC_SYSVIPC_MOBJ2:.o=.os): $(MISC_SYSVIPC_MSRC2)
+ $(compile.m)
+
+$(MISC_SYSVIPC_MOBJ3) $(MISC_SYSVIPC_MOBJ3:.o=.os): $(MISC_SYSVIPC_MSRC3)
+ $(compile.m)
+
+libc-a-y+=$(MISC_SYSVIPC_OBJS)
+libc-a-pic-y+=$(MISC_SYSVIPC_OBJS:.o=.os)
+libc-so-y+=$(MISC_SYSVIPC_OBJS:.o=.os)
+
+CFLAGS-multi-y+=$(MISC_SYSVIPC_DEF)
+libc-multi-y+=$(MISC_SYSVIPC_SRC) $(MISC_SYSVIPC_MSRC2)
+libc-nomulti-y+=$(MISC_SYSVIPC_MOBJ1) $(MISC_SYSVIPC_MOBJ3)
+
+objclean-y+=misc_sysvipc_objclean
+
+misc_sysvipc_objclean:
+ $(RM) $(MISC_SYSVIPC_OUT)/*.{o,os}
diff --git a/libc/misc/time/Makefile.in b/libc/misc/time/Makefile.in
new file mode 100644
index 000000000..986e5ed29
--- /dev/null
+++ b/libc/misc/time/Makefile.in
@@ -0,0 +1,69 @@
+# Makefile for uClibc
+#
+# Copyright (C) 2000 by Lineo, inc.
+# Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
+#
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+#
+
+MSRC:=time.c
+MOBJ:= asctime.o asctime_r.o clock.o ctime.o ctime_r.o gmtime.o gmtime_r.o \
+ localtime.o localtime_r.o mktime.o strftime.o strptime.o tzset.o \
+ _time_t2tm.o __time_tm.o _time_mktime.o dysize.o timegm.o \
+ _time_mktime_tzi.o _time_localtime_tzi.o
+MOBJx=
+
+ifeq ($(UCLIBC_HAS_FLOATS),y)
+MOBJ+=difftime.o
+endif
+ifeq ($(UCLIBC_HAS_XLOCALE),y)
+MOBJx+=strftime_l.o strptime_l.o
+endif
+
+ifeq ($(UCLIBC_HAS_WCHAR),y)
+MOBJ+=wcsftime.o
+ifeq ($(UCLIBC_HAS_XLOCALE),y)
+MOBJx+=wcsftime_l.o
+endif
+endif
+
+CSRC:=adjtime.c ftime.c
+
+MISC_TIME_DIR:=$(top_srcdir)libc/misc/time
+MISC_TIME_OUT:=$(top_builddir)libc/misc/time
+
+MISC_TIME_NO_MULTI:=strftime.o
+
+MISC_TIME_SRC:=$(patsubst %.c,$(MISC_TIME_DIR)/%.c,$(CSRC))
+MISC_TIME_OBJ:=$(patsubst %.c,$(MISC_TIME_OUT)/%.o,$(CSRC))
+
+MISC_TIME_MSRC:=$(patsubst %.c,$(MISC_TIME_DIR)/%.c,$(MSRC))
+MISC_TIME_MOBJ:=$(patsubst %.o,$(MISC_TIME_OUT)/%.o,$(MOBJ))
+MISC_TIME_MOBJx=$(patsubst %.o,$(MISC_TIME_OUT)/%.o,$(MOBJx))
+
+MISC_TIME_DEF:=$(patsubst %,-DL_%,$(subst .o,,$(notdir $(filter-out $(MISC_TIME_OUT)/$(MISC_TIME_NO_MULTI),$(MISC_TIME_MOBJ)))))
+
+MISC_TIME_OBJS:=$(MISC_TIME_OBJ) $(MISC_TIME_MOBJ)
+
+$(MISC_TIME_MOBJ) $(MISC_TIME_MOBJ:.o=.os): $(MISC_TIME_MSRC)
+ $(compile.m)
+
+$(MISC_TIME_MOBJx) $(MISC_TIME_MOBJx:.o=.os): $(MISC_TIME_MSRC)
+ $(compile.m) -D__UCLIBC_DO_XLOCALE
+
+libc-a-y+=$(MISC_TIME_OBJS)
+libc-a-$(UCLIBC_HAS_XLOCALE)+=$(MISC_TIME_MOBJx)
+libc-a-pic-y+=$(MISC_TIME_OBJS:.o=.os)
+libc-a-pic-$(UCLIBC_HAS_XLOCALE)+=$(MISC_TIME_MOBJx:.o=.os)
+libc-so-y+=$(MISC_TIME_OBJS:.o=.os)
+libc-so-$(UCLIBC_HAS_XLOCALE)+=$(MISC_TIME_MOBJx:.o=.os)
+
+CFLAGS-multi-y+=$(MISC_TIME_DEF)
+libc-multi-y+=$(MISC_TIME_MSRC)
+libc-nomulti-y+=$(MISC_TIME_OUT)/$(MISC_TIME_NO_MULTI)
+libc-nomulti-$(UCLIBC_HAS_XLOCALE)+=$(MISC_TIME_MOBJx)
+
+objclean-y+=misc_time_objclean
+
+misc_time_objclean:
+ $(RM) $(MISC_TIME_OUT)/*.{o,os}
diff --git a/libc/misc/ttyent/Makefile.in b/libc/misc/ttyent/Makefile.in
new file mode 100644
index 000000000..e653ef2c1
--- /dev/null
+++ b/libc/misc/ttyent/Makefile.in
@@ -0,0 +1,25 @@
+# Makefile for uClibc
+#
+# Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
+#
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+#
+
+CSRC:=getttyent.c
+
+MISC_TTYENT_DIR:=$(top_srcdir)libc/misc/ttyent
+MISC_TTYENT_OUT:=$(top_builddir)libc/misc/ttyent
+
+MISC_TTYENT_SRC:=$(patsubst %.c,$(MISC_TTYENT_DIR)/%.c,$(CSRC))
+MISC_TTYENT_OBJ:=$(patsubst %.c,$(MISC_TTYENT_OUT)/%.o,$(CSRC))
+
+libc-a-y+=$(MISC_TTYENT_OBJ)
+libc-a-pic-y+=$(MISC_TTYENT_OBJ:.o=.os)
+libc-so-y+=$(MISC_TTYENT_OBJ:.o=.os)
+
+libc-multi-y+=$(MISC_TTYENT_SRC)
+
+objclean-y+=misc_ttyent_objclean
+
+misc_ttyent_objclean:
+ $(RM) $(MISC_TTYENT_OUT)/*.{o,os}
diff --git a/libc/misc/utmp/Makefile.in b/libc/misc/utmp/Makefile.in
new file mode 100644
index 000000000..6240a160d
--- /dev/null
+++ b/libc/misc/utmp/Makefile.in
@@ -0,0 +1,26 @@
+# Makefile for uClibc
+#
+# Copyright (C) 2000 by Lineo, inc.
+# Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
+#
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+#
+
+CSRC:=utent.c wtent.c
+
+MISC_UTMP_DIR:=$(top_srcdir)libc/misc/utmp
+MISC_UTMP_OUT:=$(top_builddir)libc/misc/utmp
+
+MISC_UTMP_SRC:=$(patsubst %.c,$(MISC_UTMP_DIR)/%.c,$(CSRC))
+MISC_UTMP_OBJ:=$(patsubst %.c,$(MISC_UTMP_OUT)/%.o,$(CSRC))
+
+libc-a-y+=$(MISC_UTMP_OBJ)
+libc-a-pic-y+=$(MISC_UTMP_OBJ:.o=.os)
+libc-so-y+=$(MISC_UTMP_OBJ:.o=.os)
+
+libc-multi-y+=$(MISC_UTMP_SRC)
+
+objclean-y+=misc_utmp_objclean
+
+misc_utmp_objclean:
+ $(RM) $(MISC_UTMP_OUT)/*.{o,os}
diff --git a/libc/misc/wchar/Makefile.in b/libc/misc/wchar/Makefile.in
new file mode 100644
index 000000000..885f2476b
--- /dev/null
+++ b/libc/misc/wchar/Makefile.in
@@ -0,0 +1,49 @@
+# Makefile for uClibc
+#
+# Copyright (C) 2000 by Lineo, inc.
+# Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
+#
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+#
+
+# The stdio and time related wide functions are now built in the normal
+# directories.
+#
+# stdio:
+# fwide fgetwc getwchar fgetws fputwc putwchar fputws ungetwc
+# getwc (fgetwc alias) getwc_unlocked (fgetwc_unlocked alias)
+# putwc (fputwc alias) putwc_unlocked (fputwc_unlocked alias)
+# time:
+# wcsftime
+#
+
+MSRC:=wchar.c
+MOBJ:= btowc.o wctob.o mbsinit.o mbrlen.o mbrtowc.o wcrtomb.o mbsrtowcs.o \
+ wcsrtombs.o _wchar_utf8sntowcs.o _wchar_wcsntoutf8s.o \
+ __mbsnrtowcs.o __wcsnrtombs.o wcwidth.o wcswidth.o
+
+ifeq ($(UCLIBC_HAS_LOCALE),y)
+MOBJ+=iconv.o
+endif
+
+MISC_WCHAR_DIR:=$(top_srcdir)libc/misc/wchar
+MISC_WCHAR_OUT:=$(top_builddir)libc/misc/wchar
+
+MISC_WCHAR_MSRC:=$(MISC_WCHAR_DIR)/$(MSRC)
+MISC_WCHAR_MOBJ:=$(patsubst %.o,$(MISC_WCHAR_OUT)/%.o,$(MOBJ))
+MISC_WCHAR_DEF:=$(patsubst %,-DL_%,$(subst .o,,$(notdir $(MISC_WCHAR_MOBJ))))
+
+$(MISC_WCHAR_MOBJ) $(MISC_WCHAR_MOBJ:.o=.os): $(MISC_WCHAR_MSRC)
+ $(compile.m)
+
+libc-a-$(UCLIBC_HAS_WCHAR)+=$(MISC_WCHAR_MOBJ)
+libc-a-pic-$(UCLIBC_HAS_WCHAR)+=$(MISC_WCHAR_MOBJ:.o=.os)
+libc-so-$(UCLIBC_HAS_WCHAR)+=$(MISC_WCHAR_MOBJ:.o=.os)
+
+CFLAGS-multi-$(UCLIBC_HAS_WCHAR)+=$(MISC_WCHAR_DEF)
+libc-multi-$(UCLIBC_HAS_WCHAR)+=$(MISC_WCHAR_MSRC)
+
+objclean-y+=misc_wchar_objclean
+
+misc_wchar_objclean:
+ $(RM) $(MISC_WCHAR_OUT)/*.{o,os}
diff --git a/libc/misc/wctype/Makefile.in b/libc/misc/wctype/Makefile.in
new file mode 100644
index 000000000..1db745223
--- /dev/null
+++ b/libc/misc/wctype/Makefile.in
@@ -0,0 +1,50 @@
+# Makefile for uClibc
+#
+# Copyright (C) 2000 by Lineo, inc.
+# Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
+#
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+#
+
+MSRC:=wctype.c
+MOBJ:= iswalnum.o iswalpha.o iswcntrl.o iswdigit.o iswgraph.o \
+ iswlower.o iswprint.o iswpunct.o iswspace.o iswupper.o \
+ iswxdigit.o iswblank.o wctrans.o towctrans.o \
+ wctype.o iswctype.o towlower.o towupper.o
+
+MOBJx= iswalnum_l.o iswalpha_l.o iswcntrl_l.o iswdigit_l.o iswgraph_l.o \
+ iswlower_l.o iswprint_l.o iswpunct_l.o iswspace_l.o iswupper_l.o \
+ iswxdigit_l.o iswblank_l.o \
+ wctype_l.o iswctype_l.o wctrans_l.o towctrans_l.o towlower_l.o towupper_l.o
+
+MISC_WCTYPE_DIR:=$(top_srcdir)libc/misc/wctype
+MISC_WCTYPE_OUT:=$(top_builddir)libc/misc/wctype
+
+MISC_WCTYPE_MSRC:=$(MISC_WCTYPE_DIR)/$(MSRC)
+MISC_WCTYPE_MOBJ:=$(patsubst %.o,$(MISC_WCTYPE_OUT)/%.o,$(MOBJ))
+MISC_WCTYPE_MOBJx=$(patsubst %.o,$(MISC_WCTYPE_OUT)/%.o,$(MOBJx))
+
+# adapt this if MOBJx is done for multi
+MISC_WCTYPE_DEF:=$(patsubst %,-DL_%,$(subst .o,,$(notdir $(MISC_WCTYPE_MOBJ))))
+
+$(MISC_WCTYPE_MOBJ) $(MISC_WCTYPE_MOBJ:.o=.os): $(MISC_WCTYPE_MSRC)
+ $(compile.m)
+
+$(MISC_WCTYPE_MOBJx) $(MISC_WCTYPE_MOBJx:.o=.os): $(MISC_WCTYPE_MSRC)
+ $(compile.m) -D__UCLIBC_DO_XLOCALE
+
+libc-a-$(UCLIBC_HAS_WCHAR)+=$(MISC_WCTYPE_MOBJ)
+libc-a-$(UCLIBC_HAS_XLOCALE)+=$(MISC_WCTYPE_MOBJx)
+libc-a-pic-$(UCLIBC_HAS_WCHAR)+=$(MISC_WCTYPE_MOBJ:.o=.os)
+libc-a-pic-$(UCLIBC_HAS_XLOCALE)+=$(MISC_WCTYPE_MOBJx:.o=.os)
+libc-so-$(UCLIBC_HAS_WCHAR)+=$(MISC_WCTYPE_MOBJ:.o=.os)
+libc-so-$(UCLIBC_HAS_XLOCALE)+=$(MISC_WCTYPE_MOBJx:.o=.os)
+
+CFLAGS-multi-$(UCLIBC_HAS_WCHAR)+=$(MISC_WCTYPE_DEF)
+libc-multi-$(UCLIBC_HAS_WCHAR)+=$(MISC_WCTYPE_MSRC)
+libc-nomulti-$(UCLIBC_HAS_XLOCALE)+=$(MISC_WCTYPE_MOBJx)
+
+objclean-y+=misc_wctype_objclean
+
+misc_wctype_objclean:
+ $(RM) $(MISC_WCTYPE_OUT)/*.{o,os}
diff --git a/libc/misc/wordexp/Makefile.in b/libc/misc/wordexp/Makefile.in
new file mode 100644
index 000000000..c5199fe07
--- /dev/null
+++ b/libc/misc/wordexp/Makefile.in
@@ -0,0 +1,25 @@
+# Makefile for uClibc
+#
+# Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
+#
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+#
+
+CSRC:=wordexp.c
+
+MISC_WORDEXP_DIR:=$(top_srcdir)libc/misc/wordexp
+MISC_WORDEXP_OUT:=$(top_builddir)libc/misc/wordexp
+
+MISC_WORDEXP_SRC:=$(patsubst %.c,$(MISC_WORDEXP_DIR)/%.c,$(CSRC))
+MISC_WORDEXP_OBJ:=$(patsubst %.c,$(MISC_WORDEXP_OUT)/%.o,$(CSRC))
+
+libc-a-$(UCLIBC_HAS_WORDEXP)+=$(MISC_WORDEXP_OBJ)
+libc-a-pic-$(UCLIBC_HAS_WORDEXP)+=$(MISC_WORDEXP_OBJ:.o=.os)
+libc-so-$(UCLIBC_HAS_WORDEXP)+=$(MISC_WORDEXP_OBJ:.o=.os)
+
+libc-multi-$(UCLIBC_HAS_WORDEXP)+=$(MISC_WORDEXP_SRC)
+
+objclean-y+=misc_wordexp_objclean
+
+misc_wordexp_objclean:
+ $(RM) $(MISC_WORDEXP_OUT)/*.{o,os}