]> Git Repo - binutils.git/blame_incremental - gprof/Makefile.in
* config/mips/xm-makeva.h: Removed, no longer necessary.
[binutils.git] / gprof / Makefile.in
... / ...
CommitLineData
1# @(#)Makefile 5.17 (Berkeley) 5/11/90
2
3srcdir = .
4
5prefix = /usr/local
6
7.SUFFIXES : .m
8
9program_prefix =
10exec_prefix = $(prefix)
11program_transform_name =
12bindir = $(exec_prefix)/bin
13libdir = $(exec_prefix)/lib
14tooldir = $(libdir)
15mandir = $(prefix)/man
16man1dir = $(mandir)/man1
17
18infodir = $(prefix)/info
19datadir = $(prefix)/lib
20
21INSTALL = `cd $(srcdir); pwd`/../install.sh -c
22INSTALL_PROGRAM = $(INSTALL)
23INSTALL_DATA = $(INSTALL)
24INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)'
25INSTALL_XFORM1 = $(INSTALL_XFORM) -b=.1
26MAKEINFO = makeinfo
27TEX = tex
28TEXINDEX = texindex
29
30# this is the directory we look in to find Texinfo
31texidir = $(srcdir)/../texinfo
32
33#### host and target dependent Makefile fragments come in here.
34###
35
36PROG= gprof
37SRCS= gprof.c arcs.c dfn.c lookup.c $(MY_MACHINE).c hertz.c \
38 printgprof.c printlist.c
39LIBS = ../bfd/libbfd.a ../libiberty/libiberty.a
40
41OBJS= gprof.o arcs.o dfn.o lookup.o $(MY_MACHINE).o hertz.o \
42 printgprof.o printlist.o \
43 flat_bl.o bsd_callg_bl.o fsf_callg_bl.o
44
45# Files that can be generated, but should be included in distribution.
46DISTSTUFF = flat_bl.c bsd_callg_bl.c fsf_callg_bl.c
47
48CFLAGS=-g
49LDFLAGS=
50.c.o:
51 $(CC) -c $(CFLAGS) -I. -I$(srcdir) -I../bfd -I$(srcdir)/../include -I$(srcdir)/../bfd -DMACHINE_H=\"$(MY_MACHINE).h\" $(TCFLAGS) $(HCFLAGS) $<
52
53all: diststuff $(PROG)
54
55.PHONY: check installcheck info install-info
56.SUFFIXES: .m
57
58.m.c:
59 awk -f $(srcdir)/gen-c-prog.awk > ./$*.c \
60 FUNCTION=`(echo $*|sed -e 's/_bl//')`_blurb \
61 FILE=$*.m $(srcdir)/$*.m
62
63diststuff: $(DISTSTUFF)
64
65gprof.info: gprof.texi
66 $(MAKEINFO) -o gprof.info $(srcdir)/gprof.texi
67
68gprof.dvi: gprof.texi
69 TEXINPUTS=${TEXIDIR}:$(srcdir):$$TEXINPUTS $(TEX) $(srcdir)/gprof.texi
70 $(TEXINDEX) gprof.??
71 TEXINPUTS=${TEXIDIR}:$(srcdir):$$TEXINPUTS $(TEX) $(srcdir)/gprof.texi
72
73info: gprof.info
74
75dvi: gprof.dvi
76
77check:
78installcheck:
79
80install-info: gprof.info
81 if [ -r gprof.info ]; then \
82 dir=. ; \
83 else \
84 dir=$(srcdir) ; \
85 fi ; \
86 for i in `cd $$dir; echo gprof.info*` ; do \
87 $(INSTALL_DATA) $$dir/$$i $(infodir)/$$i ; \
88 done
89
90install:
91 $(INSTALL_XFORM) gprof $(bindir)/gprof
92 $(INSTALL_XFORM1) $(srcdir)/gprof.1 $(man1dir)/gprof.1
93 -n=`t='$(program_transform_name)'; echo gprof | sed -e "s/brokensed/brokensed/" $$t`; \
94 rm -f $(tooldir)/bin/gprof; \
95 ln $(bindir)/$$n $(tooldir)/bin/gprof \
96 || $(INSTALL_PROGRAM) gprof $(tooldir)/bin/gprof;
97
98
99gprof: $(OBJS) $(LIBS)
100 $(CC) -o $(PROG) $(LDFLAGS) $(OBJS) $(LIBS)
101
102mostlyclean:
103 -rm -f *.o core gprof nohup.out gprof.info* \
104 gprof.cps gprof.fns gprof.log gprof.ps gprof.tps\
105 gprof.aux gprof.dvi gprof.ky gprof.pg gprof.toc gprof.vr\
106 gprof.cp gprof.fn gprof.kys gprof.pgs gprof.tp gprof.vrs
107clean: mostlyclean
108 -rm -f gprof
109distclean: clean
110 -rm -f config.status Makefile
111realclean: distclean
112 -rm -f $(DISTSTUFF)
113
114Makefile : Makefile.in
115 sh config.status
116
117
118# These get around a bug in Sun Make in SunOS 4.1.1 and Solaris 2
119gprof.o: gprof.c
120arcs.o: arcs.c
121dfn.o: dfn.c
122lookup.o: lookup.c
123$(MY_MACHINE).o: $(MY_MACHINE).c
124hertz.o: hertz.c
125printgprof.o: printgprof.c
126printlist.o: printlist.c
127flat_bl.o: flat_bl.c
128bsd_callg_bl.o: bsd_callg_bl.c
129fsf_callg_bl.o: fsf_callg_bl.c
This page took 0.023203 seconds and 4 git commands to generate.