]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* M Makefile.in: Add -g to CFLAGS.
authorPer Bothner <per@bothner.com>
Tue, 13 Apr 1993 23:20:14 +0000 (23:20 +0000)
committerPer Bothner <per@bothner.com>
Tue, 13 Apr 1993 23:20:14 +0000 (23:20 +0000)
Ads LDFLAGS and use in place of CFLAGS where appropriate.
* configure.in:  Make a sysdep.hlink in the same way other
bfd-based directories do.
* gprof.h (UNIT):  Replace non-standard 'u_short' by 'unsigned
short'.
* gprof.h:  #include sysdep.h instead of a bunch of stuff.
* gprof.c (main):  Fix typo gproff->gprof.

gprof/ChangeLog
gprof/Makefile.in
gprof/configure.in
gprof/gprof.c
gprof/gprof.h

index 05179071298565f1f86a2719836cf9747ea56db9..61b7896281e66e26dd2c2c8c8b1b87fd68fce377 100644 (file)
@@ -1,3 +1,14 @@
+Tue Apr 13 16:14:03 1993  Per Bothner  (bothner@cygnus.com)
+
+       * M Makefile.in:  Add -g to CFLAGS.
+       Ads LDFLAGS and use in place of CFLAGS where appropriate.
+       * configure.in:  Make a sysdep.hlink in the same way other
+       bfd-based directories do.
+       * gprof.h (UNIT):  Replace non-standard 'u_short' by 'unsigned
+       short'.
+       * gprof.h:  #include sysdep.h instead of a bunch of stuff.
+       * gprof.c (main):  Fix typo gproff->gprof.
+
 Thu Mar 25 19:00:37 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
 
        * gprof.texi: add INFO-DIR-ENTRY
index ed148e7e0752c3b49674dd5c522c655351c94e34..fa43826ef8517b6a530d31dd8df745be7330d838 100644 (file)
@@ -40,9 +40,10 @@ OBJS=        gprof.o arcs.o dfn.o lookup.o $(MACHINE).o hertz.o \
 # Files that can be generated, but should be included in distribution.
 DISTSTUFF = flat_bl.c bsd_callg_bl.c fsf_callg_bl.c
 
-CFLAGS=        
+CFLAGS=-g
+LDFLAGS=
 .c.o:
-       $(CC) -c $(CFLAGS) -I$(srcdir) -I$(srcdir)/../include -DMACHINE_H=\"$(MACHINE).h\" $(TCFLAGS) $(HCFLAGS) $<
+       $(CC) -c $(CFLAGS) -I. -I$(srcdir) -I$(srcdir)/../include -I$(srcdir)/../bfd -DMACHINE_H=\"$(MACHINE).h\" $(TCFLAGS) $(HCFLAGS) $<
 
 all:   diststuff $(PROG)
 
@@ -90,7 +91,7 @@ install: all install-info
        $(INSTALL_DATA) $(srcdir)/gprof.1 $(man1dir)/gprof.1
 
 $(PROG):       $(OBJS)
-       $(CC) $(CFLAGS) $(OBJS) -o $(PROG) $(LIBS)
+       $(CC) -o $(PROG) $(LDFLAGS) $(OBJS) $(LIBS)
 
 mostlyclean:
        -rm -f *.o core gprof nohup.out gprof.info* \
index f0698c383d95ed9eaca0f0c8cc57379262283c48..fbec79887f395ed71a3e9b327954c4391ebd5f29 100644 (file)
@@ -8,6 +8,12 @@ srcname="gprof"
 
 # per-host:
 
+. ${srcdir}/../bfd/configure.host
+
+# Set up to make a link between the host's include file and "sysdep.h".
+files="../bfd/hosts/${my_host}.h"
+links="sysdep.h"
+
 # per-target:
 case "${target}" in
 i386-*-*)      my_target=i386 ;;
@@ -21,6 +27,3 @@ target_makefile_frag=config/mt-${my_target}
 if [ ! -f ${srcdir}/${target_makefile_frag} ] ; then
        target_makefile_frag=
 fi
-
-files=
-links=
index afb5b86794e7d3fc3cc22de788470fc22785a8fb..809843800a58fa99acd36cf88caf53560edf658b 100644 (file)
@@ -112,7 +112,7 @@ main(argc, argv)
            zflag = TRUE;
            break;
        default:
-           fprintf (stderr, "usage:  gproff [-a] [-b] [-c] [-d[num]] \
+           fprintf (stderr, "usage:  gprof [-a] [-b] [-c] [-d[num]] \
 [-E function-name] [-e function-name] \
 [-F function-name] [-f function-name] \
 [-k from to] [-s] [-T] [-z] [image-file] \
index 28813a3011d675266aa706e3ae5ad75ced768ad7..d10f50c396a887c4b44c8a9747d6d3be31134f1e 100644 (file)
  *     @(#)gprof.h     5.9 (Berkeley) 6/1/90
  */
 
-#include <stdio.h>
-#ifdef __STDC__
-#include <stdlib.h>
-#endif /* __STDC__ */
-#include <sys/types.h>
-#include <sys/stat.h>
+#include "sysdep.h"
 #include "bfd.h"
 #include "gmon.h"
 
@@ -60,7 +55,7 @@ typedef int   bool;
      */
 long   hz;
 
-typedef        u_short UNIT;           /* unit of profiling */
+typedef        unsigned short UNIT;            /* unit of profiling */
 char   *a_outname;
 #define        A_OUTNAME               "a.out"