caf20773fc5a0aa5cab5c88ac9e444d36db9e866
[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= 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 # Make blurbs.c from gprof.callg and gprof.flat
57 blurbs.c: $(srcdir)/gprof.callg $(srcdir)/gprof.flat $(srcdir)/make-c-prog.awk
58 awk -f $(srcdir)/make-c-prog.awk > ./blurbs.c \
59 FUNCTION=flat_blurb $(srcdir)/gprof.flat \
60 FUNCTION=callg_blurb $(srcdir)/gprof.callg \
61
62 clean:
63 -rm -f $(OBJS) core gprof nohup.out
64
65 Makefile : Makefile.in
66 sh config.status
67
68
69 # These get around a bug in Sun Make in SunOS 4.1.1 and Solaris 2
70 gprof.o: gprof.c
71 arcs.o: arcs.c
72 dfn.o: dfn.c
73 lookup.o: lookup.c
74 $(MACHINE).o: $(MACHINE).c
75 hertz.o: hertz.c
76 printgprof.o: printgprof.c
77 printlist.o: printlist.c
78 blurbs.o: blurbs.c
This page took 0.033172 seconds and 4 git commands to generate.