summaryrefslogtreecommitdiff
path: root/libc/unistd/Makefile
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2003-09-08 20:33:10 +0000
committerManuel Novoa III <mjn3@codepoet.org>2003-09-08 20:33:10 +0000
commitf2239854568a38296d1a632321c6fee97410692b (patch)
tree24f769283ecd09756812fd69a55b53f3feceb770 /libc/unistd/Makefile
parentc9781f6b04ed346407c0462488d2a4c425b69230 (diff)
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.
Diffstat (limited to 'libc/unistd/Makefile')
-rw-r--r--libc/unistd/Makefile7
1 files changed, 6 insertions, 1 deletions
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))