]> git.saurik.com Git - apple/libc.git/blame - Makefile
Libc-339.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
9385eb3d
A
15CC_3_3_OR_GREATER != ${.CURDIR}/cc-3.3-or-greater
16.if (${CC_3_3_OR_GREATER} != YES)
17CC = gcc-3.3
18.endif
5b2abdfb 19.if (${MACHINE_ARCH} == unknown)
9385eb3d 20MACHINE_ARCH != /usr/bin/arch
5b2abdfb 21.endif
59e0d9fe 22.if (${MACHINE_ARCH} == ppc) || (${MACHINE_ARCH} == ppc64)
5b2abdfb
A
23CFLAGS += -faltivec -DALTIVEC
24.endif
59e0d9fe
A
25CFLAGS += -DNOID
26.ifdef ALTLIBCHEADERS
27CFLAGS += -I${ALTLIBCHEADERS}
28.else
29CFLAGS += -I${.CURDIR}/include
30.endif
31.ifdef ALTFRAMEWORKSPATH
32PRIVINC = -F${ALTFRAMEWORKSPATH} -I${ALTFRAMEWORKSPATH}/System.framework/PrivateHeaders
33.else
34PRIVINC = -I${NEXT_ROOT}/System/Library/Frameworks/System.framework/PrivateHeaders
35.endif
36CFLAGS += ${PRIVINC}
5b2abdfb
A
37CFLAGS += -DLIBC_MAJOR=${SHLIB_MAJOR} -no-cpp-precomp -force_cpusubtype_ALL
38CFLAGS += -arch ${MACHINE_ARCH} -fno-common -pipe -Wmost -g
9385eb3d 39CFLAGS += -finline-limit=5000 -D__FBSDID=__RCSID -Wno-long-double
5b2abdfb
A
40AINC= -I${.CURDIR}/${MACHINE_ARCH} -no-cpp-precomp -force_cpusubtype_ALL
41AINC+=-arch ${MACHINE_ARCH} -g
42CLEANFILES+=tags
43INSTALL_PIC_ARCHIVE= yes
44PRECIOUSLIB= yes
45
46# If these aren't set give it expected defaults
47DSTROOT ?= /
48OBJROOT ?= .
49SRCROOT ?= ${.CURDIR}
59e0d9fe
A
50.ifndef SYMROOT
51SYMROOT = ${.CURDIR}/SYMROOT
52_x_ != test -d ${SYMROOT} || mkdir -p ${SYMROOT}
53.endif
5b2abdfb
A
54DESTDIR ?= ${DSTROOT}
55MAKEOBJDIR ?= ${OBJROOT}
56
59e0d9fe 57CFLAGS += -I${SYMROOT}
5b2abdfb 58.include "${.CURDIR}/Makefile.inc"
59e0d9fe 59.PATH: ${SYMROOT}
5b2abdfb
A
60.include "Makefile.xbs"
61.include <bsd.man.mk>