From e6aa37afc9c281a04f40250b8fcd35302064a087 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Sat, 29 Oct 2005 10:16:07 +0000 Subject: Replace all Makefiles for new build infrastucture --- libc/Makefile | 121 ++-------------------------- libc/inet/Makefile | 98 ++--------------------- libc/inet/rpc/Makefile | 69 ++-------------- libc/misc/Makefile | 70 ++-------------- libc/misc/assert/Makefile | 43 ++-------- libc/misc/ctype/Makefile | 66 ++------------- libc/misc/dirent/Makefile | 46 ++--------- libc/misc/error/Makefile | 38 ++------- libc/misc/file/Makefile | 47 ++--------- libc/misc/fnmatch/Makefile | 43 ++-------- libc/misc/ftw/Makefile | 40 ++-------- libc/misc/glob/Makefile | 45 ++--------- libc/misc/gnu/Makefile | 43 ++-------- libc/misc/internals/Makefile | 59 ++------------ libc/misc/intl/Makefile | 49 ++---------- libc/misc/locale/Makefile | 67 ++-------------- libc/misc/mntent/Makefile | 43 ++-------- libc/misc/pthread/Makefile | 40 ++-------- libc/misc/regex/Makefile | 43 ++-------- libc/misc/search/Makefile | 69 ++-------------- libc/misc/statfs/Makefile | 44 ++-------- libc/misc/syslog/Makefile | 47 ++--------- libc/misc/sysvipc/Makefile | 63 ++------------- libc/misc/time/Makefile | 72 ++--------------- libc/misc/ttyent/Makefile | 38 ++------- libc/misc/utmp/Makefile | 43 ++-------- libc/misc/wchar/Makefile | 61 ++------------ libc/misc/wctype/Makefile | 60 ++------------ libc/misc/wordexp/Makefile | 38 ++------- libc/pwd_grp/Makefile | 65 ++------------- libc/signal/Makefile | 44 ++-------- libc/stdio/Makefile | 151 ++--------------------------------- libc/stdlib/Makefile | 143 ++------------------------------- libc/stdlib/malloc-simple/Makefile | 44 ++-------- libc/stdlib/malloc-standard/Makefile | 55 ++----------- libc/stdlib/malloc/Makefile | 58 ++------------ libc/string/Makefile | 95 ++-------------------- libc/string/arm/Makefile | 41 ++-------- libc/string/frv/Makefile | 40 ++-------- libc/string/generic/Makefile | 41 ++-------- libc/string/i386/Makefile | 42 ++-------- libc/string/mips/Makefile | 40 ++-------- libc/string/powerpc/Makefile | 40 ++-------- libc/string/sh64/Makefile | 42 +++------- libc/string/sparc/Makefile | 35 ++------ libc/string/x86_64/Makefile | 35 ++------ libc/sysdeps/Makefile | 40 +++------- libc/sysdeps/linux/Makefile | 43 ++-------- libc/sysdeps/linux/arm/Makefile | 77 ++---------------- libc/sysdeps/linux/common/Makefile | 63 ++------------- libc/sysdeps/linux/i386/Makefile | 77 ++---------------- libc/sysdeps/linux/mips/Makefile | 80 ++----------------- libc/sysdeps/linux/powerpc/Makefile | 77 ++---------------- libc/sysdeps/linux/x86_64/Makefile | 74 ++--------------- libc/termios/Makefile | 53 ++---------- libc/unistd/Makefile | 58 ++------------ 56 files changed, 448 insertions(+), 2810 deletions(-) (limited to 'libc') diff --git a/libc/Makefile b/libc/Makefile index d27990665..2dea1b3e9 100644 --- a/libc/Makefile +++ b/libc/Makefile @@ -1,120 +1,15 @@ # Makefile for uClibc # -# Copyright (C) 2000 by Lineo, inc. -# Copyright (C) 2000,2001 Erik Andersen +# Copyright (C) 2000-2005 Erik Andersen # -# This program is free software; you can redistribute it and/or modify it under -# the terms of the GNU Library General Public License as published by the Free -# Software Foundation; either version 2 of the License, or (at your option) any -# later version. +# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. # -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more -# details. -# -# You should have received a copy of the GNU Library General Public License -# along with this program; if not, write to the Free Software Foundation, Inc., -# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# Derived in part from the Linux-8086 C library, the GNU C Library, and several -# other sundry sources. Files within this library are copyright by their -# respective copyright holders. - -#-------------------------------------------------------- -# -#There are a number of configurable options in "Config" -# -#-------------------------------------------------------- TOPDIR=../ -include $(TOPDIR)Rules.mak - -DIRS = misc pwd_grp stdio string termios inet signal stdlib sysdeps unistd - -# Check if the target architecture has a version script for -# libc, and if so, include it when linking. -VERSION_SCRIPT:=${shell if [ -f sysdeps/linux/$(TARGET_ARCH)/libc.map ] ; then \ - echo "--version-script sysdeps/linux/$(TARGET_ARCH)/libc.map"; fi} - -# we have SHARED_MAJORNAME=libc.so.$(MAJOR_VERSION) defined in Rules.mak -LIB_NAME := libc -AR_LIB_NAME := $(TOPDIR)lib/$(LIB_NAME).a -SO_LIB_NAME = $(TOPDIR)lib/$(LIB_NAME).so -SO_FULL_NAME = libuClibc-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so - -ifeq ($(HAVE_SHARED),y) -all: $(SO_LIB_NAME) -else -all: $(AR_LIB_NAME) -endif - -# Some functions are duplicated across subdirs, and when you pass $(AR) -# the same object file more than once, it'll add it to the archive multiple -# times (boo!). So what we do here is: -# - import all the objects (thus we may have dupes) -# - delete all the dupes -# - re-import certain objects based upon preference -# - the sysdeps dir should override all other symbols for example -# We need to use shell globbing with obj.* because if we use make's wildcard, -# the wildcard will be evaluated when `make` is run instead of when the make -# target is evaluated. That means if you run `rm obj.* ; make`, the wildcard -# will evaluate to no files :(. -shared_$(LIB_NAME).a: subdirs - $(RM) $@ - objs=`cat obj.*` ; \ - $(AR) $(ARFLAGS) $@ $$objs && \ - $(AR) dN 2 $@ $$objs && \ - $(AR) dN 2 $@ $$objs - @for objfile in obj.signal \ - obj.string.generic obj.string.$(TARGET_ARCH) obj.string \ - obj.sysdeps.common obj.sysdeps.$(TARGET_ARCH) ; do \ - if [ -e $$objfile ] ; then \ - if [ "$(MAKE_IS_SILENT)" = "n" ] ; then \ - echo $(AR) $(ARFLAGS) $@ $$objfile ; \ - fi ; \ - objs=`cat $$objfile` ; \ - fi ; \ - $(AR) $(ARFLAGS) $@ $$objs || exit 1 ; \ - done - -$(AR_LIB_NAME): shared_$(LIB_NAME).a - $(INSTALL) -d $(TOPDIR)lib - $(RM) $@ - cp $< $@ - $(AR) $(ARFLAGS) $@ misc/internals/static.o `cat nonshared_obj.*` - -$(SO_LIB_NAME): $(AR_LIB_NAME) - $(RM) $(TOPDIR)lib/$(SO_FULL_NAME) $(TOPDIR)lib/$(SHARED_MAJORNAME) $@ - $(LD) $(LDFLAGS) $(VERSION_SCRIPT) -soname=$(SHARED_MAJORNAME) \ - -o $(TOPDIR)lib/$(SO_FULL_NAME) --whole-archive shared_$(LIB_NAME).a \ - --no-whole-archive $(TOPDIR)libc/misc/internals/interp.o \ - -init __uClibc_init $(TOPDIR)lib/$(UCLIBC_LDSO) $(LDADD_LIBFLOAT) $(LIBGCC) - $(LN) -sf $(SO_FULL_NAME) $(TOPDIR)lib/$(SHARED_MAJORNAME) - $(RM) $(TOPDIR)lib/$(NONSHARED_LIBNAME) - $(AR) $(ARFLAGS) $(TOPDIR)lib/$(NONSHARED_LIBNAME) `cat nonshared_obj.*` - echo "/* GNU ld script" > $@ - echo " * Use the shared library, but some functions are only in" >> $@ - echo " * the static library, so try that secondarily. */" >> $@ -ifeq ($(COMPAT_ATEXIT),y) - echo "GROUP ( $(NONSHARED_LIBNAME) $(SHARED_MAJORNAME) $(ASNEEDED) )" >> $@ -else - echo "GROUP ( $(SHARED_MAJORNAME) $(NONSHARED_LIBNAME) $(ASNEEDED) )" >> $@ -endif - -tags: - ctags -R - -clean: subdirs_clean - $(RM) *.a obj.* nonshared_obj.* - -subdirs: $(patsubst %, _dir_%, $(DIRS)) -subdirs_clean: $(patsubst %, _dirclean_%, $(DIRS)) - -$(patsubst %, _dir_%, $(DIRS)) : dummy - $(MAKE) -C $(patsubst _dir_%, %, $@) - -$(patsubst %, _dirclean_%, $(DIRS)) : dummy - $(MAKE) -C $(patsubst _dirclean_%, %, $@) clean -.PHONY: dummy subdirs +top_srcdir=$(TOPDIR) +top_builddir=../ +include $(top_builddir)Rules.mak +all: libs +include Makefile.in +include $(top_srcdir)Makerules diff --git a/libc/inet/Makefile b/libc/inet/Makefile index e5c355d69..41567d9e9 100644 --- a/libc/inet/Makefile +++ b/libc/inet/Makefile @@ -1,97 +1,15 @@ # Makefile for uClibc # -# Copyright (C) 2000 by Lineo, inc. -# Copyright (C) 2000,2001 Erik Andersen +# Copyright (C) 2000-2005 Erik Andersen # -# This program is free software; you can redistribute it and/or modify it under -# the terms of the GNU Library General Public License as published by the Free -# Software Foundation; either version 2 of the License, or (at your option) any -# later version. +# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. # -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more -# details. -# -# You should have received a copy of the GNU Library General Public License -# along with this program; if not, write to the Free Software Foundation, Inc., -# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# Derived in part from the Linux-8086 C library, the GNU C Library, and several -# other sundry sources. Files within this library are copyright by their -# respective copyright holders. TOPDIR=../../ -include $(TOPDIR)Rules.mak - -ifeq ($(UCLIBC_HAS_THREADS),y) -CFLAGS += $(PTINC) -endif - -ALL_SUBDIRS = rpc - -DIRS = -ifeq ($(UCLIBC_HAS_RPC),y) -DIRS += rpc -endif - -MSRC := addr.c -MOBJ := inet_aton.o inet_addr.o inet_ntoa.o inet_makeaddr.o inet_lnaof.o \ - inet_netof.o - -MSRC2 := resolv.c -MOBJ2 := encodeh.o decodeh.o encoded.o decoded.o lengthd.o encodeq.o \ - decodeq.o lengthq.o encodea.o decodea.o encodep.o decodep.o \ - formquery.o dnslookup.o resolveaddress.o opennameservers.o \ - closenameservers.o resolvename.o gethostbyname.o res_init.o \ - res_query.o gethostbyaddr.o read_etc_hosts_r.o get_hosts_byname_r.o \ - get_hosts_byaddr_r.o gethostbyname2.o getnameinfo.o gethostent.o \ - gethostbyname_r.o gethostbyname2_r.o gethostbyaddr_r.o \ - res_comp.o ns_name.o - -MSRC3 := socketcalls.c -MOBJ3 := accept.o bind.o connect.o getpeername.o getsockname.o getsockopt.o \ - listen.o recv.o recvfrom.o recvmsg.o send.o sendmsg.o sendto.o \ - setsockopt.o shutdown.o socket.o socketpair.o - -CSRC := getservice.c getproto.c hostid.c getnetent.c getnetbynm.c getnetbyad.c \ - inet_net.c ntop.c herror.c if_nametoindex.c gai_strerror.c getaddrinfo.c \ - in6_addr.c ether_addr.c ntohl.c - -COBJ := $(patsubst %.c,%.o, $(CSRC)) - -OBJS := $(MOBJ) $(MOBJ2) $(MOBJ3) $(COBJ) - -OBJ_LIST := ../obj.inet - -all: $(OBJ_LIST) subdirs - -$(OBJ_LIST): $(OBJS) - $(STRIPTOOL) -x -R .note -R .comment $^ - echo $(patsubst %, inet/%, $^) > $@ - -$(MOBJ): $(MSRC) - $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o - -$(MOBJ2): $(MSRC2) - $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o - -$(MOBJ3): $(MSRC3) - $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o - -$(COBJ): %.o : %.c - $(CC) $(CFLAGS) -c $< -o $@ - -clean: subdirs_clean - $(RM) *.o *~ core - -subdirs: $(patsubst %, _dir_%, $(DIRS)) -subdirs_clean: $(patsubst %, _dirclean_%, $(ALL_SUBDIRS)) - -$(patsubst %, _dir_%, $(DIRS)) : dummy - $(MAKE) -C $(patsubst _dir_%, %, $@) - -$(patsubst %, _dirclean_%, $(ALL_SUBDIRS)) : dummy - $(MAKE) -C $(patsubst _dirclean_%, %, $@) clean -.PHONY: dummy +top_srcdir=$(TOPDIR) +top_builddir=../../ +all: objs +include $(top_builddir)Rules.mak +include Makefile.in +include $(top_srcdir)Makerules diff --git a/libc/inet/rpc/Makefile b/libc/inet/rpc/Makefile index 474ed6484..493484b27 100644 --- a/libc/inet/rpc/Makefile +++ b/libc/inet/rpc/Makefile @@ -1,68 +1,15 @@ # Makefile for uClibc # -# Copyright (C) 2000 by Lineo, inc. -# Copyright (C) 2000,2001,2002 Erik Andersen +# Copyright (C) 2000-2005 Erik Andersen # -# This program is free software; you can redistribute it and/or modify it under -# the terms of the GNU Library General Public License as published by the Free -# Software Foundation; either version 2 of the License, or (at your option) any -# later version. +# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. # -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more -# details. -# -# You should have received a copy of the GNU Library General Public License -# along with this program; if not, write to the Free Software Foundation, Inc., -# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# Derived in part from the Linux-8086 C library, the GNU C Library, and several -# other sundry sources. Files within this library are copyright by their -# respective copyright holders. TOPDIR=../../../ -include $(TOPDIR)Rules.mak - -ifeq ($(UCLIBC_HAS_THREADS),y) -CFLAGS += $(PTINC) -endif - -ifeq ($(UCLIBC_HAS_FULL_RPC),y) -CSRC := auth_none.c auth_unix.c authunix_prot.c bindresvport.c \ - clnt_generic.c clnt_perror.c clnt_raw.c clnt_simple.c clnt_tcp.c \ - clnt_udp.c rpc_dtablesize.c get_myaddress.c getrpcent.c getrpcport.c \ - pmap_clnt.c pmap_getmaps.c pmap_getport.c pmap_prot.c \ - pmap_prot2.c pmap_rmt.c rpc_prot.c rpc_commondata.c rpc_callmsg.c \ - svc.c svc_auth.c svc_auth_unix.c svc_raw.c svc_run.c svc_simple.c \ - svc_tcp.c svc_udp.c xdr.c xdr_array.c xdr_float.c xdr_mem.c \ - xdr_rec.c xdr_reference.c xdr_stdio.c \ - rtime.c clnt_unix.c svc_unix.c create_xid.c xdr_intXX_t.c rcmd.c \ - rexec.c sa_len.c ruserpass.c rpc_thread.c -else -# For now, only compile the stuff needed to do an NFS mount.... -CSRC := create_xid.c pmap_clnt.c pmap_getmaps.c pmap_getport.c \ - pmap_prot.c pmap_prot2.c clnt_simple.c clnt_perror.c \ - clnt_tcp.c clnt_udp.c bindresvport.c authunix_prot.c \ - auth_none.c auth_unix.c xdr.c xdr_array.c xdr_rec.c \ - xdr_reference.c xdr_mem.c svc.c svc_auth.c svc_auth_unix.c \ - rpc_callmsg.c rpc_prot.c rpc_dtablesize.c rpc_commondata.c \ - rpc_thread.c rcmd.c rexec.c sa_len.c ruserpass.c rtime.c \ - getrpcent.c -endif - -OBJS := $(patsubst %.c,%.o, $(CSRC)) - -OBJ_LIST := ../../obj.inet.rpc - -all: $(OBJ_LIST) - -$(OBJ_LIST): $(OBJS) - $(STRIPTOOL) -x -R .note -R .comment $^ - echo $(patsubst %, inet/rpc/%, $^) > $@ - -$(OBJS): %.o : %.c - $(CC) $(CFLAGS) -c $< -o $@ -clean: - $(RM) *.o *~ core +top_srcdir=$(TOPDIR) +top_builddir=../../../ +all: objs +include $(top_builddir)Rules.mak +include Makefile.in +include $(top_srcdir)Makerules diff --git a/libc/misc/Makefile b/libc/misc/Makefile index e512467e8..41567d9e9 100644 --- a/libc/misc/Makefile +++ b/libc/misc/Makefile @@ -1,69 +1,15 @@ # Makefile for uClibc # -# Copyright (C) 2000 by Lineo, inc. -# Copyright (C) 2000,2001 Erik Andersen +# Copyright (C) 2000-2005 Erik Andersen # -# This program is free software; you can redistribute it and/or modify it under -# the terms of the GNU Library General Public License as published by the Free -# Software Foundation; either version 2 of the License, or (at your option) any -# later version. +# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. # -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more -# details. -# -# You should have received a copy of the GNU Library General Public License -# along with this program; if not, write to the Free Software Foundation, Inc., -# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# Derived in part from the Linux-8086 C library, the GNU C Library, and several -# other sundry sources. Files within this library are copyright by their -# respective copyright holders. TOPDIR=../../ -include $(TOPDIR)Rules.mak - - -DIRS = assert ctype dirent file fnmatch internals \ - mntent syslog time utmp sysvipc statfs \ - error ttyent gnu search locale -ifeq ($(UCLIBC_HAS_REGEX),y) -DIRS += regex -endif -ifeq ($(UCLIBC_HAS_WORDEXP),y) -DIRS += wordexp -endif -ifeq ($(UCLIBC_HAS_THREADS),y) -DIRS += pthread -endif -ifeq ($(UCLIBC_HAS_WCHAR),y) -DIRS += wctype wchar -endif -ifeq ($(UCLIBC_HAS_GETTEXT_AWARENESS),y) -DIRS += intl -endif -ifeq ($(UCLIBC_HAS_FTW),y) -DIRS += ftw -endif -ifeq ($(UCLIBC_HAS_GLOB),y) -DIRS += glob -endif - -all: subdirs - -tags: - ctags -R - -clean: subdirs_clean - -subdirs: $(patsubst %, _dir_%, $(DIRS)) -subdirs_clean: $(patsubst %, _dirclean_%, $(DIRS)) - -$(patsubst %, _dir_%, $(DIRS)) : dummy - $(MAKE) -C $(patsubst _dir_%, %, $@) - -$(patsubst %, _dirclean_%, $(DIRS)) : dummy - $(MAKE) -C $(patsubst _dirclean_%, %, $@) clean -.PHONY: dummy +top_srcdir=$(TOPDIR) +top_builddir=../../ +all: objs +include $(top_builddir)Rules.mak +include Makefile.in +include $(top_srcdir)Makerules diff --git a/libc/misc/assert/Makefile b/libc/misc/assert/Makefile index cfc0b7dcc..493484b27 100644 --- a/libc/misc/assert/Makefile +++ b/libc/misc/assert/Makefile @@ -1,42 +1,15 @@ # Makefile for uClibc # -# Copyright (C) 2000 by Lineo, inc. -# Copyright (C) 2000,2001 Erik Andersen +# Copyright (C) 2000-2005 Erik Andersen # -# This program is free software; you can redistribute it and/or modify it under -# the terms of the GNU Library General Public License as published by the Free -# Software Foundation; either version 2 of the License, or (at your option) any -# later version. +# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. # -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more -# details. -# -# You should have received a copy of the GNU Library General Public License -# along with this program; if not, write to the Free Software Foundation, Inc., -# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# Derived in part from the Linux-8086 C library, the GNU C Library, and several -# other sundry sources. Files within this library are copyright by their -# respective copyright holders. TOPDIR=../../../ -include $(TOPDIR)Rules.mak - -CSRC := __assert.c -OBJS := $(patsubst %.c,%.o, $(CSRC)) - -OBJ_LIST := ../../obj.misc.assert - -all: $(OBJ_LIST) - -$(OBJ_LIST): $(OBJS) - $(STRIPTOOL) -x -R .note -R .comment $^ - echo $(patsubst %, misc/assert/%, $^) > $@ - -$(OBJS): %.o : %.c - $(CC) $(CFLAGS) -c $< -o $@ -clean: - $(RM) *.o *~ core +top_srcdir=$(TOPDIR) +top_builddir=../../../ +all: objs +include $(top_builddir)Rules.mak +include Makefile.in +include $(top_srcdir)Makerules diff --git a/libc/misc/ctype/Makefile b/libc/misc/ctype/Makefile index 4dc944bfa..493484b27 100644 --- a/libc/misc/ctype/Makefile +++ b/libc/misc/ctype/Makefile @@ -1,65 +1,15 @@ # Makefile for uClibc # -# Copyright (C) 2000 by Lineo, inc. -# Copyright (C) 2000,2001 Erik Andersen +# Copyright (C) 2000-2005 Erik Andersen # -# This program is free software; you can redistribute it and/or modify it under -# the terms of the GNU Library General Public License as published by the Free -# Software Foundation; either version 2 of the License, or (at your option) any -# later version. +# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. # -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more -# details. -# -# You should have received a copy of the GNU Library General Public License -# along with this program; if not, write to the Free Software Foundation, Inc., -# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# Derived in part from the Linux-8086 C library, the GNU C Library, and several -# other sundry sources. Files within this library are copyright by their -# respective copyright holders. TOPDIR=../../../ -include $(TOPDIR)Rules.mak - -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 - -OBJS = $(MOBJ) - -ifeq ($(UCLIBC_HAS_XLOCALE),y) - OBJS += $(MOBJx) -endif - -OBJ_LIST := ../../obj.misc.ctype - -all: $(OBJ_LIST) - -$(OBJ_LIST): $(OBJS) - $(STRIPTOOL) -x -R .note -R .comment $^ - echo $(patsubst %, misc/ctype/%, $^) > $@ - -$(MOBJ): $(MSRC) - $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o - -$(MOBJx): $(MSRC) - $(CC) $(CFLAGS) -DL_$* -D__UCLIBC_DO_XLOCALE $< -c -o $*.o -clean: - $(RM) *.o *~ core +top_srcdir=$(TOPDIR) +top_builddir=../../../ +all: objs +include $(top_builddir)Rules.mak +include Makefile.in +include $(top_srcdir)Makerules diff --git a/libc/misc/dirent/Makefile b/libc/misc/dirent/Makefile index 19ab29fb0..493484b27 100644 --- a/libc/misc/dirent/Makefile +++ b/libc/misc/dirent/Makefile @@ -1,45 +1,15 @@ # Makefile for uClibc # -# Copyright (C) 2001 by Lineo, inc. -# Copyright (C) 2000,2001 Erik Andersen +# Copyright (C) 2000-2005 Erik Andersen # -# This program is free software; you can redistribute it and/or modify it under -# the terms of the GNU Library General Public License as published by the Free -# Software Foundation; either version 2 of the License, or (at your option) any -# later version. +# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. # -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more -# details. -# -# You should have received a copy of the GNU Library General Public License -# along with this program; if not, write to the Free Software Foundation, Inc., -# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# Derived in part from the Linux-8086 C library, the GNU C Library, and several -# other sundry sources. Files within this library are copyright by their -# respective copyright holders. TOPDIR=../../../ -include $(TOPDIR)Rules.mak - -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 - -OBJS := $(patsubst %.c,%.o, $(CSRC)) - -OBJ_LIST := ../../obj.misc.dirent - -all: $(OBJ_LIST) - -$(OBJ_LIST): $(OBJS) - $(STRIPTOOL) -x -R .note -R .comment $^ - echo $(patsubst %, misc/dirent/%, $^) > $@ - -$(OBJS): %.o : %.c - $(CC) $(CFLAGS) -c $< -o $@ -clean: - $(RM) *.o *~ core +top_srcdir=$(TOPDIR) +top_builddir=../../../ +all: objs +include $(top_builddir)Rules.mak +include Makefile.in +include $(top_srcdir)Makerules diff --git a/libc/misc/error/Makefile b/libc/misc/error/Makefile index 05f6ca670..493484b27 100644 --- a/libc/misc/error/Makefile +++ b/libc/misc/error/Makefile @@ -1,37 +1,15 @@ # Makefile for uClibc # -# Copyright (C) 2002 Erik Andersen +# Copyright (C) 2000-2005 Erik Andersen # -# This program is free software; you can redistribute it and/or modify it under -# the terms of the GNU Library General Public License as published by the Free -# Software Foundation; either version 2 of the License, or (at your option) any -# later version. +# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. # -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more -# details. -# -# You should have received a copy of the GNU Library General Public License -# along with this program; if not, write to the Free Software Foundation, Inc., -# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA TOPDIR=../../../ -include $(TOPDIR)Rules.mak - -CSRC := error.c err.c -OBJS := $(patsubst %.c,%.o, $(CSRC)) - -OBJ_LIST := ../../obj.misc.error - -all: $(OBJ_LIST) - -$(OBJ_LIST): $(OBJS) - $(STRIPTOOL) -x -R .note -R .comment $^ - echo $(patsubst %, misc/error/%, $^) > $@ - -$(OBJS): %.o : %.c - $(CC) $(CFLAGS) -c $< -o $@ -clean: - $(RM) *.o *~ core +top_srcdir=$(TOPDIR) +top_builddir=../../../ +all: objs +include $(top_builddir)Rules.mak +include Makefile.in +include $(top_srcdir)Makerules diff --git a/libc/misc/file/Makefile b/libc/misc/file/Makefile index 90aecf6b7..493484b27 100644 --- a/libc/misc/file/Makefile +++ b/libc/misc/file/Makefile @@ -1,46 +1,15 @@ # Makefile for uClibc # -# Copyright (C) 2000 by Lineo, inc. -# Copyright (C) 2000,2001 Erik Andersen +# Copyright (C) 2000-2005 Erik Andersen # -# This program is free software; you can redistribute it and/or modify it under -# the terms of the GNU Library General Public License as published by the Free -# Software Foundation; either version 2 of the License, or (at your option) any -# later version. +# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. # -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more -# details. -# -# You should have received a copy of the GNU Library General Public License -# along with this program; if not, write to the Free Software Foundation, Inc., -# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# Derived in part from the Linux-8086 C library, the GNU C Library, and several -# other sundry sources. Files within this library are copyright by their -# respective copyright holders. TOPDIR=../../../ -include $(TOPDIR)Rules.mak - -CSRC = lockf.c -ifeq ($(UCLIBC_HAS_LFS),y) -CSRC += lockf64.c -endif - -OBJS=$(patsubst %.c,%.o, $(CSRC)) - -OBJ_LIST := ../../obj.misc.file - -all: $(OBJ_LIST) - -$(OBJ_LIST): $(OBJS) - $(STRIPTOOL) -x -R .note -R .comment $^ - echo $(patsubst %, misc/file/%, $^) > $@ - -$(OBJS): %.o : %.c - $(CC) $(CFLAGS) -c $< -o $@ -clean: - $(RM) *.o *~ core +top_srcdir=$(TOPDIR) +top_builddir=../../../ +all: objs +include $(top_builddir)Rules.mak +include Makefile.in +include $(top_srcdir)Makerules diff --git a/libc/misc/fnmatch/Makefile b/libc/misc/fnmatch/Makefile index 0c2969dac..493484b27 100644 --- a/libc/misc/fnmatch/Makefile +++ b/libc/misc/fnmatch/Makefile @@ -1,42 +1,15 @@ # Makefile for uClibc # -# Copyright (C) 2000 by Lineo, inc. -# Copyright (C) 2000,2001 Erik Andersen +# Copyright (C) 2000-2005 Erik Andersen # -# This program is free software; you can redistribute it and/or modify it under -# the terms of the GNU Library General Public License as published by the Free -# Software Foundation; either version 2 of the License, or (at your option) any -# later version. +# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. # -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more -# details. -# -# You should have received a copy of the GNU Library General Public License -# along with this program; if not, write to the Free Software Foundation, Inc., -# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# Derived in part from the Linux-8086 C library, the GNU C Library, and several -# other sundry sources. Files within this library are copyright by their -# respective copyright holders. TOPDIR=../../../ -include $(TOPDIR)Rules.mak - -CSRC := fnmatch.c -OBJS := $(patsubst %.c,%.o, $(CSRC)) - -OBJ_LIST := ../../obj.misc.fnmatch - -all: $(OBJ_LIST) - -$(OBJ_LIST): $(OBJS) - $(STRIPTOOL) -x -R .note -R .comment $^ - echo $(patsubst %, misc/fnmatch/%, $^) > $@ - -$(OBJS): %.o : %.c - $(CC) $(CFLAGS) -c $< -o $@ -clean: - $(RM) *.o *~ core +top_srcdir=$(TOPDIR) +top_builddir=../../../ +all: objs +include $(top_builddir)Rules.mak +include Makefile.in +include $(top_srcdir)Makerules diff --git a/libc/misc/ftw/Makefile b/libc/misc/ftw/Makefile index c6b4ccc5a..493484b27 100644 --- a/libc/misc/ftw/Makefile +++ b/libc/misc/ftw/Makefile @@ -1,39 +1,15 @@ # Makefile for uClibc # -# Copyright (C) 2000-2003 Erik Andersen +# Copyright (C) 2000-2005 Erik Andersen # -# This program is free software; you can redistribute it and/or modify it under -# the terms of the GNU Library General Public License as published by the Free -# Software Foundation; either version 2 of the License, or (at your option) any -# later version. +# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. # -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more -# details. -# -# You should have received a copy of the GNU Library General Public License -# along with this program; if not, write to the Free Software Foundation, Inc., -# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA TOPDIR=../../../ -include $(TOPDIR)Rules.mak - -MSRC := ftw.c -MOBJ := ftw.o ftw64.o - -OBJS := $(MOBJ) - -OBJ_LIST := ../../obj.misc.ftw - -all: $(OBJ_LIST) - -$(OBJ_LIST): $(OBJS) - $(STRIPTOOL) -x -R .note -R .comment $^ - echo $(patsubst %, misc/ftw/%, $^) > $@ - -$(MOBJ): $(MSRC) - $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o -clean: - $(RM) *.o *~ core +top_srcdir=$(TOPDIR) +top_builddir=../../../ +all: objs +include $(top_builddir)Rules.mak +include Makefile.in +include $(top_srcdir)Makerules diff --git a/libc/misc/glob/Makefile b/libc/misc/glob/Makefile index 0933d0516..493484b27 100644 --- a/libc/misc/glob/Makefile +++ b/libc/misc/glob/Makefile @@ -1,44 +1,15 @@ # Makefile for uClibc # -# Copyright (C) 2000 by Lineo, inc. -# Copyright (C) 2000,2001 Erik Andersen +# Copyright (C) 2000-2005 Erik Andersen # -# This program is free software; you can redistribute it and/or modify it under -# the terms of the GNU Library General Public License as published by the Free -# Software Foundation; either version 2 of the License, or (at your option) any -# later version. +# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. # -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more -# details. -# -# You should have received a copy of the GNU Library General Public License -# along with this program; if not, write to the Free Software Foundation, Inc., -# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# Derived in part from the Linux-8086 C library, the GNU C Library, and several -# other sundry sources. Files within this library are copyright by their -# respective copyright holders. TOPDIR=../../../ -include $(TOPDIR)Rules.mak - -CSRC := glob.c glob64.c glob-hooks.c -OBJS := $(patsubst %.c,%.o, $(CSRC)) - -OBJ_LIST := ../../obj.misc.glob - -all: $(OBJ_LIST) - -$(OBJ_LIST): $(OBJS) - $(STRIPTOOL) -x -R .note -R .comment $^ - echo $(patsubst %, misc/glob/%, $^) > $@ - -$(OBJS): %.o : %.c - $(CC) $(CFLAGS) -c $< -o $@ - -glob64.o: glob64.c glob.c -clean: - $(RM) *.o *~ core +top_srcdir=$(TOPDIR) +top_builddir=../../../ +all: objs +include $(top_builddir)Rules.mak +include Makefile.in +include $(top_srcdir)Makerules diff --git a/libc/misc/gnu/Makefile b/libc/misc/gnu/Makefile index 4bc62d37e..493484b27 100644 --- a/libc/misc/gnu/Makefile +++ b/libc/misc/gnu/Makefile @@ -1,42 +1,15 @@ # Makefile for uClibc # -# Copyright (C) 2000 by Lineo, inc. -# Copyright (C) 2000,2001 Erik Andersen +# Copyright (C) 2000-2005 Erik Andersen # -# This program is free software; you can redistribute it and/or modify it under -# the terms of the GNU Library General Public License as published by the Free -# Software Foundation; either version 2 of the License, or (at your option) any -# later version. +# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. # -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more -# details. -# -# You should have received a copy of the GNU Library General Public License -# along with this program; if not, write to the Free Software Foundation, Inc., -# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# Derived in part from the Linux-8086 C library, the GNU C Library, and several -# other sundry sources. Files within this library are copyright by their -# respective copyright holders. TOPDIR=../../../ -include $(TOPDIR)Rules.mak - -CSRC := obstack.c -OBJS := $(patsubst %.c,%.o, $(CSRC)) - -OBJ_LIST := ../../obj.misc.gnu - -all: $(OBJ_LIST) - -$(OBJ_LIST): $(OBJS) - $(STRIPTOOL) -x -R .note -R .comment $^ - echo $(patsubst %, misc/gnu/%, $^) > $@ - -$(OBJS): %.o : %.c - $(CC) $(CFLAGS) -c $< -o $@ -clean: - $(RM) *.o *~ core +top_srcdir=$(TOPDIR) +top_builddir=../../../ +all: objs +include $(top_builddir)Rules.mak +include Makefile.in +include $(top_srcdir)Makerules diff --git a/libc/misc/internals/Makefile b/libc/misc/internals/Makefile index 52fd45a44..493484b27 100644 --- a/libc/misc/internals/Makefile +++ b/libc/misc/internals/Makefile @@ -1,58 +1,15 @@ # Makefile for uClibc # -# Copyright (C) 2000 by Lineo, inc. -# Copyright (C) 2000,2001 Erik Andersen +# Copyright (C) 2000-2005 Erik Andersen # -# This program is free software; you can redistribute it and/or modify it under -# the terms of the GNU Library General Public License as published by the Free -# Software Foundation; either version 2 of the License, or (at your option) any -# later version. +# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. # -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more -# details. -# -# You should have received a copy of the GNU Library General Public License -# along with this program; if not, write to the Free Software Foundation, Inc., -# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# Derived in part from the Linux-8086 C library, the GNU C Library, and several -# other sundry sources. Files within this library are copyright by their -# respective copyright holders. TOPDIR=../../../ -include $(TOPDIR)Rules.mak - -ifeq ($(UCLIBC_HAS_THREADS),y) -CFLAGS += $(PTINC) -endif - -CSRC := __uClibc_main.c tempname.c errno.c __errno_location.c __h_errno_location.c -OBJS := $(patsubst %.c,%.o, $(CSRC)) - -ifeq ($(UCLIBC_HAS_SSP),y) -__uClibc_main.o: CFLAGS += $(SSP_DISABLE_FLAGS) -endif - -OBJ_LIST := ../../obj.misc.internals - -all: $(OBJ_LIST) interp.o static.o - -$(OBJ_LIST): $(OBJS) - echo $(patsubst %, misc/internals/%, $^) > $@ - -interp.c: Makefile - echo "/* Force shared libraries to know about the correct library loader */" > interp.c - echo "#include " >> interp.c - echo "#ifdef __HAVE_ELF__" >> interp.c - echo "const char __dl_ldso__[] __attribute__ ((section " \ - "(\".interp\"))) =\""$(SHARED_LIB_LOADER_PREFIX)/$(UCLIBC_LDSO)"\";" >> interp.c - echo "#endif" >> interp.c - -$(OBJS) interp.o static.o: %.o : %.c - $(CC) $(CFLAGS) -c $< -o $@ - $(STRIPTOOL) -x -R .note -R .comment $*.o -clean: - $(RM) *.o interp.c *~ core +top_srcdir=$(TOPDIR) +top_builddir=../../../ +all: objs +include $(top_builddir)Rules.mak +include Makefile.in +include $(top_srcdir)Makerules diff --git a/libc/misc/intl/Makefile b/libc/misc/intl/Makefile index 4cedc491e..493484b27 100644 --- a/libc/misc/intl/Makefile +++ b/libc/misc/intl/Makefile @@ -1,48 +1,15 @@ # Makefile for uClibc # -# Copyright (C) 2000 by Lineo, inc. -# Copyright (C) 2000,2001 Erik Andersen +# Copyright (C) 2000-2005 Erik Andersen # -# This program is free software; you can redistribute it and/or modify it under -# the terms of the GNU Library General Public License as published by the Free -# Software Foundation; either version 2 of the License, or (at your option) any -# later version. +# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. # -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more -# details. -# -# You should have received a copy of the GNU Library General Public License -# along with this program; if not, write to the Free Software Foundation, Inc., -# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# Derived in part from the Linux-8086 C library, the GNU C Library, and several -# other sundry sources. Files within this library are copyright by their -# respective copyright holders. TOPDIR=../../../ -include $(TOPDIR)Rules.mak - -MSRC := intl.c -MOBJ := __uClibc_dgettext.o __uClibc_dcgettext.o \ - __uClibc_textdomain.o __uClibc_bindtextdomain.o # for libstd++ - -OBJS := $(MOBJ) - -OBJ_LIST := ../../obj.misc.intl - -all: $(OBJ_LIST) - -$(OBJ_LIST): $(OBJS) - $(STRIPTOOL) -x -R .note -R .comment $^ - echo $(patsubst %, misc/intl/%, $^) > $@ - -$(MOBJ): $(MSRC) - $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o - -$(OBJS): %.o : %.c - $(CC) $(CFLAGS) -c $< -o $@ -clean: - $(RM) *.o *~ core +top_srcdir=$(TOPDIR) +top_builddir=../../../ +all: objs +include $(top_builddir)Rules.mak +include Makefile.in +include $(top_srcdir)Makerules diff --git a/libc/misc/locale/Makefile b/libc/misc/locale/Makefile index 9ad80ff5a..493484b27 100644 --- a/libc/misc/locale/Makefile +++ b/libc/misc/locale/Makefile @@ -1,66 +1,15 @@ # Makefile for uClibc # -# Copyright (C) 2000 by Lineo, inc. -# Copyright (C) 2000-2002 Erik Andersen +# Copyright (C) 2000-2005 Erik Andersen # -# This program is free software; you can redistribute it and/or modify it under -# the terms of the GNU Library General Public License as published by the Free -# Software Foundation; either version 2 of the License, or (at your option) any -# later version. +# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. # -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more -# details. -# -# You should have received a copy of the GNU Library General Public License -# along with this program; if not, write to the Free Software Foundation, Inc., -# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# Derived in part from the Linux-8086 C library, the GNU C Library, and several -# other sundry sources. Files within this library are copyright by their -# respective copyright holders. TOPDIR=../../../ -include $(TOPDIR)Rules.mak - -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 - -OBJS := $(MOBJ) $(MOBJx) $(DATA) - -OBJ_LIST := ../../obj.misc.locale - -all: $(OBJ_LIST) - -$(OBJ_LIST): $(OBJS) - $(STRIPTOOL) -x -R .note -R .comment $^ - echo $(patsubst %, misc/locale/%, $^) > $@ - -$(MOBJ): $(MSRC) - $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o - -$(MOBJx): $(MSRC) - $(CC) $(CFLAGS) -DL_$* -D__UCLIBC_DO_XLOCALE $< -c -o $*.o - -locale_data.o: ../../../extra/locale/locale_data.c - $(CC) $(CFLAGS) -c -D__WCHAR_ENABLED -I$(dir $<) $< -o $@ - -clean: - $(RM) *.o *~ core -.PHONY: data +top_srcdir=$(TOPDIR) +top_builddir=../../../ +all: objs +include $(top_builddir)Rules.mak +include Makefile.in +include $(top_srcdir)Makerules diff --git a/libc/misc/mntent/Makefile b/libc/misc/mntent/Makefile index 871e3e61e..493484b27 100644 --- a/libc/misc/mntent/Makefile +++ b/libc/misc/mntent/Makefile @@ -1,42 +1,15 @@ # Makefile for uClibc # -# Copyright (C) 2000 by Lineo, inc. -# Copyright (C) 2000,2001 Erik Andersen +# Copyright (C) 2000-2005 Erik Andersen # -# This program is free software; you can redistribute it and/or modify it under -# the terms of the GNU Library General Public License as published by the Free -# Software Foundation; either version 2 of the License, or (at your option) any -# later version. +# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. # -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more -# details. -# -# You should have received a copy of the GNU Library General Public License -# along with this program; if not, write to the Free Software Foundation, Inc., -# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# Derived in part from the Linux-8086 C library, the GNU C Library, and several -# other sundry sources. Files within this library are copyright by their -# respective copyright holders. TOPDIR=../../../ -include $(TOPDIR)Rules.mak - -CSRC := mntent.c -OBJS := $(patsubst %.c,%.o, $(CSRC)) - -OBJ_LIST := ../../obj.misc.mntent - -all: $(OBJ_LIST) - -$(OBJ_LIST): $(OBJS) - $(STRIPTOOL) -x -R .note -R .comment $^ - echo $(patsubst %, misc/mntent/%, $^) > $@ - -$(OBJS): %.o : %.c - $(CC) $(CFLAGS) -c $< -o $@ -clean: - $(RM) *.o *~ core +top_srcdir=$(TOPDIR) +top_builddir=../../../ +all: objs +include $(top_builddir)Rules.mak +include Makefile.in +include $(top_srcdir)Makerules diff --git a/libc/misc/pthread/Makefile b/libc/misc/pthread/Makefile index 1230e44fe..493484b27 100644 --- a/libc/misc/pthread/Makefile +++ b/libc/misc/pthread/Makefile @@ -1,39 +1,15 @@ # Makefile for uClibc # -# Copyright (C) 2002 Erik Andersen +# Copyright (C) 2000-2005 Erik Andersen # -# This program is free software; you can redistribute it and/or modify it under -# the terms of the GNU Library General Public License as published by the Free -# Software Foundation; either version 2 of the License, or (at your option) any -# later version. +# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. # -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more -# details. -# -# You should have received a copy of the GNU Library General Public License -# along with this program; if not, write to the Free Software Foundation, Inc., -# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA TOPDIR=../../../ -include $(TOPDIR)Rules.mak - -CFLAGS += $(PTINC) - -CSRC := no-tsd.c weaks.c -OBJS := $(patsubst %.c,%.o, $(CSRC)) - -OBJ_LIST := ../../obj.misc.pthread - -all: $(OBJ_LIST) - -$(OBJ_LIST): $(OBJS) - $(STRIPTOOL) -x -R .note -R .comment $^ - echo $(patsubst %, misc/pthread/%, $^) > $@ - -$(OBJS): %.o : %.c - $(CC) $(CFLAGS) -c $< -o $@ -clean: - $(RM) *.o *~ core +top_srcdir=$(TOPDIR) +top_builddir=../../../ +all: objs +include $(top_builddir)Rules.mak +include Makefile.in +include $(top_srcdir)Makerules diff --git a/libc/misc/regex/Makefile b/libc/misc/regex/Makefile index 2df62dd44..493484b27 100644 --- a/libc/misc/regex/Makefile +++ b/libc/misc/regex/Makefile @@ -1,42 +1,15 @@ # Makefile for uClibc # -# Copyright (C) 2000 by Lineo, inc. -# Copyright (C) 2000,2001 Erik Andersen +# Copyright (C) 2000-2005 Erik Andersen # -# This program is free software; you can redistribute it and/or modify it under -# the terms of the GNU Library General Public License as published by the Free -# Software Foundation; either version 2 of the License, or (at your option) any -# later version. +# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. # -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more -# details. -# -# You should have received a copy of the GNU Library General Public License -# along with this program; if not, write to the Free Software Foundation, Inc., -# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# Derived in part from the Linux-8086 C library, the GNU C Library, and several -# other sundry sources. Files within this library are copyright by their -# respective copyright holders. TOPDIR=../../../ -include $(TOPDIR)Rules.mak - -CSRC := regex.c -OBJS := $(patsubst %.c,%.o, $(CSRC)) - -OBJ_LIST := ../../obj.misc.regex - -all: $(OBJ_LIST) - -$(OBJ_LIST): $(OBJS) - $(STRIPTOOL) -x -R .note -R .comment $^ - echo $(patsubst %, misc/regex/%, $^) > $@ - -$(OBJS): %.o : %.c - $(CC) $(CFLAGS) -c $< -o $@ -clean: - $(RM) *.o *~ core +top_srcdir=$(TOPDIR) +top_builddir=../../../ +all: objs +include $(top_builddir)Rules.mak +include Makefile.in +include $(top_srcdir)Makerules diff --git a/libc/misc/search/Makefile b/libc/misc/search/Makefile index ce0c1b6b1..493484b27 100644 --- a/libc/misc/search/Makefile +++ b/libc/misc/search/Makefile @@ -1,68 +1,15 @@ # Makefile for uClibc # -# Copyright (C) 2000 by Lineo, inc. -# Copyright (C) 2000,2001 Erik Andersen +# Copyright (C) 2000-2005 Erik Andersen # -# This program is free software; you can redistribute it and/or modify it under -# the terms of the GNU Library General Public License as published by the Free -# Software Foundation; either version 2 of the License, or (at your option) any -# later version. +# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. # -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more -# details. -# -# You should have received a copy of the GNU Library General Public License -# along with this program; if not, write to the Free Software Foundation, Inc., -# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# Derived in part from the Linux-8086 C library, the GNU C Library, and several -# other sundry sources. Files within this library are copyright by their -# respective copyright holders. TOPDIR=../../../ -include $(TOPDIR)Rules.mak - -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 -COBJ := $(patsubst %.c,%.o, $(CSRC)) - -OBJS := $(COBJ) $(MOBJ1) $(MOBJ2) $(MOBJ3) $(MOBJ4) - -OBJ_LIST := ../../obj.misc.search - -all: $(OBJ_LIST) - -$(OBJ_LIST): $(OBJS) - $(STRIPTOOL) -x -R .note -R .comment $^ - echo $(patsubst %, misc/search/%, $^) > $@ - -$(MOBJ1): $(MSRC1) - $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o - -$(MOBJ2): $(MSRC2) - $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o - -$(MOBJ3): $(MSRC3) - $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o - -$(MOBJ4): $(MSRC4) - $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o - -$(COBJ): %.o : %.c - $(CC) $(CFLAGS) -c $< -o $@ -clean: - $(RM) *.o *~ core +top_srcdir=$(TOPDIR) +top_builddir=../../../ +all: objs +include $(top_builddir)Rules.mak +include Makefile.in +include $(top_srcdir)Makerules diff --git a/libc/misc/statfs/Makefile b/libc/misc/statfs/Makefile index f91b619fa..493484b27 100644 --- a/libc/misc/statfs/Makefile +++ b/libc/misc/statfs/Makefile @@ -1,43 +1,15 @@ # Makefile for uClibc -# Copyright (C) 2001,2002 Erik Andersen # -# This program is free software; you can redistribute it and/or modify it under -# the terms of the GNU Library General Public License as published by the Free -# Software Foundation; either version 2 of the License, or (at your option) any -# later version. +# Copyright (C) 2000-2005 Erik Andersen # -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more -# details. +# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. # -# You should have received a copy of the GNU Library General Public License -# along with this program; if not, write to the Free Software Foundation, Inc., -# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# Derived in part from the Linux-8086 C library, the GNU C Library, and several -# other sundry sources. Files within this library are copyright by their -# respective copyright holders. TOPDIR=../../../ -include $(TOPDIR)Rules.mak - -CSRC = statvfs.c fstatvfs.c -ifeq ($(UCLIBC_HAS_LFS),y) -CSRC += fstatfs64.c statfs64.c statvfs64.c fstatvfs64.c -endif -OBJS := $(patsubst %.c,%.o, $(CSRC)) - -OBJ_LIST := ../../obj.misc.statfs - -all: $(OBJ_LIST) - -$(OBJ_LIST): $(OBJS) - $(STRIPTOOL) -x -R .note -R .comment $^ - echo $(patsubst %, misc/statfs/%, $^) > $@ - -$(OBJS): %.o : %.c - $(CC) $(CFLAGS) -c $< -o $@ -clean: - $(RM) *.o *~ core +top_srcdir=$(TOPDIR) +top_builddir=../../../ +all: objs +include $(top_builddir)Rules.mak +include Makefile.in +include $(top_srcdir)Makerules diff --git a/libc/misc/syslog/Makefile b/libc/misc/syslog/Makefile index 525cc683d..493484b27 100644 --- a/libc/misc/syslog/Makefile +++ b/libc/misc/syslog/Makefile @@ -1,46 +1,15 @@ # Makefile for uClibc # -# Copyright (C) 2000 by Lineo, inc. -# Copyright (C) 2000,2001 Erik Andersen +# Copyright (C) 2000-2005 Erik Andersen # -# This program is free software; you can redistribute it and/or modify it under -# the terms of the GNU Library General Public License as published by the Free -# Software Foundation; either version 2 of the License, or (at your option) any -# later version. +# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. # -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more -# details. -# -# You should have received a copy of the GNU Library General Public License -# along with this program; if not, write to the Free Software Foundation, Inc., -# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# Derived in part from the Linux-8086 C library, the GNU C Library, and several -# other sundry sources. Files within this library are copyright by their -# respective copyright holders. TOPDIR=../../../ -include $(TOPDIR)Rules.mak - -ifeq ($(UCLIBC_HAS_THREADS),y) -CFLAGS += $(PTINC) -endif - -CSRC := syslog.c -OBJS := $(patsubst %.c,%.o, $(CSRC)) - -OBJ_LIST := ../../obj.misc.syslog - -all: $(OBJ_LIST) - -$(OBJ_LIST): $(OBJS) - $(STRIPTOOL) -x -R .note -R .comment $^ - echo $(patsubst %, misc/syslog/%, $^) > $@ - -$(OBJS): %.o : %.c - $(CC) $(CFLAGS) -c $< -o $@ -clean: - $(RM) *.o *~ core +top_srcdir=$(TOPDIR) +top_builddir=../../../ +all: objs +include $(top_builddir)Rules.mak +include Makefile.in +include $(top_srcdir)Makerules diff --git a/libc/misc/sysvipc/Makefile b/libc/misc/sysvipc/Makefile index 99b72c897..493484b27 100644 --- a/libc/misc/sysvipc/Makefile +++ b/libc/misc/sysvipc/Makefile @@ -1,62 +1,15 @@ # Makefile for uClibc # -# Copyright (C) 2000 by Lineo, inc. -# Copyright (C) 2000,2001 Erik Andersen +# Copyright (C) 2000-2005 Erik Andersen # -# This program is free software; you can redistribute it and/or modify it under -# the terms of the GNU Library General Public License as published by the Free -# Software Foundation; either version 2 of the License, or (at your option) any -# later version. +# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. # -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more -# details. -# -# You should have received a copy of the GNU Library General Public License -# along with this program; if not, write to the Free Software Foundation, Inc., -# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# Derived in part from the Linux-8086 C library, the GNU C Library, and several -# other sundry sources. Files within this library are copyright by their -# respective copyright holders. TOPDIR=../../../ -include $(TOPDIR)Rules.mak - -MSRC := sem.c -MOBJ := 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 -COBJ := $(patsubst %.c,%.o, $(CSRC)) - -OBJS := $(MOBJ) $(MOBJ2) $(MOBJ3) $(COBJ) - -OBJ_LIST := ../../obj.misc.sysvipc - -all: $(OBJ_LIST) - -$(OBJ_LIST): $(OBJS) - $(STRIPTOOL) -x -R .note -R .comment $^ - echo $(patsubst %, misc/sysvipc/%, $^) > $@ - -$(MOBJ): $(MSRC) - $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o - -$(MOBJ2): $(MSRC2) - $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o - -$(MOBJ3): $(MSRC3) - $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o - -$(COBJ): %.o : %.c - $(CC) $(CFLAGS) -c $< -o $@ -clean: - $(RM) *.o *~ core +top_srcdir=$(TOPDIR) +top_builddir=../../../ +all: objs +include $(top_builddir)Rules.mak +include Makefile.in +include $(top_srcdir)Makerules diff --git a/libc/misc/time/Makefile b/libc/misc/time/Makefile index 9d128fb09..493484b27 100644 --- a/libc/misc/time/Makefile +++ b/libc/misc/time/Makefile @@ -1,71 +1,15 @@ # Makefile for uClibc # -# Copyright (C) 2000 by Lineo, inc. -# Copyright (C) 2000,2001 Erik Andersen +# Copyright (C) 2000-2005 Erik Andersen # -# This program is free software; you can redistribute it and/or modify it under -# the terms of the GNU Library General Public License as published by the Free -# Software Foundation; either version 2 of the License, or (at your option) any -# later version. +# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. # -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more -# details. -# -# You should have received a copy of the GNU Library General Public License -# along with this program; if not, write to the Free Software Foundation, Inc., -# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# Derived in part from the Linux-8086 C library, the GNU C Library, and several -# other sundry sources. Files within this library are copyright by their -# respective copyright holders. TOPDIR=../../../ -include $(TOPDIR)Rules.mak - -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 -COBJS := $(patsubst %.c,%.o, $(CSRC)) - -OBJS := $(COBJS) $(MOBJ) $(MOBJx) - -OBJ_LIST := ../../obj.misc.time - -all: $(OBJ_LIST) - -$(OBJ_LIST): $(OBJS) - $(STRIPTOOL) -x -R .note -R .comment $^ - echo $(patsubst %, misc/time/%, $^) > $@ - -$(MOBJ): $(MSRC) - $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o - -$(MOBJx): $(MSRC) - $(CC) $(CFLAGS) -DL_$* -D__UCLIBC_DO_XLOCALE $< -c -o $*.o - -$(COBJS): %.o : %.c - $(CC) $(CFLAGS) -c $< -o $@ -clean: - $(RM) *.o *~ core +top_srcdir=$(TOPDIR) +top_builddir=../../../ +all: objs +include $(top_builddir)Rules.mak +include Makefile.in +include $(top_srcdir)Makerules diff --git a/libc/misc/ttyent/Makefile b/libc/misc/ttyent/Makefile index 9a172775f..493484b27 100644 --- a/libc/misc/ttyent/Makefile +++ b/libc/misc/ttyent/Makefile @@ -1,37 +1,15 @@ # Makefile for uClibc # -# Copyright (C) 2002 Erik Andersen +# Copyright (C) 2000-2005 Erik Andersen # -# This program is free software; you can redistribute it and/or modify it under -# the terms of the GNU Library General Public License as published by the Free -# Software Foundation; either version 2 of the License, or (at your option) any -# later version. +# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. # -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more -# details. -# -# You should have received a copy of the GNU Library General Public License -# along with this program; if not, write to the Free Software Foundation, Inc., -# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA TOPDIR=../../../ -include $(TOPDIR)Rules.mak - -CSRC := getttyent.c -OBJS := $(patsubst %.c,%.o, $(CSRC)) - -OBJ_LIST := ../../obj.misc.ttyent - -all: $(OBJ_LIST) - -$(OBJ_LIST): $(OBJS) - $(STRIPTOOL) -x -R .note -R .comment $^ - echo $(patsubst %, misc/ttyent/%, $^) > $@ - -$(OBJS): %.o : %.c - $(CC) $(CFLAGS) -c $< -o $@ -clean: - $(RM) *.o *~ core +top_srcdir=$(TOPDIR) +top_builddir=../../../ +all: objs +include $(top_builddir)Rules.mak +include Makefile.in +include $(top_srcdir)Makerules diff --git a/libc/misc/utmp/Makefile b/libc/misc/utmp/Makefile index c5e5fad11..493484b27 100644 --- a/libc/misc/utmp/Makefile +++ b/libc/misc/utmp/Makefile @@ -1,42 +1,15 @@ # Makefile for uClibc # -# Copyright (C) 2000 by Lineo, inc. -# Copyright (C) 2000,2001 Erik Andersen +# Copyright (C) 2000-2005 Erik Andersen # -# This program is free software; you can redistribute it and/or modify it under -# the terms of the GNU Library General Public License as published by the Free -# Software Foundation; either version 2 of the License, or (at your option) any -# later version. +# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. # -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more -# details. -# -# You should have received a copy of the GNU Library General Public License -# along with this program; if not, write to the Free Software Foundation, Inc., -# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# Derived in part from the Linux-8086 C library, the GNU C Library, and several -# other sundry sources. Files within this library are copyright by their -# respective copyright holders. TOPDIR=../../../ -include $(TOPDIR)Rules.mak - -CSRC := utent.c wtent.c -OBJS := $(patsubst %.c,%.o, $(CSRC)) - -OBJ_LIST := ../../obj.misc.utmp - -all: $(OBJ_LIST) - -$(OBJ_LIST): $(OBJS) - $(STRIPTOOL) -x -R .note -R .comment $^ - echo $(patsubst %, misc/utmp/%, $^) > $@ - -$(OBJS): %.o : %.c - $(CC) $(CFLAGS) -c $< -o $@ -clean: - $(RM) *.o *~ core +top_srcdir=$(TOPDIR) +top_builddir=../../../ +all: objs +include $(top_builddir)Rules.mak +include Makefile.in +include $(top_srcdir)Makerules diff --git a/libc/misc/wchar/Makefile b/libc/misc/wchar/Makefile index acff4dab6..493484b27 100644 --- a/libc/misc/wchar/Makefile +++ b/libc/misc/wchar/Makefile @@ -1,60 +1,15 @@ # Makefile for uClibc # -# Copyright (C) 2000 by Lineo, inc. -# Copyright (C) 2000,2001 Erik Andersen +# Copyright (C) 2000-2005 Erik Andersen # -# This program is free software; you can redistribute it and/or modify it under -# the terms of the GNU Library General Public License as published by the Free -# Software Foundation; either version 2 of the License, or (at your option) any -# later version. +# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. # -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more -# details. -# -# You should have received a copy of the GNU Library General Public License -# along with this program; if not, write to the Free Software Foundation, Inc., -# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# Derived in part from the Linux-8086 C library, the GNU C Library, and several -# other sundry sources. Files within this library are copyright by their -# respective copyright holders. TOPDIR=../../../ -include $(TOPDIR)Rules.mak - -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 - -# 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 - -OBJS := $(MOBJ) - -OBJ_LIST := ../../obj.misc.wchar - -all: $(OBJ_LIST) - -$(OBJ_LIST): $(OBJS) - $(STRIPTOOL) -x -R .note -R .comment $^ - echo $(patsubst %, misc/wchar/%, $^) > $@ - -$(MOBJ): $(MSRC) - $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o -clean: - $(RM) *.o *~ core +top_srcdir=$(TOPDIR) +top_builddir=../../../ +all: objs +include $(top_builddir)Rules.mak +include Makefile.in +include $(top_srcdir)Makerules diff --git a/libc/misc/wctype/Makefile b/libc/misc/wctype/Makefile index 34cc2d966..493484b27 100644 --- a/libc/misc/wctype/Makefile +++ b/libc/misc/wctype/Makefile @@ -1,59 +1,15 @@ # Makefile for uClibc # -# Copyright (C) 2000 by Lineo, inc. -# Copyright (C) 2000,2001 Erik Andersen +# Copyright (C) 2000-2005 Erik Andersen # -# This program is free software; you can redistribute it and/or modify it under -# the terms of the GNU Library General Public License as published by the Free -# Software Foundation; either version 2 of the License, or (at your o