Change insertion marker for new bfd.h generation scheme.
[deliverable/binutils-gdb.git] / gprof / Makefile.in
CommitLineData
89a471fe
SEF
1# @(#)Makefile 5.17 (Berkeley) 5/11/90
2
3ff094aa 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 14
2518bf37 15infodir = $(prefix)/info
f4a0f42d
ME
16datadir = $(prefix)/lib
17
98e4321e 18INSTALL = install -c
f4a0f42d 19INSTALL_PROGRAM = $(INSTALL)
9388476b 20INSTALL_DATA = $(INSTALL)
2518bf37
JO
21MAKEINFO = makeinfo
22TEX = tex
23TEXINDEX = texindex
24
25# this is the directory we look in to find Texinfo
26texidir = $(srcdir)/../texinfo
f4a0f42d 27
89a471fe
SEF
28#### host and target dependent Makefile fragments come in here.
29###
c98f0ae5 30
c98f0ae5 31PROG= gprof
4be49df5 32SRCS= gprof.c arcs.c dfn.c lookup.c $(MACHINE).c hertz.c \
c98f0ae5
SEF
33 printgprof.c printlist.c
34LIBS = ../bfd/libbfd.a ../libiberty/libiberty.a
35
3d3e494e
PB
36OBJS= gprof.o arcs.o dfn.o lookup.o $(MACHINE).o hertz.o \
37 printgprof.o printlist.o \
38 flat_bl.o bsd_callg_bl.o fsf_callg_bl.o
39
40# Files that can be generated, but should be included in distribution.
41DISTSTUFF = flat_bl.c bsd_callg_bl.c fsf_callg_bl.c
c98f0ae5 42
9d651373
PB
43CFLAGS=-g
44LDFLAGS=
9138a2e2 45.c.o:
f905eff4 46 $(CC) -c $(CFLAGS) -I. -I$(srcdir) -I../include -I$(srcdir)/../include -I$(srcdir)/../bfd -DMACHINE_H=\"$(MACHINE).h\" $(TCFLAGS) $(HCFLAGS) $<
89a471fe 47
3d3e494e 48all: diststuff $(PROG)
c98f0ae5 49
80c8fd72 50.PHONY: check installcheck info install-info
3d3e494e
PB
51.SUFFIXES: .m
52
53.m.c:
54 awk -f $(srcdir)/gen-c-prog.awk > ./$*.c \
55 FUNCTION=`(echo $*|sed -e 's/_bl//')`_blurb \
56 FILE=$*.m $(srcdir)/$*.m
57
58diststuff: $(DISTSTUFF)
2518bf37
JO
59
60gprof.info: gprof.texi
61 $(MAKEINFO) -o gprof.info $(srcdir)/gprof.texi
62
63gprof.dvi: gprof.texi
64 TEXINPUTS=${TEXIDIR}:$(srcdir):$$TEXINPUTS $(TEX) $(srcdir)/gprof.texi
65 $(TEXINDEX) gprof.??
66 TEXINPUTS=${TEXIDIR}:$(srcdir):$$TEXINPUTS $(TEX) $(srcdir)/gprof.texi
67
68info: gprof.info
69
70dvi: gprof.dvi
3d3e494e 71
a215e6f9 72check:
80c8fd72 73installcheck:
a215e6f9 74
263773ec 75install-info:
2518bf37
JO
76 for i in *.info* ; do \
77 $(INSTALL_DATA) $$i $(infodir)/$$i ; \
78 done
79
263773ec
DZ
80install:
81 $(INSTALL_PROGRAM) gprof $(bindir)/gprof
ea2b679c 82 $(INSTALL_DATA) $(srcdir)/gprof.1 $(man1dir)/gprof.1
c98f0ae5 83
263773ec 84gprof: $(OBJS)
9d651373 85 $(CC) -o $(PROG) $(LDFLAGS) $(OBJS) $(LIBS)
89a471fe 86
3d3e494e 87mostlyclean:
2518bf37
JO
88 -rm -f *.o core gprof nohup.out gprof.info* \
89 gprof.cps gprof.fns gprof.log gprof.ps gprof.tps\
90 gprof.aux gprof.dvi gprof.ky gprof.pg gprof.toc gprof.vr\
91 gprof.cp gprof.fn gprof.kys gprof.pgs gprof.tp gprof.vrs
3d3e494e
PB
92clean: mostlyclean
93 -rm -f gprof
94distclean: clean
95 -rm -f config.status Makefile
96realclean: distclean
97 -rm -f $(DISTSTUFF)
9388476b
JG
98
99Makefile : Makefile.in
100 sh config.status
101
102
1221d638
ME
103# These get around a bug in Sun Make in SunOS 4.1.1 and Solaris 2
104gprof.o: gprof.c
105arcs.o: arcs.c
106dfn.o: dfn.c
107lookup.o: lookup.c
ea2b679c 108$(MACHINE).o: $(MACHINE).c
1221d638
ME
109hertz.o: hertz.c
110printgprof.o: printgprof.c
111printlist.o: printlist.c
3d3e494e
PB
112flat_bl.o: flat_bl.c
113bsd_callg_bl.o: bsd_callg_bl.c
114fsf_callg_bl.o: fsf_callg_bl.c
This page took 0.067944 seconds and 4 git commands to generate.