1992-03-06 12:54:37 +01:00
|
|
|
# @(#)Makefile 5.17 (Berkeley) 5/11/90
|
|
|
|
|
1994-05-18 00:56:13 +02:00
|
|
|
.SUFFIXES : .m
|
|
|
|
|
1995-04-19 20:27:35 +02:00
|
|
|
VPATH = @srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
prefix = @prefix@
|
|
|
|
|
1992-07-13 04:24:24 +02:00
|
|
|
exec_prefix = $(prefix)
|
1995-04-19 20:27:35 +02:00
|
|
|
program_transform_name = @program_transform_name@
|
|
|
|
|
1992-07-13 04:24:24 +02:00
|
|
|
bindir = $(exec_prefix)/bin
|
|
|
|
libdir = $(exec_prefix)/lib
|
1992-06-04 21:10:49 +02:00
|
|
|
tooldir = $(libdir)
|
1992-07-13 04:24:24 +02:00
|
|
|
mandir = $(prefix)/man
|
|
|
|
man1dir = $(mandir)/man1
|
1992-06-04 21:10:49 +02:00
|
|
|
|
1993-02-03 23:03:33 +01:00
|
|
|
infodir = $(prefix)/info
|
1992-06-04 21:10:49 +02:00
|
|
|
datadir = $(prefix)/lib
|
|
|
|
|
1995-05-18 02:58:02 +02:00
|
|
|
SHELL = /bin/sh
|
|
|
|
|
1993-07-06 19:12:20 +02:00
|
|
|
INSTALL = `cd $(srcdir); pwd`/../install.sh -c
|
1992-06-04 21:10:49 +02:00
|
|
|
INSTALL_PROGRAM = $(INSTALL)
|
1993-07-06 19:12:20 +02:00
|
|
|
INSTALL_DATA = $(INSTALL)
|
|
|
|
INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)'
|
|
|
|
INSTALL_XFORM1 = $(INSTALL_XFORM) -b=.1
|
1993-02-03 23:03:33 +01:00
|
|
|
MAKEINFO = makeinfo
|
|
|
|
TEX = tex
|
|
|
|
TEXINDEX = texindex
|
|
|
|
|
|
|
|
# this is the directory we look in to find Texinfo
|
|
|
|
texidir = $(srcdir)/../texinfo
|
1992-06-04 21:10:49 +02:00
|
|
|
|
1995-04-20 23:30:10 +02:00
|
|
|
MY_TARGET= @MY_TARGET@
|
1991-07-23 21:09:22 +02:00
|
|
|
|
|
|
|
PROG= gprof
|
1995-04-20 23:30:10 +02:00
|
|
|
SRCS= $(MY_TARGET).c basic_blocks.c call_graph.c \
|
1995-02-07 23:34:18 +01:00
|
|
|
cg_arcs.c cg_dfn.c cg_print.c core.c \
|
|
|
|
gmon_io.c gprof.c hertz.c hist.c source.c search_list.c symtab.c \
|
|
|
|
sym_ids.c utils.c
|
|
|
|
|
1996-02-05 22:35:22 +01:00
|
|
|
LIBDEPS = ../bfd/libbfd.a ../libiberty/libiberty.a
|
1996-02-07 20:08:04 +01:00
|
|
|
LIBS = @BFDLIB@ ../libiberty/libiberty.a
|
1991-07-23 21:09:22 +02:00
|
|
|
|
1995-04-20 23:30:10 +02:00
|
|
|
OBJS= $(MY_TARGET).o basic_blocks.o bsd_callg_bl.o call_graph.o \
|
1995-02-07 23:34:18 +01:00
|
|
|
cg_arcs.o cg_dfn.o cg_print.o core.o flat_bl.o fsf_callg_bl.o \
|
|
|
|
gmon_io.o gprof.o hertz.o hist.o source.o search_list.o symtab.o \
|
|
|
|
sym_ids.o utils.o
|
1992-10-06 01:57:18 +01:00
|
|
|
|
|
|
|
# Files that can be generated, but should be included in distribution.
|
1995-11-01 21:50:55 +01:00
|
|
|
GEN_FILES = flat_bl.c bsd_callg_bl.c fsf_callg_bl.c
|
1991-07-23 21:09:22 +02:00
|
|
|
|
1995-02-07 23:34:18 +01:00
|
|
|
CFLAGS=-g -DDEBUG
|
1993-04-14 01:20:14 +02:00
|
|
|
LDFLAGS=
|
1996-02-07 20:08:04 +01:00
|
|
|
HLDFLAGS = @HLDFLAGS@
|
1992-06-02 19:22:47 +02:00
|
|
|
.c.o:
|
1995-04-20 23:30:10 +02:00
|
|
|
$(CC) -c $(CFLAGS) -I. -I$(srcdir) -I../bfd -I$(srcdir)/../include -I$(srcdir)/../bfd -DMACHINE_H=\"$(MY_TARGET).h\" $(TCFLAGS) $(HCFLAGS) $<
|
1992-03-06 12:54:37 +01:00
|
|
|
|
1995-11-01 21:50:55 +01:00
|
|
|
all: $(GEN_FILES) $(PROG)
|
1991-07-23 21:09:22 +02:00
|
|
|
|
1993-03-23 09:03:44 +01:00
|
|
|
.PHONY: check installcheck info install-info
|
1992-10-06 01:57:18 +01:00
|
|
|
.SUFFIXES: .m
|
|
|
|
|
|
|
|
.m.c:
|
|
|
|
awk -f $(srcdir)/gen-c-prog.awk > ./$*.c \
|
1995-11-21 20:26:27 +01:00
|
|
|
FUNCTION=`(echo $*|sed -e 's,.*/,,g' -e 's/_bl//')`_blurb \
|
1992-10-06 01:57:18 +01:00
|
|
|
FILE=$*.m $(srcdir)/$*.m
|
|
|
|
|
1995-11-01 21:50:55 +01:00
|
|
|
diststuff: $(GEN_FILES) info
|
1993-02-03 23:03:33 +01:00
|
|
|
|
|
|
|
gprof.info: gprof.texi
|
|
|
|
$(MAKEINFO) -o gprof.info $(srcdir)/gprof.texi
|
|
|
|
|
|
|
|
gprof.dvi: gprof.texi
|
|
|
|
TEXINPUTS=${TEXIDIR}:$(srcdir):$$TEXINPUTS $(TEX) $(srcdir)/gprof.texi
|
|
|
|
$(TEXINDEX) gprof.??
|
|
|
|
TEXINPUTS=${TEXIDIR}:$(srcdir):$$TEXINPUTS $(TEX) $(srcdir)/gprof.texi
|
|
|
|
|
|
|
|
info: gprof.info
|
|
|
|
|
|
|
|
dvi: gprof.dvi
|
1992-10-06 01:57:18 +01:00
|
|
|
|
1992-03-08 10:11:19 +01:00
|
|
|
check:
|
1993-03-23 09:03:44 +01:00
|
|
|
installcheck:
|
1992-03-08 10:11:19 +01:00
|
|
|
|
1995-11-06 21:12:26 +01:00
|
|
|
TAGS:
|
|
|
|
etags $(srcdir)/*.[ch]
|
|
|
|
tags: TAGS
|
|
|
|
|
1994-05-06 01:24:33 +02:00
|
|
|
install-info: gprof.info
|
|
|
|
if [ -r gprof.info ]; then \
|
|
|
|
dir=. ; \
|
|
|
|
else \
|
|
|
|
dir=$(srcdir) ; \
|
|
|
|
fi ; \
|
|
|
|
for i in `cd $$dir; echo gprof.info*` ; do \
|
|
|
|
$(INSTALL_DATA) $$dir/$$i $(infodir)/$$i ; \
|
1993-02-03 23:03:33 +01:00
|
|
|
done
|
|
|
|
|
1995-04-26 03:11:57 +02:00
|
|
|
install: all
|
1993-07-06 19:12:20 +02:00
|
|
|
$(INSTALL_XFORM) gprof $(bindir)/gprof
|
|
|
|
$(INSTALL_XFORM1) $(srcdir)/gprof.1 $(man1dir)/gprof.1
|
1991-07-23 21:09:22 +02:00
|
|
|
|
1996-02-05 22:35:22 +01:00
|
|
|
gprof: $(OBJS) $(LIBDEPS)
|
1996-02-07 20:08:04 +01:00
|
|
|
$(CC) -o $(PROG) $(HLDFLAGS) $(LDFLAGS) $(OBJS) $(LIBS)
|
1992-03-06 12:54:37 +01:00
|
|
|
|
1992-10-06 01:57:18 +01:00
|
|
|
mostlyclean:
|
1995-10-25 21:24:00 +01:00
|
|
|
-rm -f *.o core gprof nohup.out \
|
1993-02-03 23:03:33 +01:00
|
|
|
gprof.cps gprof.fns gprof.log gprof.ps gprof.tps\
|
|
|
|
gprof.aux gprof.dvi gprof.ky gprof.pg gprof.toc gprof.vr\
|
|
|
|
gprof.cp gprof.fn gprof.kys gprof.pgs gprof.tp gprof.vrs
|
1992-10-06 01:57:18 +01:00
|
|
|
clean: mostlyclean
|
|
|
|
-rm -f gprof
|
|
|
|
distclean: clean
|
1995-06-12 21:15:58 +02:00
|
|
|
-rm -f config.cache config.log config.status Makefile
|
1995-09-20 19:21:54 +02:00
|
|
|
maintainer-clean realclean: distclean
|
1995-11-01 21:50:55 +01:00
|
|
|
-rm -f $(GEN_FILES) *.info*
|
1992-07-13 04:24:24 +02:00
|
|
|
|
1995-05-18 02:58:02 +02:00
|
|
|
Makefile: Makefile.in config.status
|
|
|
|
$(SHELL) config.status
|
1992-07-13 04:24:24 +02:00
|
|
|
|
1995-05-18 02:58:02 +02:00
|
|
|
config.status: configure
|
|
|
|
$(SHELL) config.status --recheck
|
1992-07-13 04:24:24 +02:00
|
|
|
|
1995-10-06 21:51:43 +01:00
|
|
|
$(OBJS): ../bfd/bfd.h call_graph.h cg_arcs.h cg_print.h core.h gmon_io.h \
|
|
|
|
gmon_out.h gprof.h hertz.h hist.h search_list.h source.h sym_ids.h \
|
|
|
|
symtab.h utils.h $(srcdir)/../include/libiberty.h \
|
|
|
|
$(srcdir)/../bfd/sysdep.h $(MY_TARGET).h
|
|
|
|
|
1992-06-04 09:34:23 +02:00
|
|
|
# These get around a bug in Sun Make in SunOS 4.1.1 and Solaris 2
|
1995-04-20 23:30:10 +02:00
|
|
|
$(MY_TARGET).o: $(MY_TARGET).c
|
1995-02-07 23:34:18 +01:00
|
|
|
basic_blocks.o: basic_blocks.c
|
|
|
|
bsd_call_bl.o: bsd_call_bl.c
|
|
|
|
call_graph.o: call_graph.c
|
|
|
|
cg_arcs.o: cg_arcs.c
|
|
|
|
cg_dfn.o: cg_dfn.c
|
|
|
|
cg_print.o: cg_print.c
|
|
|
|
core.o: core.c
|
1992-10-06 01:57:18 +01:00
|
|
|
flat_bl.o: flat_bl.c
|
|
|
|
fsf_callg_bl.o: fsf_callg_bl.c
|
1995-02-07 23:34:18 +01:00
|
|
|
gmon_io.o: gmon_io.c
|
|
|
|
gprof.o: gprof.c
|
|
|
|
hertz.o: hertz.c
|
|
|
|
hist.o: hist.c
|
|
|
|
search_list.o: search_list.c
|
|
|
|
source.o: source.c
|
|
|
|
symtab.o: symtab.c
|
|
|
|
sym_ids.o: sym_ids.c
|
|
|
|
utils.o: utils.c
|