4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-19 12:59:21 +08:00
newlib-cygwin/newlib/libc/unix/Makefile.inc
Mike Frysinger 96bc16f6b2 newlib: libc: merge build up a directory
Convert all the libc/ subdir makes into the top-level Makefile.  This
allows us to build all of libc from the top Makefile without using any
recursive make calls.  This is faster and avoids the funky lib.a logic
where we unpack subdir archives to repack into a single libc.a.  The
machine override logic is maintained though by way of Makefile include
ordering, and source file accumulation in libc_a_SOURCES.

There's a few dummy.c files that are no longer necessary since we aren't
doing the lib.a accumulating, so punt them.

The winsup code has been pulling the internal newlib ssp library out,
but that doesn't exist anymore, so change that to pull the objects.
2022-03-16 21:18:25 -04:00

36 lines
561 B
Makefile

if HAVE_UNIX_DIR
libc_a_SOURCES += \
%D%/getcwd.c \
%D%/pread.c \
%D%/pwrite.c \
%D%/sigset.c
## Distinguish different EL/IX level interfaces
%C%_ELIX_2_SOURCES = \
%D%/ttyname.c \
%D%/ttyname_r.c
%C%_ELIX_4_SOURCES = \
%D%/basename.c \
%D%/dirname.c \
%D%/getlogin.c \
%D%/getpass.c \
%D%/getpwent.c \
%D%/getut.c
if ELIX_LEVEL_1
else
if ELIX_LEVEL_2
libc_a_SOURCES += $(%C%_ELIX_2_SOURCES)
else
if ELIX_LEVEL_3
libc_a_SOURCES += $(%C%_ELIX_2_SOURCES)
else
libc_a_SOURCES += $(%C%_ELIX_2_SOURCES) $(%C%_ELIX_4_SOURCES)
endif
endif
endif
endif