2000-12-09 09:20:32 +08:00
|
|
|
## Process this file with automake to generate Makefile.in
|
|
|
|
|
|
|
|
AUTOMAKE_OPTIONS = cygnus
|
|
|
|
|
2002-08-23 09:56:05 +08:00
|
|
|
INCLUDES = -I$(srcdir)/include $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) $(INCLTDL)
|
2000-12-09 09:20:32 +08:00
|
|
|
|
2002-08-30 07:53:06 +08:00
|
|
|
if ELIX_LEVEL_1
|
|
|
|
argp_dir=
|
|
|
|
ARGP_LIB=
|
|
|
|
else
|
|
|
|
argp_dir=argp
|
|
|
|
ARGP_LIB=argp/libargp.la
|
|
|
|
endif
|
|
|
|
|
2002-05-17 Jeff Johnston <jjohnstn@redhat.com>
* Makefile.am: Copy and install headers from sys/machine/include
directory. Also pass $toollibdir to lower-level directories.
* Makefile.in: Regenerated.
* libc/include/stdio.h[!_REENT_ONLY]: Change stdin, stdout, and
stderr to use _REENT macro instead of _impure_ptr directly.
* libc/include/sys/config.h[__i386__][__linux__]: Define
__DYNAMIC_REENT__.
* libc/include/sys/reent.h[!_REENT_ONLY]: Change _REENT macro to be
call to __getreent() function if !__SINGLE_THREAD__ and
__DYNAMIC_REENT__ is set.
* libc/reent/Makefile.am: Add support for getreent.c.
* libc/reent/Makefile.in: Regenerated.
* libc/string/strerror.c: Add check if EOPNOTSUPP and ENOTSUP are same.
* libc/sys/linux/Makefile.am: Add support for new files.
* libc/sys/linux/configure.in: Add $EXTRA_DIRS variable.
* libc/sys/linux/Makefile.in: Regenerated.
* libc/sys/linux/configure: Ditto.
* libc/sys/linux/io.c: Add poll syscall. Also weak-alias
__close, __read, __write, __poll, __open, __lseek, __fcntl from
their __libc_ counterparts.
* libc/sys/linux/io64.c: Add __libc_ prefix to lseek64 and open64
and weak-alias to regular names.
* libc/sys/linux/pread64.c: Rename to __libc_pread64 and weak-alias
to pread64 and __pread64.
* libc/sys/linux/process.c: Weak_alias __libc_getpid to __getpid.
* libc/sys/linux/pwrite64.c: Rename to __libc_pwrite64 and
weak-alias to pwrite64.
* libc/sys/linux/sched.c: Weak-alias __libc_sched_getparam,
__libc_sched_getscheduler, __libc_sched_get_priority_max,
__libc_sched_get_priority_min, and __libc_sched_setschedule to
name with __ instead of __libc_.
* libc/sys/linux/siglongjmp.c: Include <machine/weakalias.h>.
Rename siglongjmp to __libc_siglongjmp and weak-alias to siglongjmp.
Call __libc_longjmp instead of longjmp, from __libc_siglongjmp.
* libc/sys/linux/signal.c: Rename raise to __libc_raise and weak-alias
to raise.
* libc/sys/linux/socket.c: Weak-alias __libc_connect to __connect and
__libc_send to __send.
* libc/sys/linux/time.c: Weak-alias __libc_gettimeofday to
__gettimeofday.
* libc/sys/linux/wait.c: Rename wait to __libc_wait and weak-alias
it to wait. Rename wait3 to __libc_wait3 and weak-alias it to wait3.
* libc/sys/linux/include/setjmp.h: Use __jmp_buf in sigjmp_buf
type and typedef __jmp_buf to jmp_buf.
* libc/sys/linux/machine/i386/Makefile.am: Add syscalls.c and
setjmp.S.
* libc/sys/linux/machine/i386/Makefile.in: Regenerated.
* libc/sys/linux/machine/i386/crt0.c: Add support to clear .bss
section.
* libc/sys/linux/machine/i386/socketcall.h: Change to use __libc_
prefix for function macros and then use weak_alias() to regular names.
* libc/sys/linux/machine/i386/syscall.h: Ditto.
* libc/sys/linux/sys/errno.h: Define EOPNOTSUP to be ENOTSUP.
* libc/sys/linux/sys/stdio.h: Define _flockfile and _funlockfile
to be flockfile() and funlockfile() respectively.
* libc/sys/linux/sys/types.h
* libc/reent/getreent.c: New file.
* libc/sys/linux/flockfile.c: Ditto.
* libc/sys/linux/funlockfile.c: Ditto.
* libc/sys/linux/getreent.c: Ditto.
* libc/sys/linux/pread.c: Ditto.
* libc/sys/linux/pwrite.c: Ditto.
* libc/sys/linux/raise.c: Ditto.
* libc/sys/linux/system.c: Ditto.
* libc/sys/linux/tcdrain.c: Ditto.
* libc/sys/linux/machine/i386/i386mach.h: Ditto.
* libc/sys/linux/machine/i386/setjmp.S: Ditto.
* libc/sys/linux/machine/i386/syscalls.c: Ditto.
* libc/sys/linux/machine/i386/weakalias.h: Ditto.
* libc/sys/linux/machine/i386/include/setjmp.h: Ditto.
2002-05-18 07:39:39 +08:00
|
|
|
SUBDIRS = machine \
|
2002-08-30 07:53:06 +08:00
|
|
|
$(argp_dir) \
|
2002-08-17 05:29:45 +08:00
|
|
|
cmath \
|
2002-10-08 07:10:13 +08:00
|
|
|
$(EXTRA_SUBDIRS)\
|
2002-05-17 Jeff Johnston <jjohnstn@redhat.com>
* Makefile.am: Copy and install headers from sys/machine/include
directory. Also pass $toollibdir to lower-level directories.
* Makefile.in: Regenerated.
* libc/include/stdio.h[!_REENT_ONLY]: Change stdin, stdout, and
stderr to use _REENT macro instead of _impure_ptr directly.
* libc/include/sys/config.h[__i386__][__linux__]: Define
__DYNAMIC_REENT__.
* libc/include/sys/reent.h[!_REENT_ONLY]: Change _REENT macro to be
call to __getreent() function if !__SINGLE_THREAD__ and
__DYNAMIC_REENT__ is set.
* libc/reent/Makefile.am: Add support for getreent.c.
* libc/reent/Makefile.in: Regenerated.
* libc/string/strerror.c: Add check if EOPNOTSUPP and ENOTSUP are same.
* libc/sys/linux/Makefile.am: Add support for new files.
* libc/sys/linux/configure.in: Add $EXTRA_DIRS variable.
* libc/sys/linux/Makefile.in: Regenerated.
* libc/sys/linux/configure: Ditto.
* libc/sys/linux/io.c: Add poll syscall. Also weak-alias
__close, __read, __write, __poll, __open, __lseek, __fcntl from
their __libc_ counterparts.
* libc/sys/linux/io64.c: Add __libc_ prefix to lseek64 and open64
and weak-alias to regular names.
* libc/sys/linux/pread64.c: Rename to __libc_pread64 and weak-alias
to pread64 and __pread64.
* libc/sys/linux/process.c: Weak_alias __libc_getpid to __getpid.
* libc/sys/linux/pwrite64.c: Rename to __libc_pwrite64 and
weak-alias to pwrite64.
* libc/sys/linux/sched.c: Weak-alias __libc_sched_getparam,
__libc_sched_getscheduler, __libc_sched_get_priority_max,
__libc_sched_get_priority_min, and __libc_sched_setschedule to
name with __ instead of __libc_.
* libc/sys/linux/siglongjmp.c: Include <machine/weakalias.h>.
Rename siglongjmp to __libc_siglongjmp and weak-alias to siglongjmp.
Call __libc_longjmp instead of longjmp, from __libc_siglongjmp.
* libc/sys/linux/signal.c: Rename raise to __libc_raise and weak-alias
to raise.
* libc/sys/linux/socket.c: Weak-alias __libc_connect to __connect and
__libc_send to __send.
* libc/sys/linux/time.c: Weak-alias __libc_gettimeofday to
__gettimeofday.
* libc/sys/linux/wait.c: Rename wait to __libc_wait and weak-alias
it to wait. Rename wait3 to __libc_wait3 and weak-alias it to wait3.
* libc/sys/linux/include/setjmp.h: Use __jmp_buf in sigjmp_buf
type and typedef __jmp_buf to jmp_buf.
* libc/sys/linux/machine/i386/Makefile.am: Add syscalls.c and
setjmp.S.
* libc/sys/linux/machine/i386/Makefile.in: Regenerated.
* libc/sys/linux/machine/i386/crt0.c: Add support to clear .bss
section.
* libc/sys/linux/machine/i386/socketcall.h: Change to use __libc_
prefix for function macros and then use weak_alias() to regular names.
* libc/sys/linux/machine/i386/syscall.h: Ditto.
* libc/sys/linux/sys/errno.h: Define EOPNOTSUP to be ENOTSUP.
* libc/sys/linux/sys/stdio.h: Define _flockfile and _funlockfile
to be flockfile() and funlockfile() respectively.
* libc/sys/linux/sys/types.h
* libc/reent/getreent.c: New file.
* libc/sys/linux/flockfile.c: Ditto.
* libc/sys/linux/funlockfile.c: Ditto.
* libc/sys/linux/getreent.c: Ditto.
* libc/sys/linux/pread.c: Ditto.
* libc/sys/linux/pwrite.c: Ditto.
* libc/sys/linux/raise.c: Ditto.
* libc/sys/linux/system.c: Ditto.
* libc/sys/linux/tcdrain.c: Ditto.
* libc/sys/linux/machine/i386/i386mach.h: Ditto.
* libc/sys/linux/machine/i386/setjmp.S: Ditto.
* libc/sys/linux/machine/i386/syscalls.c: Ditto.
* libc/sys/linux/machine/i386/weakalias.h: Ditto.
* libc/sys/linux/machine/i386/include/setjmp.h: Ditto.
2002-05-18 07:39:39 +08:00
|
|
|
.
|
2002-05-25 02:50:29 +08:00
|
|
|
SUBLIBS = \
|
2002-08-30 07:53:06 +08:00
|
|
|
$(ARGP_LIB) \
|
2002-08-17 05:29:45 +08:00
|
|
|
cmath/libcmath.la \
|
2002-10-08 07:10:13 +08:00
|
|
|
$(EXTRA_SUBLIBS) \
|
2002-05-25 02:50:29 +08:00
|
|
|
$(LINUX_MACH_LIB)
|
2002-04-04 06:46:21 +08:00
|
|
|
|
2002-08-27 02:56:09 +08:00
|
|
|
GENERAL_SOURCES = \
|
2002-06-28 06:48:05 +08:00
|
|
|
aio.c \
|
2002-06-06 04:58:59 +08:00
|
|
|
brk.c \
|
2002-07-16 04:16:32 +08:00
|
|
|
calloc.c \
|
|
|
|
callocr.c \
|
|
|
|
cfreer.c \
|
2002-06-06 04:58:59 +08:00
|
|
|
cfspeed.c \
|
2002-06-28 04:09:26 +08:00
|
|
|
clock_getres.c \
|
|
|
|
clock_gettime.c \
|
|
|
|
clock_settime.c \
|
2002-06-06 04:58:59 +08:00
|
|
|
flockfile.c \
|
2002-07-16 04:16:32 +08:00
|
|
|
free.c \
|
|
|
|
freer.c \
|
2002-06-20 06:17:33 +08:00
|
|
|
ftok.c \
|
2002-06-06 04:58:59 +08:00
|
|
|
funlockfile.c \
|
2002-06-22 02:29:23 +08:00
|
|
|
getdate.c \
|
|
|
|
getdate_err.c \
|
2006-05-02 06:01:07 +08:00
|
|
|
gethostid.c \
|
2002-06-06 04:58:59 +08:00
|
|
|
gethostname.c \
|
|
|
|
getreent.c \
|
|
|
|
ids.c \
|
|
|
|
inode.c \
|
|
|
|
io.c \
|
2002-06-20 06:17:33 +08:00
|
|
|
ipc.c \
|
2008-01-04 06:33:37 +08:00
|
|
|
isatty.c \
|
2002-06-06 04:58:59 +08:00
|
|
|
linux.c \
|
2002-07-16 04:16:32 +08:00
|
|
|
mallinfor.c \
|
2006-05-02 06:01:07 +08:00
|
|
|
malloc.c \
|
2002-07-16 04:16:32 +08:00
|
|
|
mallocr.c \
|
|
|
|
mallstatsr.c \
|
2002-06-06 04:58:59 +08:00
|
|
|
mmap.c \
|
2002-06-20 06:17:33 +08:00
|
|
|
mq_close.c \
|
|
|
|
mq_getattr.c \
|
|
|
|
mq_notify.c \
|
|
|
|
mq_open.c \
|
|
|
|
mq_receive.c \
|
|
|
|
mq_send.c \
|
|
|
|
mq_setattr.c \
|
|
|
|
mq_unlink.c \
|
2002-07-16 04:16:32 +08:00
|
|
|
msize.c \
|
|
|
|
msizer.c \
|
|
|
|
mstats.c \
|
|
|
|
mtrim.c \
|
|
|
|
mtrimr.c \
|
2002-06-22 02:29:23 +08:00
|
|
|
ntp_gettime.c \
|
2002-06-06 04:58:59 +08:00
|
|
|
pread.c \
|
|
|
|
process.c \
|
2002-08-23 09:56:05 +08:00
|
|
|
prof-freq.c \
|
|
|
|
profile.c \
|
2002-06-06 04:58:59 +08:00
|
|
|
psignal.c \
|
|
|
|
pwrite.c \
|
|
|
|
raise.c \
|
2002-07-16 04:16:32 +08:00
|
|
|
realloc.c \
|
|
|
|
reallocr.c \
|
2002-06-06 04:58:59 +08:00
|
|
|
rename.c \
|
|
|
|
resource.c \
|
|
|
|
sched.c \
|
|
|
|
select.c \
|
|
|
|
seteuid.c \
|
2006-05-02 06:01:07 +08:00
|
|
|
sethostid.c \
|
2002-06-26 02:05:31 +08:00
|
|
|
sethostname.c \
|
2002-06-06 04:58:59 +08:00
|
|
|
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 \
|
2002-07-27 05:44:34 +08:00
|
|
|
strverscmp.c \
|
2002-06-06 04:58:59 +08:00
|
|
|
sysconf.c \
|
|
|
|
sysctl.c \
|
|
|
|
systat.c \
|
|
|
|
tcdrain.c \
|
|
|
|
tcsendbrk.c \
|
|
|
|
termios.c \
|
|
|
|
time.c \
|
|
|
|
usleep.c \
|
2002-08-27 02:56:09 +08:00
|
|
|
versionsort.c
|
|
|
|
|
2006-05-02 06:01:07 +08:00
|
|
|
ELIX_2_SOURCES = \
|
|
|
|
aio64.c \
|
|
|
|
confstr.c \
|
|
|
|
ctermid.c \
|
|
|
|
fclean.c \
|
|
|
|
fpathconf.c \
|
|
|
|
fstab.c \
|
|
|
|
fstatvfs.c \
|
|
|
|
fstatvfs64.c \
|
|
|
|
ftw.c \
|
|
|
|
ftw64.c \
|
|
|
|
getopt.c \
|
|
|
|
getopt1.c \
|
|
|
|
getrlimit64.c \
|
|
|
|
getwd.c \
|
|
|
|
io64.c \
|
|
|
|
malign.c \
|
|
|
|
malignr.c \
|
|
|
|
malloptr.c \
|
|
|
|
mcheck.c \
|
|
|
|
mntent.c \
|
|
|
|
mntent_r.c \
|
|
|
|
pathconf.c \
|
|
|
|
pread64.c \
|
|
|
|
pvallocr.c \
|
|
|
|
pwrite64.c \
|
|
|
|
readdir64.c \
|
|
|
|
realpath.c \
|
|
|
|
scandir64.c \
|
|
|
|
setrlimit64.c \
|
|
|
|
statvfs.c \
|
|
|
|
statvfs64.c \
|
|
|
|
ttyname_r.c \
|
|
|
|
utimes.c \
|
|
|
|
vallocr.c \
|
|
|
|
versionsort64.c
|
|
|
|
|
|
|
|
ELIX_3_SOURCES = \
|
|
|
|
system.c \
|
|
|
|
wait.c
|
|
|
|
|
|
|
|
ELIX_4_SOURCES = \
|
|
|
|
getlogin.c \
|
|
|
|
getpwent.c \
|
|
|
|
stack.c
|
2002-08-27 02:56:09 +08:00
|
|
|
|
|
|
|
if ELIX_LEVEL_1
|
2006-05-02 06:01:07 +08:00
|
|
|
ELIX_SOURCES =
|
2002-08-27 02:56:09 +08:00
|
|
|
else
|
|
|
|
if ELIX_LEVEL_2
|
2006-05-02 06:01:07 +08:00
|
|
|
ELIX_SOURCES = $(ELIX_2_SOURCES)
|
2002-08-27 02:56:09 +08:00
|
|
|
else
|
|
|
|
if ELIX_LEVEL_3
|
2006-05-02 06:01:07 +08:00
|
|
|
ELIX_SOURCES = $(ELIX_2_SOURCES) $(ELIX_3_SOURCES)
|
2002-08-27 02:56:09 +08:00
|
|
|
else
|
2006-05-02 06:01:07 +08:00
|
|
|
ELIX_SOURCES = $(ELIX_2_SOURCES) $(ELIX_3_SOURCES) $(ELIX_4_SOURCES)
|
2002-08-27 02:56:09 +08:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
2000-12-09 09:20:32 +08:00
|
|
|
|
2001-12-14 07:50:11 +08:00
|
|
|
# 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
|
2004-06-10 04:43:43 +08:00
|
|
|
SIGNAL_H = /usr/include/asm/signal.h
|
2001-12-14 07:50:11 +08:00
|
|
|
|
|
|
|
liblinux_la_LDFLAGS = -Xcompiler -nostdlib
|
|
|
|
|
2002-06-26 02:17:25 +08:00
|
|
|
ADD_OBJS = \
|
|
|
|
$(LINUX_MACH_LIB)
|
2002-06-26 02:05:31 +08:00
|
|
|
|
2001-12-14 07:50:11 +08:00
|
|
|
if USE_LIBTOOL
|
|
|
|
noinst_LTLIBRARIES = liblinux.la
|
2006-05-02 06:01:07 +08:00
|
|
|
liblinux_la_SOURCES = $(GENERAL_SOURCES) $(ELIX_SOURCES)
|
|
|
|
liblinux_la_LIBADD = $(ADD_OBJS)
|
|
|
|
liblinux_la_DEPENDENCIES = $(ADD_OBJS)
|
2002-07-16 04:16:32 +08:00
|
|
|
LIBC_COMPILE = $(LTCOMPILE)
|
2001-12-14 07:50:11 +08:00
|
|
|
noinst_DATA = objectlist.awk.in
|
|
|
|
else
|
|
|
|
noinst_LIBRARIES = lib.a
|
2006-05-02 06:01:07 +08:00
|
|
|
lib_a_SOURCES = $(GENERAL_SOURCES) $(ELIX_SOURCES)
|
|
|
|
lib_a_LIBADD = $(ADD_OBJS)
|
|
|
|
lib_a_DEPENDENCIES = $(ADD_OBJS)
|
2006-04-12 03:02:16 +08:00
|
|
|
lib_a_CFLAGS = $(AM_CFLAGS)
|
2002-07-16 04:16:32 +08:00
|
|
|
LIBC_COMPILE = $(COMPILE)
|
2001-12-14 07:50:11 +08:00
|
|
|
noinst_DATA =
|
2002-04-04 06:46:21 +08:00
|
|
|
|
2006-05-02 06:01:07 +08:00
|
|
|
lib.a: $(lib_a_OBJECTS)
|
2002-04-04 06:46:21 +08:00
|
|
|
rm -f $@
|
|
|
|
rm -rf tmp
|
|
|
|
mkdir tmp
|
|
|
|
cd tmp; \
|
|
|
|
for i in $(SUBLIBS); do \
|
|
|
|
$(AR) x ../$$i; \
|
2002-04-05 06:41:11 +08:00
|
|
|
done; \
|
2002-04-04 06:46:21 +08:00
|
|
|
$(AR) $(AR_FLAGS) ../$@ *.o
|
|
|
|
$(RANLIB) $@
|
|
|
|
rm -rf tmp
|
|
|
|
|
2001-12-14 07:50:11 +08:00
|
|
|
endif # USE_LIBTOOL
|
|
|
|
|
2002-08-23 09:56:05 +08:00
|
|
|
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
|
2001-12-14 07:50:11 +08:00
|
|
|
|
2009-08-20 04:04:45 +08:00
|
|
|
all-local: crt0.o crt1.o
|
2000-12-09 09:20:32 +08:00
|
|
|
|
2002-04-04 06:46:21 +08:00
|
|
|
crt0.o: machine/crt0.o
|
|
|
|
rm -f $@
|
|
|
|
ln machine/crt0.o $@ >/dev/null 2>/dev/null || cp machine/crt0.o $@
|
|
|
|
|
|
|
|
machine/crt0.o: ; @true
|
|
|
|
|
2006-05-02 06:01:07 +08:00
|
|
|
$(lpfx)sig.$(oext): siglist.inc
|
2000-12-09 09:20:32 +08:00
|
|
|
|
|
|
|
siglist.inc:
|
2004-06-10 04:43:43 +08:00
|
|
|
$(AWK) '{ max = 32 } \
|
|
|
|
/#define.SIG.*[1-9][0-9]*/ { n[$$3] = $$2 } \
|
2000-12-09 09:20:32 +08:00
|
|
|
/#define.NSIG.*[1-9][0-9]*/ { max = $$3 } \
|
|
|
|
/#define.SIGUNUSED/ \
|
|
|
|
{ for (i = 0; i <= max; i++) print "\"" n[i] "\"," }' \
|
2001-12-14 07:50:11 +08:00
|
|
|
< $(SIGNAL_H) > siglist.inc || \
|
2000-12-09 09:20:32 +08:00
|
|
|
{ rm -f siglist.inc; exit 1; }
|
|
|
|
|
2002-06-22 02:29:23 +08:00
|
|
|
AM_CFLAGS = -I $(srcdir)/../../stdio
|
2007-05-25 01:33:42 +08:00
|
|
|
ACLOCAL_AMFLAGS = -I ../../.. -I ../../../..
|
2000-12-09 09:20:32 +08:00
|
|
|
CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
|