]>
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 | |
34e8f829 A |
19 | .if ${GCC_42} != YES |
20 | GFLAGS += -no-cpp-precomp | |
21 | .endif | |
b5d655f7 A |
22 | .ifdef SDKROOT |
23 | GFLAGS += -isysroot '${SDKROOT}' | |
24 | .endif # SDKROOT | |
25 | ||
5b2abdfb A |
26 | # mcount cannot be compiled with profiling |
27 | gmon.po: | |
34e8f829 | 28 | ${MYCC} -arch ${CCARCH} ${GFLAGS} \ |
3d9156a7 | 29 | -I${.CURDIR}/include \ |
b5d655f7 | 30 | -I${SYMROOT}/include \ |
3d9156a7 A |
31 | -I${INCLUDEDIR} \ |
32 | -I${INCLUDEDIR}/objc \ | |
59e0d9fe A |
33 | ${PRIVINC} \ |
34 | -c ${.CURDIR}/gmon/gmon.c -o gmon.po | |
5b2abdfb A |
35 | |
36 | #gmon.po: gmon.o | |
37 | # cp gmon.o gmon.po |