aboutsummaryrefslogtreecommitdiff
path: root/gprof/Makefile.in
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1992-07-13 02:24:24 +0000
committerJohn Gilmore <gnu@cygnus>1992-07-13 02:24:24 +0000
commit9388476b43b2b36431b06d3ba53e27087b98839f (patch)
treeb6e0941676d54efcf092fb2780201a273320e5b3 /gprof/Makefile.in
parentf8f1415a4af940e1c64ad75102916ecda459aa42 (diff)
downloadgdb-9388476b43b2b36431b06d3ba53e27087b98839f.zip
gdb-9388476b43b2b36431b06d3ba53e27087b98839f.tar.gz
gdb-9388476b43b2b36431b06d3ba53e27087b98839f.tar.bz2
* blurbs.c: New file, created from gprof.flat and gprof.callg by
* make-c-prog.awk: which processes text files into C programs. * printgprof.c (flatprofheader, gprofheader): Call new functions to print blurbs. (printblurb): Remove. * Makefile.in: Infrastructure to build blurbs. * pathnames.h: has been removed. Gprof now has no filename dependencies in it. * gprof.c: Lint. Sat Jul 11 18:07:21 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com) * Makefile.in: define man1dir and install the man page Fri Jul 10 21:14:08 1992 david d `zoo' zuhn (zoo@cygnus.com) * Makefile.in: added dummy info and install-info targets
Diffstat (limited to 'gprof/Makefile.in')
-rw-r--r--gprof/Makefile.in37
1 files changed, 27 insertions, 10 deletions
diff --git a/gprof/Makefile.in b/gprof/Makefile.in
index c02f34b..8c6a127 100644
--- a/gprof/Makefile.in
+++ b/gprof/Makefile.in
@@ -1,20 +1,22 @@
# @(#)Makefile 5.17 (Berkeley) 5/11/90
-srcdir = .
+srcdir = .
-prefix = /usr/local
+prefix = /usr/local
-program_prefix =
-exec_prefix = $(prefix)
-bindir = $(exec_prefix)/bin
-libdir = $(exec_prefix)/lib
+program_prefix =
+exec_prefix = $(prefix)
+bindir = $(exec_prefix)/bin
+libdir = $(exec_prefix)/lib
tooldir = $(libdir)
+mandir = $(prefix)/man
+man1dir = $(mandir)/man1
datadir = $(prefix)/lib
-INSTALL = install -c
+INSTALL = install -c
INSTALL_PROGRAM = $(INSTALL)
-INSTALL_DATA = $(INSTALL)
+INSTALL_DATA = $(INSTALL)
#### host and target dependent Makefile fragments come in here.
###
@@ -24,7 +26,7 @@ SRCS= gprof.c arcs.c dfn.c lookup.c ${MACHINE}.c hertz.c \
printgprof.c printlist.c
LIBS = ../bfd/libbfd.a ../libiberty/libiberty.a
-OBJS= gprof.o arcs.o dfn.o lookup.o ${MACHINE}.o hertz.o \
+OBJS= blurbs.o gprof.o arcs.o dfn.o lookup.o ${MACHINE}.o hertz.o \
printgprof.o printlist.o
CFLAGS=
@@ -33,19 +35,33 @@ CFLAGS=
all: ${PROG}
-.PHONY: check
+.PHONY: check info install-info
check:
+info:
+install-info:
install: all
$(INSTALL_DATA) ${srcdir}/gprof.flat ${DESTDIR}$(datadir)
$(INSTALL_DATA) ${srcdir}/gprof.callg ${DESTDIR}$(datadir)
+# $(INSTALL_DATA) $(srcdir)/gprof.1 $(man1dir)/gprof.1
$(INSTALL_PROGRAM) $(PROG) ${DESTDIR}$(bindir)
$(PROG): $(OBJS)
$(CC) $(CFLAGS) $(OBJS) -o $(PROG) $(LIBS)
+# Make blurbs.c from gprof.callg and gprof.flat
+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 \
+
clean:
-rm -f $(OBJS) core gprof nohup.out
+
+Makefile : Makefile.in
+ sh config.status
+
+
# These get around a bug in Sun Make in SunOS 4.1.1 and Solaris 2
gprof.o: gprof.c
arcs.o: arcs.c
@@ -55,3 +71,4 @@ ${MACHINE}.o: ${MACHINE}.c
hertz.o: hertz.c
printgprof.o: printgprof.c
printlist.o: printlist.c
+blurbs.o: blurbs.c