4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-15 02:09:19 +08:00
Jeff Johnston 34e666798a 2006-04-11 Jeff Johnston <jjohnstn@redhat.com>
* acinclude.m4: Properly add square brackets for
        AC_DEFUN macros.  Rewrite LIB_AC_PROG_CC to remove
        macros no longer available.  Add LIB_AM_PROG_AS to
        remove prereq of AC_PROG_CC.  Add LIB_AC_PROG_CC_GNU
        macro.  Substitute lpfx (library object prefix).
        * configure.host: Set lpfx depending on whether
        libtool is used or not.
        * configure.in: Individually specify libc and libm
        to AC_CONFIG_SUBDIRS.  Add square bracket quoting as
        necessary.
        * Makefile.am: Use $(lpfx) to get object names for
        math-library functions that should also be in libc.
        * libc/machine/configure.in: Use case statement to determine
        AC_CONFIG_SUBDIRS statement.
        * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
        * libc/sys/linux/machine/configure.in: Ditto.
        * libc/sys/configure.in: Ditto.
        * libm/machine/configure.in: Ditto.
        * libc/sys/linux/configure.in: Fix up AC_CONFIG_SUBDIRS.
        * libm/configure.in: Add AM_CONDITIONAL statement
        for HAVE_LIBM_MACHINE_DIR.
        * libc/machine/a29k/Makefile.am: Modified to work with
        latest automake.  Change includes setting AM_CCASFLAGS
        so building .S files will properly pick up flags used
        to build C files.
        * libc/machine/arm/Makefile.am: Ditto.
        * libc/machine/crx/Makefile.am: Ditto.
        * libc/machine/d10v/Makefile.am: Ditto.
        * libc/machine/d30v/Makefile.am: Ditto.
        * libc/machine/fr30/Makefile.am: Ditto.
        * libc/machine/frv/Makefile.am: Ditto.
        * libc/machine/h8300/Makefile.am: Ditto.
        * libc/machine/h8500/Makefile.am: Ditto.
        * libc/machine/hppa/Makefile.am: Ditto.
        * libc/machine/i386/Makefile.am: Ditto.
        * libc/machine/iq2000/Makefile.am: Ditto.
        * libc/machine/m32c/Makefile.am: Ditto.
        * libc/machine/m32r/Makefile.am: Ditto.
        * libc/machine/m68hc11/Makefile.am: Ditto.
        * libc/machine/m68k/Makefile.am: Ditto.
        * libc/machine/m88k/Makefile.am: Ditto.
        * libc/machine/mips/Makefile.am: Ditto.
        * libc/machine/mn10200/Makefile.am: Ditto.
        * libc/machine/mn10300/Makefile.am: Ditto.
        * libc/machine/mt/Makefile.am: Ditto.
        * libc/machine/necv70/Makefile.am: Ditto.
        * libc/machine/powerpc/Makefile.am: Ditto.
        * libc/machine/sh/Makefile.am: Ditto.
        * libc/machine/sparc/Makefile.am: Ditto.
        * libc/machine/tic4x/Makefile.am: Ditto.
        * libc/machine/tic80/Makefile.am: Ditto.
        * libc/machine/v850/Makefile.am: Ditto.
        * libc/machine/w65/Makefile.am: Ditto.
        * libc/machine/xscale/Makefile.am: Ditto.
        * libc/machine/xstormy16/Makefile.am: Ditto.
        * libc/machine/z8k/Makefile.am: Ditto.
        * libc/sys/a29khif/Makefile.am: Ditto.
        * libc/sys/arc/Makefile.am: Ditto.
        * libc/sys/arm/Makefile.am: Ditto.
        * libc/sys/d10v/Makefile.am: Ditto.
        * libc/sys/decstation/Makefile.am: Ditto.
        * libc/sys/h8300hms/Makefile.am: Ditto.
        * libc/sys/h8500hms/Makefile.am: Ditto.
        * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
        * libc/sys/linux/machine/i386/Makefile.am: Ditto.
        * libc/sys/m88kbug/Makefile.am: Ditto.
        * libc/sys/mmixware/Makefile.am: Ditto.
        * libc/sys/netware/Makefile.am: Ditto.
        * libc/sys/rdos/Makefile.am: Ditto.
        * libc/sys/rtems/Makefile.am: Ditto.
        * libc/sys/sh/Makefile.am: Ditto.
        * libc/sys/sparc64/Makefile.am: Ditto.
        * libc/sys/sysmec/Makefile.am: Ditto.
        * libc/sys/sysnec810/Makefile.am: Ditto.
        * libc/sys/sysnecv850/Makefile.am: Ditto.
        * libc/sys/sysvi386/Makefile.am: Ditto.
        * libc/sys/sysvnecv70/Makefile.am: Ditto.
        * libc/sys/tic80/Makefile.am: Ditto.
        * libc/sys/w65/Makefile.am: Ditto.
        * libc/sys/z8ksim/Makefile.am: Ditto.
        * libm/machine/i386/Makefile.am: Ditto.
        * libc/sys/arm/Makefile.am: Ditto plus add EXTRA sources including
        trap.S so that automake will generate a .S.o suffix rule.
        * libc/argz/Makefile.am: Modified to work with
        latest automake.  Change includes adding lib_a_CFLAGS
        so automake doesn't complain about libtool and non-libtool
        libraries sharing objects.
        * libc/ctype/Makefile.am: Ditto.
        * libc/errno/Makefile.am: Ditto.
        * libc/iconv/ccs/Makefile.am: Ditto.
        * libc/iconv/ces/Makefile.am: Ditto.
        * libc/iconv/lib/Makefile.am: Ditto.
        * libc/locale/Makefile.am: Ditto.
        * libc/misc/Makefile.am: Ditto.
        * libc/posix/Makefile.am: Ditto.
        * libc/reent/Makefile.am: Ditto.
        * libc/search/Makefile.am: Ditto.
        * libc/signal/Makefile.am: Ditto.
        * libc/stdio/Makefile.am: Ditto.
        * libc/stdio64/Makefile.am: Ditto.
        * libc/stdlib/Makefile.am: Ditto.
        * libc/string/Makefile.am: Ditto.
        * libc/sys/linux/Makefile.am: Ditto.
        * libc/sys/linux/argp/Makefile.am: Ditto.
        * libc/sys/linux/cmath/Makefile.am: Ditto.
        * libc/sys/linux/dl/Makefile.am: Ditto.
        * libc/sys/linux/iconv/Makefile.am: Ditto.
        * libc/sys/linux/intl/Makefile.am: Ditto.
        * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
        * libc/sys/linux/net/Makefile.am: Ditto.
        * libc/sys/linux/stdlib/Makefile.am: Ditto.
        * libc/syscalls/Makefile.am: Ditto.
        * libc/time/Makefile.am: Ditto.
        * libc/unix/Makefile.am: Ditto.
        * libm/Makefile.am: Ditto.
        * libm/common/Makefile.am: Ditto.
        * libm/math/Makefile.am: Ditto.
        * libm/mathfp/Makefile.am: Ditto.
        * Regenerate all aclocal.m4, Makefile.in, and configure files.
2006-04-11 19:02:16 +00:00

244 lines
4.4 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)
if ELIX_LEVEL_1
argp_dir=
ARGP_LIB=
else
argp_dir=argp
ARGP_LIB=argp/libargp.la
endif
SUBDIRS = machine \
$(argp_dir) \
cmath \
$(EXTRA_SUBDIRS)\
.
SUBLIBS = \
$(ARGP_LIB) \
cmath/libcmath.la \
$(EXTRA_SUBLIBS) \
$(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) \
getopt.$(oext) \
getopt1.$(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 = \
getlogin.$(oext) \
getpwent.$(oext) \
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/include/asm/signal.h
liblinux_la_LDFLAGS = -Xcompiler -nostdlib
ADD_OBJS = \
malloc.$(oext) \
gethostid.$(oext) \
sethostid.$(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_CFLAGS = $(AM_CFLAGS)
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
sig.$(oext): siglist.inc
siglist.inc:
$(AWK) '{ max = 32 } \
/#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