ef09ae7f683c9d8dde0c03f8cba4957b56fea3fe
[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 datadir = $(prefix)/lib
16
17 INSTALL = install -c
18 INSTALL_PROGRAM = $(INSTALL)
19 INSTALL_DATA = $(INSTALL)
20
21 #### host and target dependent Makefile fragments come in here.
22 ###
23
24 PROG= gprof
25 SRCS= gprof.c arcs.c dfn.c lookup.c $(MACHINE).c hertz.c \
26 printgprof.c printlist.c
27 LIBS = ../bfd/libbfd.a ../libiberty/libiberty.a
28
29 OBJS= gprof.o arcs.o dfn.o lookup.o $(MACHINE).o hertz.o \
30 printgprof.o printlist.o \
31 flat_bl.o bsd_callg_bl.o fsf_callg_bl.o
32
33 # Files that can be generated, but should be included in distribution.
34 DISTSTUFF = flat_bl.c bsd_callg_bl.c fsf_callg_bl.c
35
36 CFLAGS=
37 .c.o:
38 $(CC) -c $(CFLAGS) -I$(srcdir) -I$(srcdir)/../include -DMACHINE_H=\"$(MACHINE).h\" $(TCFLAGS) $(HCFLAGS) $<
39
40 all: diststuff $(PROG)
41
42 .PHONY: check info install-info
43 .SUFFIXES: .m
44
45 .m.c:
46 awk -f $(srcdir)/gen-c-prog.awk > ./$*.c \
47 FUNCTION=`(echo $*|sed -e 's/_bl//')`_blurb \
48 FILE=$*.m $(srcdir)/$*.m
49
50 diststuff: $(DISTSTUFF)
51
52
53 check:
54 info:
55 install-info:
56
57 install: all
58 -parent=`echo $(man1dir)|sed -e 's@/[^/]*$$@@'`; \
59 if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
60 -if [ -d $(man1dir) ] ; then true ; else mkdir $(man1dir) ; fi
61 -parent=`echo $(bindir)|sed -e 's@/[^/]*$$@@'`; \
62 if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
63 -if [ -d $(bindir) ] ; then true ; else mkdir $(bindir) ; fi
64 $(INSTALL_PROGRAM) $(PROG) $(bindir)
65 $(INSTALL_DATA) $(srcdir)/gprof.1 $(man1dir)/gprof.1
66
67 $(PROG): $(OBJS)
68 $(CC) $(CFLAGS) $(OBJS) -o $(PROG) $(LIBS)
69
70 mostlyclean:
71 -rm -f *.o core gprof nohup.out
72 clean: mostlyclean
73 -rm -f gprof
74 distclean: clean
75 -rm -f config.status Makefile
76 realclean: distclean
77 -rm -f $(DISTSTUFF)
78
79 Makefile : Makefile.in
80 sh config.status
81
82
83 # These get around a bug in Sun Make in SunOS 4.1.1 and Solaris 2
84 gprof.o: gprof.c
85 arcs.o: arcs.c
86 dfn.o: dfn.c
87 lookup.o: lookup.c
88 $(MACHINE).o: $(MACHINE).c
89 hertz.o: hertz.c
90 printgprof.o: printgprof.c
91 printlist.o: printlist.c
92 flat_bl.o: flat_bl.c
93 bsd_callg_bl.o: bsd_callg_bl.c
94 fsf_callg_bl.o: fsf_callg_bl.c
This page took 0.032383 seconds and 4 git commands to generate.