aboutsummaryrefslogtreecommitdiff
path: root/gdb/Makefile.in
diff options
context:
space:
mode:
authorThomas Lord <lord@cygnus>1994-05-25 15:39:12 +0000
committerThomas Lord <lord@cygnus>1994-05-25 15:39:12 +0000
commit8eb7b7c354b64bd3fe364f5cc7465465c4fb6c9f (patch)
tree9e0d57ac0abe16d3819be9958429fa339a5d86be /gdb/Makefile.in
parenta13d789c7f192a5e7022b78beedf049125b59e74 (diff)
downloadgdb-8eb7b7c354b64bd3fe364f5cc7465465c4fb6c9f.zip
gdb-8eb7b7c354b64bd3fe364f5cc7465465c4fb6c9f.tar.gz
gdb-8eb7b7c354b64bd3fe364f5cc7465465c4fb6c9f.tar.bz2
Make all the libgdb objects even when building gdb. This is because
cyscm links against ../../gdb/{...}.o Added a new target: libgdb-files. It creates a file of that name containing a list of files for libgdb. If the variable LIBGDBPREFIX is set, each file name has that prepended.
Diffstat (limited to 'gdb/Makefile.in')
-rw-r--r--gdb/Makefile.in13
1 files changed, 12 insertions, 1 deletions
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index 7362b70..b01a8e8 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -549,12 +549,23 @@ init.c: $(OBS) $(TSOBS)
.PRECIOUS: init.c
+# The gdb target has two dependencies that aren't really
+# used when linking gdb. They are built for the sake of cyscm.
+
# Removing the old gdb first works better if it is running, at least on SunOS.
-gdb: $(OBS) $(TSOBS) $(ADD_DEPS) $(CDEPS) init.o
+gdb: $(OBS) $(TSOBS) $(ADD_DEPS) $(CDEPS) init.o libmain.o libutils.o
rm -f gdb
$(CC-LD) $(INTERNAL_LDFLAGS) -o gdb \
init.o $(OBS) $(TSOBS) $(ADD_FILES) $(CLIBS) $(LOADLIBES)
+LIBGDBFILES=$(LIBGDB_OBS) $(TSOBS) $(ADD_DEPS) $(CDEPS) init.o
+LIBGDBPREFIX=.
+libgdb-files: force_update
+ -rm -f libgdb-files
+ for i in $(LIBGDBFILES); do\
+ echo ${LIBGDBPREFIX}/$$i >> libgdb-files;\
+ done
+
libgdb.a: $(LIBGDB_OBS) $(TSOBS) $(ADD_DEPS) $(CDEPS) init.o
rm -f libgdb.a
$(AR) $(AR_FLAGS) libgdb.a $(LIBGDB_OBS) $(TSOBS) $(ADD_FILES) init.o