* Makefile.in: change ${MACHINE} to $(MACHINE), add $(DESTDIR) to
[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 24PROG= gprof
4be49df5 25SRCS= gprof.c arcs.c dfn.c lookup.c $(MACHINE).c hertz.c \
c98f0ae5
SEF
26 printgprof.c printlist.c
27LIBS = ../bfd/libbfd.a ../libiberty/libiberty.a
28
ea2b679c 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:
ea2b679c 34 $(CC) -c $(CFLAGS) -I$(srcdir) -I$(srcdir)/../include -DMACHINE_H=\"$(MACHINE).h\" $(TCFLAGS) $(HCFLAGS) $<
89a471fe 35
ea2b679c 36all: $(PROG)
c98f0ae5 37
9388476b 38.PHONY: check info install-info
a215e6f9 39check:
9388476b
JG
40info:
41install-info:
a215e6f9 42
f4a0f42d 43install: all
4be49df5 44 $(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(bindir)
ea2b679c 45 $(INSTALL_DATA) $(srcdir)/gprof.1 $(man1dir)/gprof.1
c98f0ae5 46
c98f0ae5
SEF
47$(PROG): $(OBJS)
48 $(CC) $(CFLAGS) $(OBJS) -o $(PROG) $(LIBS)
89a471fe 49
9388476b 50# Make blurbs.c from gprof.callg and gprof.flat
ea2b679c
DZ
51blurbs.c: $(srcdir)/gprof.callg $(srcdir)/gprof.flat $(srcdir)/make-c-prog.awk
52 awk -f $(srcdir)/make-c-prog.awk > ./blurbs.c \
53 FUNCTION=flat_blurb $(srcdir)/gprof.flat \
54 FUNCTION=callg_blurb $(srcdir)/gprof.callg \
9388476b 55
89a471fe
SEF
56clean:
57 -rm -f $(OBJS) core gprof nohup.out
9388476b
JG
58
59Makefile : Makefile.in
60 sh config.status
61
62
1221d638
ME
63# These get around a bug in Sun Make in SunOS 4.1.1 and Solaris 2
64gprof.o: gprof.c
65arcs.o: arcs.c
66dfn.o: dfn.c
67lookup.o: lookup.c
ea2b679c 68$(MACHINE).o: $(MACHINE).c
1221d638
ME
69hertz.o: hertz.c
70printgprof.o: printgprof.c
71printlist.o: printlist.c
9388476b 72blurbs.o: blurbs.c
This page took 0.045806 seconds and 4 git commands to generate.