]>
Commit | Line | Data |
---|---|---|
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 | ||
7 | MISRCS+= gmon.c | |
8 | ||
9 | .if ${LIB} == "c" | |
10 | MAN3 += moncontrol.3 | |
11 | ||
12 | MLINKS += moncontrol.3 monstartup.3 | |
13 | .endif | |
14 | ||
15 | GFLAGS = -O -pipe -Wmost -g -fno-common | |
16 | .if $(MACHINE_ARCH) != arm | |
17 | GFLAGS += -force_cpusubtype_ALL | |
18 | .endif | |
19 | .if ${GCC_42} != YES | |
20 | GFLAGS += -no-cpp-precomp | |
21 | .endif | |
22 | .ifdef SDKROOT | |
23 | GFLAGS += -isysroot '${SDKROOT}' | |
24 | .endif # SDKROOT | |
25 | ||
26 | # mcount cannot be compiled with profiling | |
27 | gmon.po: | |
28 | ${MYCC} -arch ${CCARCH} ${GFLAGS} \ | |
29 | -I${.CURDIR}/include \ | |
30 | -I${SYMROOT}/include \ | |
31 | -I${INCLUDEDIR} \ | |
32 | -I${INCLUDEDIR}/objc \ | |
33 | ${PRIVINC} \ | |
34 | -c ${.CURDIR}/gmon/gmon.c -o gmon.po | |
35 | ||
36 | #gmon.po: gmon.o | |
37 | # cp gmon.o gmon.po |