* gprof.h, gprof.c, printfgprof.c: Add support for two
[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= blurbs.o gprof.o arcs.o dfn.o lookup.o $(MACHINE).o hertz.o \
30 printgprof.o printlist.o
31
32 CFLAGS=
33 .c.o:
34 $(CC) -c $(CFLAGS) -I$(srcdir) -I$(srcdir)/../include -DMACHINE_H=\"$(MACHINE).h\" $(TCFLAGS) $(HCFLAGS) $<
35
36 all: $(PROG)
37
38 .PHONY: check info install-info
39 check:
40 info:
41 install-info:
42
43 install: all
44 -parent=`echo $(man1dir)|sed -e 's@/[^/]*$$@@'`; \
45 if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
46 -if [ -d $(man1dir) ] ; then true ; else mkdir $(man1dir) ; fi
47 -parent=`echo $(bindir)|sed -e 's@/[^/]*$$@@'`; \
48 if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
49 -if [ -d $(bindir) ] ; then true ; else mkdir $(bindir) ; fi
50 $(INSTALL_PROGRAM) $(PROG) $(bindir)
51 $(INSTALL_DATA) $(srcdir)/gprof.1 $(man1dir)/gprof.1
52
53 $(PROG): $(OBJS)
54 $(CC) $(CFLAGS) $(OBJS) -o $(PROG) $(LIBS)
55
56 clean:
57 -rm -f $(OBJS) core gprof nohup.out
58
59 Makefile : Makefile.in
60 sh config.status
61
62
63 # These get around a bug in Sun Make in SunOS 4.1.1 and Solaris 2
64 gprof.o: gprof.c
65 arcs.o: arcs.c
66 dfn.o: dfn.c
67 lookup.o: lookup.c
68 $(MACHINE).o: $(MACHINE).c
69 hertz.o: hertz.c
70 printgprof.o: printgprof.c
71 printlist.o: printlist.c
72 blurbs.o: blurbs.c