Commit | Line | Data |
---|---|---|
89a471fe SEF |
1 | # @(#)Makefile 5.17 (Berkeley) 5/11/90 |
2 | ||
3 | #### host and target dependent Makefile fragments come in here. | |
4 | ### | |
c98f0ae5 | 5 | |
c98f0ae5 SEF |
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 | ||
c98f0ae5 SEF |
11 | OBJS= gprof.o arcs.o dfn.o lookup.o ${MACHINE}.o hertz.o \ |
12 | printgprof.o printlist.o | |
13 | ||
89a471fe SEF |
14 | CFLAGS= -I. -I../include -DMACHINE_H=\"${MACHINE}.h\" ${TCFLAGS} ${HCFLAGS} |
15 | ||
c98f0ae5 SEF |
16 | all: ${PROG} |
17 | ||
18 | beforeinstall: | |
19 | install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ | |
20 | ${.CURDIR}/gprof.flat ${.CURDIR}/gprof.callg \ | |
21 | ${DESTDIR}/usr/share/misc | |
22 | ||
c98f0ae5 SEF |
23 | $(PROG): $(OBJS) |
24 | $(CC) $(CFLAGS) $(OBJS) -o $(PROG) $(LIBS) | |
89a471fe SEF |
25 | |
26 | clean: | |
27 | -rm -f $(OBJS) core gprof nohup.out |