]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gprof/Makefile.in
look in ../include instead of ../bfd for bfd.h
[thirdparty/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=-g
44 LDFLAGS=
45 .c.o:
46 $(CC) -c $(CFLAGS) -I. -I$(srcdir) -I../include -I$(srcdir)/../include -I$(srcdir)/../bfd -DMACHINE_H=\"$(MACHINE).h\" $(TCFLAGS) $(HCFLAGS) $<
47
48 all: diststuff $(PROG)
49
50 .PHONY: check installcheck info install-info
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
58 diststuff: $(DISTSTUFF)
59
60 gprof.info: gprof.texi
61 $(MAKEINFO) -o gprof.info $(srcdir)/gprof.texi
62
63 gprof.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
68 info: gprof.info
69
70 dvi: gprof.dvi
71
72 check:
73 installcheck:
74
75 install-info:
76 for i in *.info* ; do \
77 $(INSTALL_DATA) $$i $(infodir)/$$i ; \
78 done
79
80 install:
81 $(INSTALL_PROGRAM) gprof $(bindir)/gprof
82 $(INSTALL_DATA) $(srcdir)/gprof.1 $(man1dir)/gprof.1
83
84 gprof: $(OBJS)
85 $(CC) -o $(PROG) $(LDFLAGS) $(OBJS) $(LIBS)
86
87 mostlyclean:
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
92 clean: mostlyclean
93 -rm -f gprof
94 distclean: clean
95 -rm -f config.status Makefile
96 realclean: distclean
97 -rm -f $(DISTSTUFF)
98
99 Makefile : Makefile.in
100 sh config.status
101
102
103 # These get around a bug in Sun Make in SunOS 4.1.1 and Solaris 2
104 gprof.o: gprof.c
105 arcs.o: arcs.c
106 dfn.o: dfn.c
107 lookup.o: lookup.c
108 $(MACHINE).o: $(MACHINE).c
109 hertz.o: hertz.c
110 printgprof.o: printgprof.c
111 printlist.o: printlist.c
112 flat_bl.o: flat_bl.c
113 bsd_callg_bl.o: bsd_callg_bl.c
114 fsf_callg_bl.o: fsf_callg_bl.c