summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2001-08-17 07:31:44 +0000
committerRoland McGrath <roland@gnu.org>2001-08-17 07:31:44 +0000
commit6b15ddc41310cc300af12b12f25c4f0bccca6aca (patch)
treebc082fd5ed1672fdfc95c0651c7139d7aa818cea /Makefile.in
parentc5b0f521fc5d39407c7d061ced7a51d9ff8e01a4 (diff)
2001-08-17 Roland McGrath <roland@frob.com>
* Makefile.in (clib-routines): Add strchr. (kernel-undef-bad): Depend on Makefile. * Makefile.in ($(srcdir)/configure, $(srcdir)/config.h.in): Use $(srcdir) in deps. (Makefile, config.h, config.status): Likewise.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in16
1 files changed, 11 insertions, 5 deletions
diff --git a/Makefile.in b/Makefile.in
index 54cb9cd..21abf57 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -297,7 +297,7 @@ check:
# This is the list of routines we decide is OK to steal from the C library.
clib-routines := memcpy memmove memset bcopy bzero \
- strstr \
+ strchr strstr \
htonl htons ntohl ntohs \
etext edata end # actually ld magic, not libc
@@ -308,7 +308,7 @@ kernel.o: $(objfiles) # kernel.a
$(LD) -r -o $@ $^
kernel-undef: kernel.o
$(NM) -u $< | sed 's/^_*//' | sort -u > $@
-kernel-undef-bad: kernel-undef
+kernel-undef-bad: kernel-undef Makefile
sed '$(foreach r,$(clib-routines),/^$r$$/d;)' $< > $@
clib-routines.o: kernel-undef kernel-undef-bad
if test -s kernel-undef-bad; \
@@ -393,13 +393,19 @@ dist:
#
# Autoconf support
#
-$(srcdir)/configure: configure.in
+$(srcdir)/configure: $(srcdir)/configure.in
cd $(srcdir) && autoconf
+$(srcdir)/config.h.in: $(srcdir)/acconfig.h
+ cd $(srcdir) && autoheader
-Makefile: Makefile.in config.status
+Makefile: $(srcdir)/Makefile.in config.status
./config.status
+config.h: stamp-configh ;
+stamp-configh: $(srcdir)/config.h.in config.status
+ ./config.status
+ touch $@
-config.status: configure
+config.status: $(srcdir)/configure
./config.status --recheck
vpath %.in $(srcdir)