]> git.saurik.com Git - apple/libc.git/blame - gmon/Makefile.inc
Libc-594.9.4.tar.gz
[apple/libc.git] / gmon / Makefile.inc
CommitLineData
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 7MISRCS+= gmon.c
5b2abdfb 8
224c7076
A
9.if ${LIB} == "c"
10MAN3 += moncontrol.3
11
12MLINKS += moncontrol.3 monstartup.3
13.endif
5b2abdfb 14
b5d655f7
A
15GFLAGS = -O -pipe -Wmost -g -fno-common
16.if $(MACHINE_ARCH) != arm
17GFLAGS += -force_cpusubtype_ALL
18.endif
34e8f829
A
19.if ${GCC_42} != YES
20GFLAGS += -no-cpp-precomp
21.endif
b5d655f7
A
22.ifdef SDKROOT
23GFLAGS += -isysroot '${SDKROOT}'
24.endif # SDKROOT
25
5b2abdfb
A
26# mcount cannot be compiled with profiling
27gmon.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