Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libc / posix / Makefile.inc
blob99958054f6464d6bb0863b82e94e899fe1182351
1 if HAVE_POSIX_DIR
3 libc_a_SOURCES += \
4         %D%/closedir.c %D%/collate.c %D%/collcmp.c %D%/creat.c %D%/dirfd.c \
5         %D%/fnmatch.c %D%/glob.c %D%/_isatty.c %D%/isatty.c \
6         %D%/opendir.c %D%/readdir.c %D%/readdir_r.c \
7         %D%/regcomp.c %D%/regerror.c %D%/regexec.c %D%/regfree.c \
8         %D%/rewinddir.c %D%/sleep.c %D%/usleep.c \
9         %D%/telldir.c %D%/ftw.c %D%/nftw.c
11 %C%_ELIX_2_SOURCES = \
12         %D%/scandir.c %D%/seekdir.c
14 %C%_ELIX_3_SOURCES = \
15         %D%/execl.c %D%/execle.c %D%/execlp.c %D%/execv.c \
16         %D%/execve.c %D%/execvp.c %D%/wordexp.c %D%/wordfree.c
18 %C%_ELIX_4_SOURCES = \
19         %D%/popen.c %D%/posix_spawn.c
21 if ELIX_LEVEL_1
22 libc_a_SOURCES +=
23 else
24 if ELIX_LEVEL_2
25 libc_a_SOURCES += $(%C%_ELIX_2_SOURCES)
26 else
27 if ELIX_LEVEL_3
28 libc_a_SOURCES += $(%C%_ELIX_2_SOURCES) $(%C%_ELIX_3_SOURCES)
29 else
30 libc_a_SOURCES += $(%C%_ELIX_2_SOURCES) $(%C%_ELIX_3_SOURCES) $(%C%_ELIX_4_SOURCES)
31 endif
32 endif
33 endif
35 endif
37 libc_a_CPPFLAGS_%C% = -D_GNU_SOURCE
39 LIBC_CHEWOUT_FILES += \
40         %D%/popen.def \
41         %D%/posix_spawn.def
43 LIBC_CHAPTERS += %D%/posix.tex