1 # @(#)Makefile 8.2 (Berkeley) 2/3/94
2 # $FreeBSD: src/lib/libc/Makefile,v 1.31 2001/08/13 21:48:43 peter Exp $
4 # All library objects contain rcsid strings by default; they may be
5 # excluded as a space-saving measure. To produce a library that does
6 # not contain these strings, delete -DLIBC_RCS and -DSYSLIBC_RCS
7 # from CFLAGS below. To remove these strings from just the system call
8 # stubs, remove just -DSYSLIBC_RCS from CFLAGS.
10 # Yes, we build everything with -g, and strip it out later...
15 CC_3_3_OR_GREATER != ${.CURDIR}/cc-3.3-or-greater
16 .if (${CC_3_3_OR_GREATER} != YES)
19 .if (${MACHINE_ARCH} == unknown)
20 MACHINE_ARCH != /usr/bin/arch
22 .if (${MACHINE_ARCH} == ppc) || (${MACHINE_ARCH} == ppc64)
23 CFLAGS += -faltivec -DALTIVEC
27 CFLAGS += -I${ALTLIBCHEADERS}
29 CFLAGS += -I${.CURDIR}/include
31 .ifdef ALTFRAMEWORKSPATH
32 PRIVINC = -F${ALTFRAMEWORKSPATH} -I${ALTFRAMEWORKSPATH}/System.framework/PrivateHeaders
34 PRIVINC = -I${NEXT_ROOT}/System/Library/Frameworks/System.framework/PrivateHeaders
37 CFLAGS += -DLIBC_MAJOR=${SHLIB_MAJOR} -no-cpp-precomp -force_cpusubtype_ALL
38 CFLAGS += -arch ${MACHINE_ARCH} -fno-common -pipe -Wmost -g
39 CFLAGS += -finline-limit=5000 -D__FBSDID=__RCSID -Wno-long-double
40 AINC= -I${.CURDIR}/${MACHINE_ARCH} -no-cpp-precomp -force_cpusubtype_ALL
41 AINC+=-arch ${MACHINE_ARCH} -g
43 INSTALL_PIC_ARCHIVE= yes
46 # If these aren't set give it expected defaults
51 SYMROOT = ${.CURDIR}/SYMROOT
52 _x_ != test -d ${SYMROOT} || mkdir -p ${SYMROOT}
55 MAKEOBJDIR ?= ${OBJROOT}
57 CFLAGS += -I${SYMROOT}
58 .include "${.CURDIR}/Makefile.inc"
60 .include "Makefile.xbs"