diff options
author | Thomas Bushnell <thomas@gnu.org> | 1997-05-01 19:41:23 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1997-05-01 19:41:23 +0000 |
commit | 8ce8c5f627a89c1c386f537c41908191cecb7e73 (patch) | |
tree | 9b60bf5092ff1fa96977c635288ebf5ed665939f /Makefile.in | |
parent | eb666b002a1990e2a16150b22c0259db96bb4ef1 (diff) |
1997-04-30 Marcus G. Daniels <marcus@cathcart.sysc.pdx.edu>
* Makefile.in (clib-routines): Add htons not because it is necessary,
but because libc5 systems will bring it in.
(check-clib-routines): Tolerate extra weak symbols.
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/Makefile.in b/Makefile.in index dd5f29f..b1c5421 100644 --- a/Makefile.in +++ b/Makefile.in @@ -230,7 +230,7 @@ other-headers := alloca.h # for sanity. objfiles += clib-routines.o -clib-routines = memcpy memset bcopy bzero htonl ntohl ntohs +clib-routines = memcpy memset bcopy bzero htonl htons ntohl ntohs clib-routines.o: $(installed-clib) $(LD) -o clib-routines.o -r $(addprefix -u ,$(clib-routines)) $(installed-clib) @@ -239,7 +239,10 @@ clib-routines.o: $(installed-clib) # extra symbols. kernel: check-clib-routines check-clib-routines: clib-routines.o - test `echo $(clib-routines) | wc -w` -eq `nm -g $< | wc -l` && touch check-clib-routines + nm -g $< | awk '$(foreach sym,$(clib-routines),$$3 == "$(sym)" ||) 0 { match_cnt++ } \ + $$2 == "W" { weak_cnt++ } \ + { total_cnt++ } \ + END { exit total_cnt - (match_cnt + weak_cnt) } ' && touch check-clib-routines # Empty dependency file @@ -301,6 +304,7 @@ mostlyclean: distclean maintainer-clean: mostlyclean rm -f $(srcdir)/configure $(all-archs-configures) +check: # @@ -514,11 +518,6 @@ $(subst .o,.d,$(cross-mig-objfiles)): cross-%.d: $(srcdir)/mig/%.c mv -f $@.new $@ endif -./cross-mig: $(srcdir)/mig/mig.sh Makefile - sed -e 's,@MIGDIR@,$(libexecdir),g' \ - -e 's,@CPP@,${CC} -x c-header -E,g' \ - $< >$@.tmp && chmod +x $@.tmp && mv -f $@.tmp $@ - ifeq ($(cross_compiling),yes) # When cross compiling, we build two migcoms; one for our use and one to # install. Otherwise, we just build the one. |