]> git.saurik.com Git - apple/libc.git/blame - Makefile
Libc-262.2.12.tar.gz
[apple/libc.git] / Makefile
CommitLineData
5b2abdfb
A
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 $
e9ce8d39 3#
5b2abdfb
A
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.
e9ce8d39 9#
5b2abdfb 10# Yes, we build everything with -g, and strip it out later...
e9ce8d39 11#
5b2abdfb
A
12LIB=c
13SHLIB_MAJOR= 1
14SHLIB_MINOR= 0
15.if (${MACHINE_ARCH} == unknown)
16MACHINE_ARCH = ppc
17.endif
18.if (${MACHINE_ARCH} == ppc)
19CFLAGS += -faltivec -DALTIVEC
20.endif
21CFLAGS += -DNOID -DALL_STATE -I${.CURDIR}/include -I${.CURDIR}/include/objc
734aad71
A
22PRIVINC = ${NEXT_ROOT}/System/Library/Frameworks/System.framework/PrivateHeaders
23CFLAGS += -I${PRIVINC}
5b2abdfb
A
24CFLAGS += -DLIBC_MAJOR=${SHLIB_MAJOR} -no-cpp-precomp -force_cpusubtype_ALL
25CFLAGS += -arch ${MACHINE_ARCH} -fno-common -pipe -Wmost -g
26CFLAGS += -finline-limit=5000
27AINC= -I${.CURDIR}/${MACHINE_ARCH} -no-cpp-precomp -force_cpusubtype_ALL
28AINC+=-arch ${MACHINE_ARCH} -g
29CLEANFILES+=tags
30INSTALL_PIC_ARCHIVE= yes
31PRECIOUSLIB= yes
32
33# If these aren't set give it expected defaults
34DSTROOT ?= /
35OBJROOT ?= .
36SRCROOT ?= ${.CURDIR}
37DESTDIR ?= ${DSTROOT}
38MAKEOBJDIR ?= ${OBJROOT}
39
40.include "${.CURDIR}/Makefile.inc"
41.include "Makefile.xbs"
42.include <bsd.man.mk>