OSDN Git Service

- adds several config-options to allow for turning off certain features
[uclinux-h8/uClibc.git] / libc / stdlib / Makefile.in
index ad2a959..dfef6d1 100644 (file)
@@ -12,10 +12,16 @@ include $(top_srcdir)libc/stdlib/malloc-standard/Makefile.in
 CSRC := \
        abort.c getenv.c mkdtemp.c mktemp.c realpath.c mkstemp.c \
        rand.c random.c random_r.c setenv.c system.c div.c ldiv.c lldiv.c \
-       getpt.c ptsname.c grantpt.c unlockpt.c drand48-iter.c jrand48.c \
+       getpt.c drand48-iter.c jrand48.c \
        jrand48_r.c lrand48.c lrand48_r.c mrand48.c mrand48_r.c nrand48.c \
        nrand48_r.c rand_r.c srand48.c srand48_r.c seed48.c seed48_r.c \
-       valloc.c posix_memalign.c a64l.c l64a.c __uc_malloc.c
+       valloc.c a64l.c l64a.c __uc_malloc.c
+ifeq ($(UCLIBC_HAS_ADVANCED_REALTIME),y)
+CSRC += posix_memalign.c
+endif
+ifeq ($(UCLIBC_HAS_PTY),y)
+CSRC += grantpt.c unlockpt.c ptsname.c
+endif
 ifeq ($(UCLIBC_HAS_ARC4RANDOM),y)
 CSRC += arc4random.c
 endif