This is the third and final batch of makefile changes this round.
[platform/upstream/binutils.git] / gprof / Makefile.in
1 #       @(#)Makefile    5.17 (Berkeley) 5/11/90
2
3 #### host and target dependent Makefile fragments come in here.
4 ###
5
6 PROG=   gprof
7 SRCS=   gprof.c arcs.c dfn.c lookup.c ${MACHINE}.c hertz.c \
8         printgprof.c printlist.c
9 LIBS = ../bfd/libbfd.a ../libiberty/libiberty.a
10
11 OBJS=   gprof.o arcs.o dfn.o lookup.o ${MACHINE}.o hertz.o \
12         printgprof.o printlist.o
13
14 CFLAGS= -I. -I../include -DMACHINE_H=\"${MACHINE}.h\" ${TCFLAGS} ${HCFLAGS}
15
16 all:    ${PROG}
17
18 .PHONY: check
19 check:
20
21 beforeinstall:
22         install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
23             ${.CURDIR}/gprof.flat ${.CURDIR}/gprof.callg \
24             ${DESTDIR}/usr/share/misc
25
26 $(PROG):        $(OBJS)
27         $(CC) $(CFLAGS) $(OBJS) -o $(PROG) $(LIBS)
28
29 clean:
30         -rm -f $(OBJS) core gprof nohup.out