+Sat Jan 22 16:20:46 1994 Stan Shebs (shebs@andros.cygnus.com)
+
+ * Makefile.in (MALLOC): Set to emptiness by default.
+ (ALL_CFLAGS): Add and use.
+ (arparse.h): Make it depend on arparse.y.
+ * ar.c (libbfd.h): Don't require to be in ../bfd.
+ * objdump.c (comp): Rename to compare_symbols.
+
Fri Jan 21 20:22:30 1994 David J. Mackenzie (djm@thepub.cygnus.com)
* objdump.c (list_matching_formats): If the file format is ambiguous,
# Makefile for GNU binary-file utilities
-# Copyright (C) 1992, 1993 Free Software Foundation, Inc.
+# Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
# This file is part of GNU binutils.
# Where to find texinfo.tex to format docn with TeX
TEXIDIR = $(srcdir)/../texinfo
-MANPAGES= ar nm objdump ranlib size strings strip c++filt objcopy
+MANPAGES= ar nm objdump ranlib size strings strip c++filt objcopy nlmconv
#CC=gcc -Wall
# these two are almost the same program
#### host and target dependant Makefile fragments come in here.
###
+ALL_CFLAGS = $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CFLAGS)
+
.c.o:
- $(CC) -c $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CFLAGS) $<
+ $(CC) -c $(ALL_CFLAGS) $<
#\f
## Random definitions
# fail unnecessarily. I've also seen some Unix malloc's fail, even when
# there is enough memory. So use the new GNU malloc.
# MALLOC = gmalloc.o
+# Use this if the system malloc is good enough.
+MALLOC =
# Use the GNU getopt unless you have problems with it.
# The IRIS version could probably benefit from being assembled with
$(DEMANGLER_PROG): cplus-dem.o $(LIBIBERTY) underscore.o version.o
$(CC) $(CFLAGS) $(LDFLAGS) -o $(DEMANGLER_PROG) cplus-dem.o $(LIBIBERTY) $(EXTRALIBS) underscore.o version.o
-arparse.c: arparse.y
+arparse.h arparse.c: arparse.y
$(BISON) $(BISONFLAGS) $(srcdir)/arparse.y
-mv y.tab.c arparse.c
-mv y.tab.h arparse.h
rm -f nlmheader.c
-mv y.tab.c nlmheader.c
+nlmconv.o: nlmconv.c
+ ldname=`t='$(program_transform_name)'; echo ld | sed -e "" $$t`; \
+ $(CC) -c -DLD_NAME="\"$${ldname}\"" $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CFLAGS) $(srcdir)/nlmconv.c
+
$(NLMCONV_PROG): nlmconv.o nlmheader.o $(ADDL_LIBS) $(BFD)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ nlmconv.o nlmheader.o $(ADDL_LIBS) $(EXTRALIBS)
bucomm.o: bucomm.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
$(INCDIR)/obstack.h ../bfd/sysdep.h $(BFDDIR)/hosts/std-host.h \
- $(INCDIR)/fopen-same.h
+ $(INCDIR)/fopen-same.h bucomm.h
filemode.o: filemode.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
$(INCDIR)/obstack.h ../bfd/sysdep.h $(BFDDIR)/hosts/std-host.h \
$(INCDIR)/fopen-same.h
not-strip.o: not-strip.c
nlmheader.o: nlmheader.c nlmconv.h $(INCDIR)/nlm/common.h \
$(INCDIR)/nlm/internal.h
-nlmconv.o: nlmconv.c nlmconv.h $(INCDIR)/nlm/common.h \
- $(INCDIR)/nlm/internal.h $(BFDDIR)/libnlm.h bucomm.h
+nlmconv.o: $(INCDIR)/nlm/common.h $(INCDIR)/nlm/internal.h \
+ $(BFDDIR)/libnlm.h bucomm.h
stage1: force
- mkdir stage1
/* ar.c - Archive modify and extract.
- Copyright 1991, 1992 Free Software Foundation, Inc.
+ Copyright 1991, 1992, 1994 Free Software Foundation, Inc.
This file is part of GNU Binutils.
#include "sysdep.h"
#include "bucomm.h"
#include "aout/ar.h"
-#include "../bfd/libbfd.h"
+#include "libbfd.h"
#include "arsup.h"
#include <stdio.h>
#ifdef POSIX_UTIME
mri_mode = 1;
break;
default:
- fprintf(stderr, "%s: illegal option -- %c", program_name, c);
+ fprintf(stderr, "%s: illegal option -- %c\n", program_name, c);
usage ();
}
}
/* objdump.c -- dump information about an object file.
- Copyright 1990, 1991, 1992, 1993 Free Software Foundation, Inc.
+ Copyright 1990, 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
This file is part of GNU Binutils.
}
-/* Sort symbols into value order */
+/* Sort symbols into value order. */
+
static int
-comp (ap, bp)
+compare_symbols (ap, bp)
PTR ap;
PTR bp;
{
symcount = remove_useless_symbols (syms, symcount);
/* Sort the symbols into section and symbol order */
- (void) qsort (syms, symcount, sizeof (asymbol *), comp);
+ (void) qsort (syms, symcount, sizeof (asymbol *), compare_symbols);
if (machine != (char *) NULL)
{