1 # @(#)Makefile 5.17 (Berkeley) 5/11/90
8 exec_prefix = $(prefix)
9 bindir = $(exec_prefix)/bin
10 libdir = $(exec_prefix)/lib
13 datadir = $(prefix)/lib
16 INSTALL_PROGRAM
= $(INSTALL
)
17 INSTALL_DATA
= $(INSTALL
)
19 #### host and target dependent Makefile fragments come in here.
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
27 OBJS
= gprof.o arcs.o dfn.o lookup.o
${MACHINE}.o hertz.o \
28 printgprof.o printlist.o
32 $(CC
) -c
$(CFLAGS
) -I
$(srcdir) -I
$(srcdir)/..
/include -DMACHINE_H
=\"${MACHINE}.h
\" ${TCFLAGS} ${HCFLAGS} $<
40 $(INSTALL_DATA
) ${srcdir}/gprof.flat
${DESTDIR}$(datadir)
41 $(INSTALL_DATA
) ${srcdir}/gprof.callg
${DESTDIR}$(datadir)
42 $(INSTALL_PROGRAM
) $(PROG
) ${DESTDIR}$(bindir)
45 $(CC
) $(CFLAGS
) $(OBJS
) -o
$(PROG
) $(LIBS
)
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
54 ${MACHINE}.o
: ${MACHINE}.c
56 printgprof.o
: printgprof.c
57 printlist.o
: printlist.c