From f2239854568a38296d1a632321c6fee97410692b Mon Sep 17 00:00:00 2001 From: Manuel Novoa III Date: Mon, 8 Sep 2003 20:33:10 +0000 Subject: Add back in table-less ctype funcs for those interested in minimizing static build sizes and not needing wchar support. Add in a SUSv3 getopt as an option for those not needing gnu getopt. Again, mainly for the static linking crowd. --- libc/unistd/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libc/unistd/Makefile') diff --git a/libc/unistd/Makefile b/libc/unistd/Makefile index 92f27e1a6..f30bfd3f1 100644 --- a/libc/unistd/Makefile +++ b/libc/unistd/Makefile @@ -28,10 +28,15 @@ DIRS:= CSRC=execl.c execlp.c execv.c execvep.c execvp.c execle.c \ sleep.c usleep.c getpass.c sysconf_src.c getlogin.c \ fpathconf.c confstr.c pathconf.c swab.c usershell.c \ - getopt.c getsubopt.c + getsubopt.c ifeq ($(strip $(UCLIBC_HAS_MMU)),y) CSRC+=daemon.c endif +ifeq ($(strip $(UCLIBC_HAS_GNU_GETOPT)),y) + CSRC += getopt.c +else + CSRC += getopt-susv3.c +endif # TESTING -- comment this out if it breaks for you ifeq ($(TARGET_ARCH), $(HOST_ARCH)) -- cgit v1.2.3