* gdb.texinfo (Shell Commands): do not mention SHELL env var in
[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
9388476b 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:
9d651373 46 $(CC) -c $(CFLAGS) -I. -I$(srcdir) -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
2518bf37
JO
75install-info: info
76 -parent=`echo $(infodir)|sed -e 's@/[^/]*$$@@'`; \
77 if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
78 -if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi
79 for i in *.info* ; do \
80 $(INSTALL_DATA) $$i $(infodir)/$$i ; \
81 done
82
83install: all install-info
3c9c3ce3
ILT
84 -parent=`echo $(man1dir)|sed -e 's@/[^/]*$$@@'`; \
85 if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
86 -if [ -d $(man1dir) ] ; then true ; else mkdir $(man1dir) ; fi
87 -parent=`echo $(bindir)|sed -e 's@/[^/]*$$@@'`; \
88 if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
89 -if [ -d $(bindir) ] ; then true ; else mkdir $(bindir) ; fi
dedfbe49 90 $(INSTALL_PROGRAM) $(PROG) $(bindir)/$(PROG)
ea2b679c 91 $(INSTALL_DATA) $(srcdir)/gprof.1 $(man1dir)/gprof.1
c98f0ae5 92
c98f0ae5 93$(PROG): $(OBJS)
9d651373 94 $(CC) -o $(PROG) $(LDFLAGS) $(OBJS) $(LIBS)
89a471fe 95
3d3e494e 96mostlyclean:
2518bf37
JO
97 -rm -f *.o core gprof nohup.out gprof.info* \
98 gprof.cps gprof.fns gprof.log gprof.ps gprof.tps\
99 gprof.aux gprof.dvi gprof.ky gprof.pg gprof.toc gprof.vr\
100 gprof.cp gprof.fn gprof.kys gprof.pgs gprof.tp gprof.vrs
3d3e494e
PB
101clean: mostlyclean
102 -rm -f gprof
103distclean: clean
104 -rm -f config.status Makefile
105realclean: distclean
106 -rm -f $(DISTSTUFF)
9388476b
JG
107
108Makefile : Makefile.in
109 sh config.status
110
111
1221d638
ME
112# These get around a bug in Sun Make in SunOS 4.1.1 and Solaris 2
113gprof.o: gprof.c
114arcs.o: arcs.c
115dfn.o: dfn.c
116lookup.o: lookup.c
ea2b679c 117$(MACHINE).o: $(MACHINE).c
1221d638
ME
118hertz.o: hertz.c
119printgprof.o: printgprof.c
120printlist.o: printlist.c
3d3e494e
PB
121flat_bl.o: flat_bl.c
122bsd_callg_bl.o: bsd_callg_bl.c
123fsf_callg_bl.o: fsf_callg_bl.c
This page took 0.074743 seconds and 4 git commands to generate.