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