aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/posix/Makefile.inc
blob: 99958054f6464d6bb0863b82e94e899fe1182351 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
if HAVE_POSIX_DIR

libc_a_SOURCES += \
	%D%/closedir.c %D%/collate.c %D%/collcmp.c %D%/creat.c %D%/dirfd.c \
	%D%/fnmatch.c %D%/glob.c %D%/_isatty.c %D%/isatty.c \
	%D%/opendir.c %D%/readdir.c %D%/readdir_r.c \
	%D%/regcomp.c %D%/regerror.c %D%/regexec.c %D%/regfree.c \
	%D%/rewinddir.c %D%/sleep.c %D%/usleep.c \
	%D%/telldir.c %D%/ftw.c %D%/nftw.c

%C%_ELIX_2_SOURCES = \
	%D%/scandir.c %D%/seekdir.c

%C%_ELIX_3_SOURCES = \
	%D%/execl.c %D%/execle.c %D%/execlp.c %D%/execv.c \
	%D%/execve.c %D%/execvp.c %D%/wordexp.c %D%/wordfree.c

%C%_ELIX_4_SOURCES = \
	%D%/popen.c %D%/posix_spawn.c

if ELIX_LEVEL_1
libc_a_SOURCES +=
else
if ELIX_LEVEL_2
libc_a_SOURCES += $(%C%_ELIX_2_SOURCES)
else
if ELIX_LEVEL_3
libc_a_SOURCES += $(%C%_ELIX_2_SOURCES) $(%C%_ELIX_3_SOURCES)
else
libc_a_SOURCES += $(%C%_ELIX_2_SOURCES) $(%C%_ELIX_3_SOURCES) $(%C%_ELIX_4_SOURCES)
endif
endif
endif

endif

libc_a_CPPFLAGS_%C% = -D_GNU_SOURCE

LIBC_CHEWOUT_FILES += \
	%D%/popen.def \
	%D%/posix_spawn.def

LIBC_CHAPTERS += %D%/posix.tex