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.
+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
# 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)
$(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* \
# 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 ;;
if [ ! -f ${srcdir}/${target_makefile_frag} ] ; then
target_makefile_frag=
fi
-
-files=
-links=
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] \
* @(#)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"
*/
long hz;
-typedef u_short UNIT; /* unit of profiling */
+typedef unsigned short UNIT; /* unit of profiling */
char *a_outname;
#define A_OUTNAME "a.out"