+Wed May 25 17:06:15 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
+
+ * Makefile.in: Replace libgdb.a with libgdb-files. Make "all"
+ build it.
+
Thu May 19 09:56:20 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
* target.c, target.h: New variables target_activity_function and
OBS = $(COMMON_OBS) main.o utils.o annotate.o
-LIBGDB_OBS = $(COMMON_OBS) libmain.o libutils.o
+LIBGDB_OBS = libmain.o libutils.o
TSOBS = inflow.o
.c.o:
$(CC) -c $(INTERNAL_CFLAGS) $<
-all: gdb
+all: gdb libgdb-files $(LIBGDB_OBS)
@$(MAKE) $(FLAGS_TO_PASS) DO=all "DODIRS=`echo $(SUBDIRS) | sed 's/testsuite//'`" subdir_do
installcheck:
.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 libmain.o libutils.o
+gdb: $(OBS) $(TSOBS) $(ADD_DEPS) $(CDEPS) init.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
+LIBGDBFILES=$(COMMON_OBS) $(LIBGDB_OBS) $(TSOBS) $(ADD_DEPS) $(CDEPS) init.o
+libgdb-files: $(LIBGDBFILES) Makefile.in
-rm -f libgdb-files
for i in $(LIBGDBFILES); do\
- echo ${LIBGDBPREFIX}/$$i >> libgdb-files;\
+ echo $$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
- $(RANLIB) libgdb.a
-
libmain.o: main.c
$(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/main.c -DMAIN_OVERRIDE \
-o libmain.o