add real install, and some more normal paths.
[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
13 datadir = $(prefix)/lib
14
15 INSTALL = install -c
16 INSTALL_PROGRAM = $(INSTALL)
17 INSTALL_DATA = $(INSTALL)
18
19 #### host and target dependent Makefile fragments come in here.
20 ###
21
22 PROG= gprof
23 SRCS= gprof.c arcs.c dfn.c lookup.c ${MACHINE}.c hertz.c \
24 printgprof.c printlist.c
25 LIBS = ../bfd/libbfd.a ../libiberty/libiberty.a
26
27 OBJS= gprof.o arcs.o dfn.o lookup.o ${MACHINE}.o hertz.o \
28 printgprof.o printlist.o
29
30 CFLAGS=
31 .c.o:
32 $(CC) -c $(CFLAGS) -I$(srcdir) -I$(srcdir)/../include -DMACHINE_H=\"${MACHINE}.h\" ${TCFLAGS} ${HCFLAGS} $<
33
34 all: ${PROG}
35
36 .PHONY: check
37 check:
38
39 install: all
40 $(INSTALL_DATA) ${srcdir}/gprof.flat ${DESTDIR}$(datadir)
41 $(INSTALL_DATA) ${srcdir}/gprof.callg ${DESTDIR}$(datadir)
42 $(INSTALL_PROGRAM) $(PROG) ${DESTDIR}$(bindir)
43
44 $(PROG): $(OBJS)
45 $(CC) $(CFLAGS) $(OBJS) -o $(PROG) $(LIBS)
46
47 clean:
48 -rm -f $(OBJS) core gprof nohup.out
49 # These get around a bug in Sun Make in SunOS 4.1.1 and Solaris 2
50 gprof.o: gprof.c
51 arcs.o: arcs.c
52 dfn.o: dfn.c
53 lookup.o: lookup.c
54 ${MACHINE}.o: ${MACHINE}.c
55 hertz.o: hertz.c
56 printgprof.o: printgprof.c
57 printlist.o: printlist.c
This page took 0.031 seconds and 5 git commands to generate.