mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-15 02:09:19 +08:00
90b65e2d06
* Makefile.am(LIBC_OBJECTLISTS): Add STDIO64_OBJECTLIST. * Makefile.in: Regenerated. * acinclude.m4: Add support for --enable-newlib-elix-level option. * aclocal.m4: Regenerated. * configure: Ditto. * configure.host: Add code to define _ELIX_LEVEL if --enable-newlib-elix-level option is used. * configure.in: * libc/aclocal.m4: Regenerated. * libc/configure: Ditto. * libc/argz/Makefile.am: Add EL/IX level checking. * libc/argz/Makefile.in: Regenerated. * libc/argz/dummy.c: New file. * libc/ctype/Makefile.am: Add EL/IX level checking. * libc/ctype/Makefile.in: Regenerated. * libc/locale/Makefile.am: Add EL/IX level checking. * libc/locale/Makefile.in: Regenerated. * libc/posix/Makefile.am: Add EL/IX level checking. * libc/posix/Makefile.in: Regenerated. * libc/posix/telldir.c: Add EL/IX level checking. * libc/reent/Makefile.am: Ditto. * libc/reent/fstat64r.c: Ditto. * libc/reent/lseek64r.c: Ditto. * libc/reent/open64r.c: Ditto. * libc/reent/Makefile.in: Regenerated. * libc/search/Makefile.am: Add EL/IX level checking. * libc/search/Makefile.in: Regenerated. * libc/stdio/Makefile.am: Add EL/IX level checking. * libc/stdio/Makefile.in: Regenerated. * libc/stdio64/Makefile.am: Add EL/IX level checking. * libc/stdio64/Makefile.in: Regenerated. * libc/stdio64/dummy.c: New file. * libc/stdio64/fgetpos64.c: Fix so _LARGEFILE_64 macro is checked after first include. * libc/stdio64/fopen64.c: Ditto. * libc/stdio64/freopen64.c: Ditto. * libc/stdio64/fseeko64.c: Ditto. * libc/stdio64/fsetpos64.c: Ditto. * libc/stdio64/ftello64.c: Ditto. * libc/stdio64/tmpfile64.c: Ditto. * libc/stdlib/Makefile.am: Add EL/IX level checking. * libc/stdlib/Makefile.in: Regenerated. * libc/stdlib/mstats.c: Add EL/IX level checking. * libc/string/Makefile.am: Ditto. * libc/string/Makefile.in: Regenerated. * libc/sys/linux/Makefile.am: Add EL/IX level checking. * libc/sys/linux/Makefile.in: Regenerated. * libc/sys/linux/aclocal.m4: Ditto. * libc/sys/linux/configure: Ditto. * libc/sys/linux/aio.c: Add EL/IX level checking. * libc/sys/linux/ftok.c: Ditto. * libc/sys/linux/getdate.c: Ditto. * libc/sys/linux/ids.c: Ditto. * libc/sys/linux/inode.c: Ditto. * libc/sys/linux/io.c: Ditto. * libc/sys/linux/process.c: Ditto. * libc/sys/linux/resource.c: Ditto. * libc/sys/linux/sched.c: Ditto. * libc/sys/linux/sig.c: Ditto. * libc/sys/linux/termios.c: Ditto. * libc/sys/linux/wait.c: Ditto plus add __waitpid and __libc___waitpid weak aliases. * libc/sys/linux/machine/i386/syscall.h: Add new _base macros that generate the code for a syscall, but do not create a weak alias. * libc/syscalls/Makefile.am: Add EL/IX level checking. * libc/syscalls/Makefile.in: Regenerated. * libc/time/tzset_r.c: Change to replace strdup with equivalent functionality. * libc/unix/Makefile.am: Add EL/IX level checking. * libc/unix/Makefile.in: Regenerated.
231 lines
4.3 KiB
Makefile
231 lines
4.3 KiB
Makefile
## Process this file with automake to generate Makefile.in
|
|
|
|
AUTOMAKE_OPTIONS = cygnus
|
|
|
|
INCLUDES = -I$(srcdir)/include $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) $(INCLTDL)
|
|
|
|
SUBDIRS = machine \
|
|
cmath \
|
|
.
|
|
SUBLIBS = \
|
|
cmath/libcmath.la \
|
|
$(LINUX_MACH_LIB)
|
|
|
|
GENERAL_SOURCES = \
|
|
aio.c \
|
|
brk.c \
|
|
calloc.c \
|
|
callocr.c \
|
|
cfreer.c \
|
|
cfspeed.c \
|
|
clock_getres.c \
|
|
clock_gettime.c \
|
|
clock_settime.c \
|
|
flockfile.c \
|
|
free.c \
|
|
freer.c \
|
|
ftok.c \
|
|
funlockfile.c \
|
|
getdate.c \
|
|
getdate_err.c \
|
|
gethostname.c \
|
|
getreent.c \
|
|
ids.c \
|
|
inode.c \
|
|
io.c \
|
|
ipc.c \
|
|
linux.c \
|
|
mallinfor.c \
|
|
mallocr.c \
|
|
mallstatsr.c \
|
|
mmap.c \
|
|
mq_close.c \
|
|
mq_getattr.c \
|
|
mq_notify.c \
|
|
mq_open.c \
|
|
mq_receive.c \
|
|
mq_send.c \
|
|
mq_setattr.c \
|
|
mq_unlink.c \
|
|
msize.c \
|
|
msizer.c \
|
|
mstats.c \
|
|
mtrim.c \
|
|
mtrimr.c \
|
|
ntp_gettime.c \
|
|
pread.c \
|
|
process.c \
|
|
prof-freq.c \
|
|
profile.c \
|
|
psignal.c \
|
|
pwrite.c \
|
|
raise.c \
|
|
realloc.c \
|
|
reallocr.c \
|
|
rename.c \
|
|
resource.c \
|
|
sched.c \
|
|
select.c \
|
|
seteuid.c \
|
|
sethostname.c \
|
|
shm_open.c \
|
|
shm_unlink.c \
|
|
sig.c \
|
|
sigaction.c \
|
|
sigqueue.c \
|
|
signal.c \
|
|
siglongjmp.c \
|
|
sigset.c \
|
|
sigwait.c \
|
|
socket.c \
|
|
sleep.c \
|
|
strsignal.c \
|
|
strverscmp.c \
|
|
sysconf.c \
|
|
sysctl.c \
|
|
systat.c \
|
|
tcdrain.c \
|
|
tcsendbrk.c \
|
|
termios.c \
|
|
time.c \
|
|
usleep.c \
|
|
versionsort.c
|
|
|
|
ELIX_2_OBJS = \
|
|
aio64.$(oext) \
|
|
confstr.$(oext) \
|
|
ctermid.$(oext) \
|
|
fclean.$(oext) \
|
|
fpathconf.$(oext) \
|
|
fstab.$(oext) \
|
|
fstatvfs.$(oext) \
|
|
fstatvfs64.$(oext) \
|
|
ftw.$(oext) \
|
|
ftw64.$(oext) \
|
|
getoptlong.$(oext) \
|
|
getrlimit64.$(oext) \
|
|
getwd.$(oext) \
|
|
io64.$(oext) \
|
|
malign.$(oext) \
|
|
malignr.$(oext) \
|
|
malloptr.$(oext) \
|
|
mcheck.$(oext) \
|
|
mntent.$(oext) \
|
|
mntent_r.$(oext) \
|
|
pathconf.$(oext) \
|
|
pread64.$(oext) \
|
|
pvallocr.$(oext) \
|
|
pwrite64.$(oext) \
|
|
readdir64.$(oext) \
|
|
realpath.$(oext) \
|
|
scandir64.$(oext) \
|
|
setrlimit64.$(oext) \
|
|
statvfs.$(oext) \
|
|
statvfs64.$(oext) \
|
|
ttyname_r.$(oext) \
|
|
utimes.$(oext) \
|
|
vallocr.$(oext) \
|
|
versionsort64.$(oext)
|
|
|
|
ELIX_3_OBJS = \
|
|
system.$(oext) \
|
|
wait.$(oext)
|
|
|
|
ELIX_4_OBJS = \
|
|
stack.$(oext)
|
|
|
|
if ELIX_LEVEL_1
|
|
LIB_OBJS =
|
|
else
|
|
if ELIX_LEVEL_2
|
|
LIB_OBJS = $(ELIX_2_OBJS)
|
|
else
|
|
if ELIX_LEVEL_3
|
|
LIB_OBJS = $(ELIX_2_OBJS) $(ELIX_3_OBJS)
|
|
else
|
|
LIB_OBJS = $(ELIX_2_OBJS) $(ELIX_3_OBJS) $(ELIX_4_OBJS)
|
|
endif
|
|
endif
|
|
endif
|
|
|
|
# This will handle both /usr/src/linux-2.4/include/asm/signal.h (in Red Hat Linux 7.1)
|
|
# and also /usr/src/linux/include/asm/signal.h in older versions of Red Hat Linux
|
|
SIGNAL_H = /usr/src/$(shell ls /usr/src/ | grep ^linux | head -n 1)/include/asm/signal.h
|
|
|
|
liblinux_la_LDFLAGS = -Xcompiler -nostdlib
|
|
|
|
ADD_OBJS = \
|
|
malloc.$(oext) \
|
|
$(LINUX_MACH_LIB)
|
|
|
|
if USE_LIBTOOL
|
|
noinst_LTLIBRARIES = liblinux.la
|
|
liblinux_la_SOURCES = $(GENERAL_SOURCES)
|
|
liblinux_la_LIBADD = $(ADD_OBJS) $(LIB_OBJS)
|
|
liblinux_la_DEPENDENCIES = $(ADD_OBJS) $(LIB_OBJS)
|
|
LIBC_COMPILE = $(LTCOMPILE)
|
|
noinst_DATA = objectlist.awk.in
|
|
else
|
|
noinst_LIBRARIES = lib.a
|
|
lib_a_SOURCES = $(GENERAL_SOURCES)
|
|
lib_a_LIBADD = $(ADD_OBJS) $(LIB_OBJS)
|
|
lib_a_DEPENDENCIES = $(ADD_OBJS) $(LIB_OBJS)
|
|
LIBC_COMPILE = $(COMPILE)
|
|
noinst_DATA =
|
|
|
|
lib.a: $(ADD_OBJS) $(LIB_OBJS) $(lib_a_OBJECTS)
|
|
rm -f $@
|
|
rm -rf tmp
|
|
mkdir tmp
|
|
cd tmp; \
|
|
for i in $(SUBLIBS); do \
|
|
$(AR) x ../$$i; \
|
|
done; \
|
|
$(AR) $(AR_FLAGS) ../$@ *.o
|
|
$(RANLIB) $@
|
|
rm -rf tmp
|
|
|
|
endif # USE_LIBTOOL
|
|
|
|
objectlist.awk.in: $(noinst_LTLIBRARIES) $(SUBLIBS)
|
|
-rm -f objectlist.awk.in
|
|
for i in `ls *.lo` ; \
|
|
do \
|
|
echo $$i `pwd`/$$i >> objectlist.awk.in ; \
|
|
done
|
|
for j in $(SUBLIBS) ; \
|
|
do \
|
|
export i=`echo $$j | sed -e 's,\(.*\)\/[^\/]*$$,\1,'`; \
|
|
if test $$i != "." && test -f $$i/objectlist.awk.in; then \
|
|
cat $$i/objectlist.awk.in >> objectlist.awk.in ; \
|
|
fi; \
|
|
done
|
|
|
|
all: crt0.o crt1.o
|
|
|
|
crt0.o: machine/crt0.o
|
|
rm -f $@
|
|
ln machine/crt0.o $@ >/dev/null 2>/dev/null || cp machine/crt0.o $@
|
|
|
|
machine/crt0.o: ; @true
|
|
|
|
malloc.$(oext): $(srcdir)/malloc.c
|
|
$(LIBC_COMPILE) -D_LIBC=1 -c $< -o $@
|
|
|
|
mcheck.$(oext): $(srcdir)/mcheck.c
|
|
$(LIBC_COMPILE) -D_LIBC=1 -c $< -o $@
|
|
|
|
sig.$(oext): siglist.inc
|
|
|
|
siglist.inc:
|
|
$(AWK) '/#define.SIG.*[1-9][0-9]*/ { n[$$3] = $$2 } \
|
|
/#define.NSIG.*[1-9][0-9]*/ { max = $$3 } \
|
|
/#define.SIGUNUSED/ \
|
|
{ for (i = 0; i <= max; i++) print "\"" n[i] "\"," }' \
|
|
< $(SIGNAL_H) > siglist.inc || \
|
|
{ rm -f siglist.inc; exit 1; }
|
|
|
|
AM_CFLAGS = -I $(srcdir)/../../stdio
|
|
ACLOCAL_AMFLAGS = -I ../../..
|
|
CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
|