* blurbs.c: New file, created from gprof.flat and gprof.callg by
[deliverable/binutils-gdb.git] / gprof / Makefile.in
CommitLineData
89a471fe
SEF
1# @(#)Makefile 5.17 (Berkeley) 5/11/90
2
9388476b 3srcdir = .
1221d638 4
9388476b 5prefix = /usr/local
f4a0f42d 6
9388476b
JG
7program_prefix =
8exec_prefix = $(prefix)
9bindir = $(exec_prefix)/bin
10libdir = $(exec_prefix)/lib
f4a0f42d 11tooldir = $(libdir)
9388476b
JG
12mandir = $(prefix)/man
13man1dir = $(mandir)/man1
f4a0f42d
ME
14
15datadir = $(prefix)/lib
16
9388476b 17INSTALL = install -c
f4a0f42d 18INSTALL_PROGRAM = $(INSTALL)
9388476b 19INSTALL_DATA = $(INSTALL)
f4a0f42d 20
89a471fe
SEF
21#### host and target dependent Makefile fragments come in here.
22###
c98f0ae5 23
c98f0ae5
SEF
24PROG= gprof
25SRCS= gprof.c arcs.c dfn.c lookup.c ${MACHINE}.c hertz.c \
26 printgprof.c printlist.c
27LIBS = ../bfd/libbfd.a ../libiberty/libiberty.a
28
9388476b 29OBJS= blurbs.o gprof.o arcs.o dfn.o lookup.o ${MACHINE}.o hertz.o \
c98f0ae5
SEF
30 printgprof.o printlist.o
31
1221d638 32CFLAGS=
9138a2e2 33.c.o:
1221d638 34 $(CC) -c $(CFLAGS) -I$(srcdir) -I$(srcdir)/../include -DMACHINE_H=\"${MACHINE}.h\" ${TCFLAGS} ${HCFLAGS} $<
89a471fe 35
c98f0ae5
SEF
36all: ${PROG}
37
9388476b 38.PHONY: check info install-info
a215e6f9 39check:
9388476b
JG
40info:
41install-info:
a215e6f9 42
f4a0f42d
ME
43install: all
44 $(INSTALL_DATA) ${srcdir}/gprof.flat ${DESTDIR}$(datadir)
45 $(INSTALL_DATA) ${srcdir}/gprof.callg ${DESTDIR}$(datadir)
9388476b 46# $(INSTALL_DATA) $(srcdir)/gprof.1 $(man1dir)/gprof.1
f4a0f42d 47 $(INSTALL_PROGRAM) $(PROG) ${DESTDIR}$(bindir)
c98f0ae5 48
c98f0ae5
SEF
49$(PROG): $(OBJS)
50 $(CC) $(CFLAGS) $(OBJS) -o $(PROG) $(LIBS)
89a471fe 51
9388476b
JG
52# Make blurbs.c from gprof.callg and gprof.flat
53blurbs.c: ${srcdir}/gprof.callg ${srcdir}/gprof.flat ${srcdir}/make-c-prog.awk
54 awk -f ${srcdir}/make-c-prog.awk > ./blurbs.c \
55 FUNCTION=flat_blurb ${srcdir}/gprof.flat \
56 FUNCTION=callg_blurb ${srcdir}/gprof.callg \
57
89a471fe
SEF
58clean:
59 -rm -f $(OBJS) core gprof nohup.out
9388476b
JG
60
61Makefile : Makefile.in
62 sh config.status
63
64
1221d638
ME
65# These get around a bug in Sun Make in SunOS 4.1.1 and Solaris 2
66gprof.o: gprof.c
67arcs.o: arcs.c
68dfn.o: dfn.c
69lookup.o: lookup.c
70${MACHINE}.o: ${MACHINE}.c
71hertz.o: hertz.c
72printgprof.o: printgprof.c
73printlist.o: printlist.c
9388476b 74blurbs.o: blurbs.c
This page took 0.049606 seconds and 4 git commands to generate.