summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1997-05-02 17:09:57 +0000
committerThomas Bushnell <thomas@gnu.org>1997-05-02 17:09:57 +0000
commit16ca07b00a4144acb018e0543377e357612b8e77 (patch)
treee1b63e574a0296e50dedae8e2e5dfb2857e9fad2 /Makefile.in
parent5a62d3a36afc544f61112f216f936c25be4916cd (diff)
Fri May 2 12:43:46 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
* Makefile.in (enable_kdb): New variable. (clib-routines): If enable_kdb, then add strstr. * i386/i386/_setjmp.S: New file, from UK22 libmach. * i386/Files: Add i386/i386/_setjmp.S. * i386/Makefrag (objfiles): Add _setjmp.o if enable_kdb.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in12
1 files changed, 11 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index b1c5421..7f1417c 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -36,6 +36,13 @@ ifeq ($(cross_linkable),yes)
cross-migcom = cross-migcom
endif
+# Detect if the user wants KDB
+ifeq ($(filter -DMACH_KDB,@DEFS@),-DMACH_KDB)
+enable_kdb=yes
+else
+enable_kdb=no
+endif
+
# Programs found by configure.
AWK=@AWK@
INSTALL=@INSTALL@
@@ -230,7 +237,10 @@ other-headers := alloca.h
# for sanity.
objfiles += clib-routines.o
-clib-routines = memcpy memset bcopy bzero htonl htons ntohl ntohs
+clib-routines := memcpy memset bcopy bzero htonl htons ntohl ntohs
+ifeq ($(enable_kdb),yes)
+clib-routines += strstr
+endif
clib-routines.o: $(installed-clib)
$(LD) -o clib-routines.o -r $(addprefix -u ,$(clib-routines)) $(installed-clib)