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