]>
Commit | Line | Data |
---|---|---|
5b2abdfb A |
1 | # from @(#)Makefile.inc 8.1 (Berkeley) 6/4/93 |
2 | # $FreeBSD: src/lib/libc/gmon/Makefile.inc,v 1.8 2001/03/27 17:26:47 ru Exp $ | |
3 | ||
4 | # gmon sources | |
5 | .PATH: ${.CURDIR}/gmon | |
6 | ||
59e0d9fe | 7 | MISRCS+= gmon.c |
5b2abdfb | 8 | |
224c7076 A |
9 | .if ${LIB} == "c" |
10 | MAN3 += moncontrol.3 | |
11 | ||
12 | MLINKS += moncontrol.3 monstartup.3 | |
13 | .endif | |
5b2abdfb | 14 | |
b5d655f7 A |
15 | GFLAGS = -O -pipe -Wmost -g -fno-common |
16 | .if $(MACHINE_ARCH) != arm | |
17 | GFLAGS += -force_cpusubtype_ALL | |
18 | .endif | |
19 | .ifdef SDKROOT | |
20 | GFLAGS += -isysroot '${SDKROOT}' | |
21 | .endif # SDKROOT | |
22 | ||
5b2abdfb A |
23 | # mcount cannot be compiled with profiling |
24 | gmon.po: | |
b5d655f7 | 25 | ${CC} -arch ${CCARCH} ${GFLAGS} \ |
3d9156a7 | 26 | -I${.CURDIR}/include \ |
b5d655f7 | 27 | -I${SYMROOT}/include \ |
3d9156a7 A |
28 | -I${INCLUDEDIR} \ |
29 | -I${INCLUDEDIR}/objc \ | |
59e0d9fe A |
30 | ${PRIVINC} \ |
31 | -c ${.CURDIR}/gmon/gmon.c -o gmon.po | |
5b2abdfb A |
32 | |
33 | #gmon.po: gmon.o | |
34 | # cp gmon.o gmon.po |