1992-03-06 19:54:37 +08:00
|
|
|
# @(#)Makefile 5.17 (Berkeley) 5/11/90
|
|
|
|
|
1992-07-13 10:24:24 +08:00
|
|
|
srcdir = .
|
1992-06-04 15:34:23 +08:00
|
|
|
|
1992-07-13 10:24:24 +08:00
|
|
|
prefix = /usr/local
|
1992-06-05 03:10:49 +08:00
|
|
|
|
1992-07-13 10:24:24 +08:00
|
|
|
program_prefix =
|
|
|
|
exec_prefix = $(prefix)
|
|
|
|
bindir = $(exec_prefix)/bin
|
|
|
|
libdir = $(exec_prefix)/lib
|
1992-06-05 03:10:49 +08:00
|
|
|
tooldir = $(libdir)
|
1992-07-13 10:24:24 +08:00
|
|
|
mandir = $(prefix)/man
|
|
|
|
man1dir = $(mandir)/man1
|
1992-06-05 03:10:49 +08:00
|
|
|
|
|
|
|
datadir = $(prefix)/lib
|
|
|
|
|
1992-07-13 10:24:24 +08:00
|
|
|
INSTALL = install -c
|
1992-06-05 03:10:49 +08:00
|
|
|
INSTALL_PROGRAM = $(INSTALL)
|
1992-07-13 10:24:24 +08:00
|
|
|
INSTALL_DATA = $(INSTALL)
|
1992-06-05 03:10:49 +08:00
|
|
|
|
1992-03-06 19:54:37 +08:00
|
|
|
#### host and target dependent Makefile fragments come in here.
|
|
|
|
###
|
1991-07-24 04:09:22 +09:00
|
|
|
|
|
|
|
PROG= gprof
|
|
|
|
SRCS= gprof.c arcs.c dfn.c lookup.c ${MACHINE}.c hertz.c \
|
|
|
|
printgprof.c printlist.c
|
|
|
|
LIBS = ../bfd/libbfd.a ../libiberty/libiberty.a
|
|
|
|
|
1992-07-20 08:48:14 +08:00
|
|
|
OBJS= blurbs.o gprof.o arcs.o dfn.o lookup.o $(MACHINE).o hertz.o \
|
1991-07-24 04:09:22 +09:00
|
|
|
printgprof.o printlist.o
|
|
|
|
|
1992-06-04 15:34:23 +08:00
|
|
|
CFLAGS=
|
1992-06-03 01:22:47 +08:00
|
|
|
.c.o:
|
1992-07-20 08:48:14 +08:00
|
|
|
$(CC) -c $(CFLAGS) -I$(srcdir) -I$(srcdir)/../include -DMACHINE_H=\"$(MACHINE).h\" $(TCFLAGS) $(HCFLAGS) $<
|
1992-03-06 19:54:37 +08:00
|
|
|
|
1992-07-20 08:48:14 +08:00
|
|
|
all: $(PROG)
|
1991-07-24 04:09:22 +09:00
|
|
|
|
1992-07-13 10:24:24 +08:00
|
|
|
.PHONY: check info install-info
|
1992-03-08 17:11:19 +08:00
|
|
|
check:
|
1992-07-13 10:24:24 +08:00
|
|
|
info:
|
|
|
|
install-info:
|
1992-03-08 17:11:19 +08:00
|
|
|
|
1992-06-05 03:10:49 +08:00
|
|
|
install: all
|
1992-07-20 08:48:14 +08:00
|
|
|
$(INSTALL_DATA) $(srcdir)/gprof.1 $(man1dir)/gprof.1
|
|
|
|
$(INSTALL_PROGRAM) $(PROG) $(bindir)
|
1991-07-24 04:09:22 +09:00
|
|
|
|
|
|
|
$(PROG): $(OBJS)
|
|
|
|
$(CC) $(CFLAGS) $(OBJS) -o $(PROG) $(LIBS)
|
1992-03-06 19:54:37 +08:00
|
|
|
|
1992-07-13 10:24:24 +08:00
|
|
|
# Make blurbs.c from gprof.callg and gprof.flat
|
1992-07-20 08:48:14 +08:00
|
|
|
blurbs.c: $(srcdir)/gprof.callg $(srcdir)/gprof.flat $(srcdir)/make-c-prog.awk
|
|
|
|
awk -f $(srcdir)/make-c-prog.awk > ./blurbs.c \
|
|
|
|
FUNCTION=flat_blurb $(srcdir)/gprof.flat \
|
|
|
|
FUNCTION=callg_blurb $(srcdir)/gprof.callg \
|
1992-07-13 10:24:24 +08:00
|
|
|
|
1992-03-06 19:54:37 +08:00
|
|
|
clean:
|
|
|
|
-rm -f $(OBJS) core gprof nohup.out
|
1992-07-13 10:24:24 +08:00
|
|
|
|
|
|
|
Makefile : Makefile.in
|
|
|
|
sh config.status
|
|
|
|
|
|
|
|
|
1992-06-04 15:34:23 +08:00
|
|
|
# These get around a bug in Sun Make in SunOS 4.1.1 and Solaris 2
|
|
|
|
gprof.o: gprof.c
|
|
|
|
arcs.o: arcs.c
|
|
|
|
dfn.o: dfn.c
|
|
|
|
lookup.o: lookup.c
|
1992-07-20 08:48:14 +08:00
|
|
|
$(MACHINE).o: $(MACHINE).c
|
1992-06-04 15:34:23 +08:00
|
|
|
hertz.o: hertz.c
|
|
|
|
printgprof.o: printgprof.c
|
|
|
|
printlist.o: printlist.c
|
1992-07-13 10:24:24 +08:00
|
|
|
blurbs.o: blurbs.c
|