2000-12-09 09:20:32 +08:00
|
|
|
## Process this file with automake to generate Makefile.in
|
|
|
|
|
|
|
|
AUTOMAKE_OPTIONS = cygnus
|
|
|
|
|
|
|
|
INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
|
|
|
|
|
2001-12-14 07:50:11 +08:00
|
|
|
LIB_SOURCES = \
|
2000-12-09 09:20:32 +08:00
|
|
|
brk.c getoptlong.c ids.c inode.c io.c linux.c process.c realpath.c \
|
|
|
|
select.c signal.c systat.c termios.c time.c wait.c
|
|
|
|
|
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
|
|
|
|
SIGNAL_H = /usr/src/$(shell ls /usr/src/ | grep ^linux | head -n 1)/include/asm/signal.h
|
|
|
|
|
|
|
|
liblinux_la_LDFLAGS = -Xcompiler -nostdlib
|
|
|
|
|
|
|
|
if USE_LIBTOOL
|
|
|
|
noinst_LTLIBRARIES = liblinux.la
|
|
|
|
liblinux_la_SOURCES = $(LIB_SOURCES)
|
|
|
|
noinst_DATA = objectlist.awk.in
|
|
|
|
else
|
|
|
|
noinst_LIBRARIES = lib.a
|
|
|
|
lib_a_SOURCES = $(LIB_SOURCES)
|
|
|
|
noinst_DATA =
|
|
|
|
endif # USE_LIBTOOL
|
|
|
|
|
|
|
|
include $(srcdir)/../../../Makefile.shared
|
|
|
|
|
2000-12-09 09:20:32 +08:00
|
|
|
all: crt0.o
|
|
|
|
|
2001-12-14 07:50:11 +08:00
|
|
|
signal.$(oext): siglist.inc
|
2000-12-09 09:20:32 +08:00
|
|
|
|
|
|
|
siglist.inc:
|
2001-12-14 07:50:11 +08:00
|
|
|
$(AWK) '/#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; }
|
|
|
|
|
|
|
|
ACLOCAL_AMFLAGS = -I ../../..
|
|
|
|
CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
|