]> git.saurik.com Git - apple/libc.git/blobdiff - Makefile
Libc-320.tar.gz
[apple/libc.git] / Makefile
index 069ccc43fe3c6b68a18bb7bc475d689180b0cbbc..0647549e3c85c0a29531afbd327fcb9e80148f64 100644 (file)
--- a/Makefile
+++ b/Makefile
 LIB=c
 SHLIB_MAJOR= 1
 SHLIB_MINOR= 0
+CC_3_3_OR_GREATER != ${.CURDIR}/cc-3.3-or-greater
+.if (${CC_3_3_OR_GREATER} != YES)
+CC = gcc-3.3
+.endif
 .if (${MACHINE_ARCH} == unknown)
-MACHINE_ARCH = ppc
+MACHINE_ARCH != /usr/bin/arch
 .endif 
 .if (${MACHINE_ARCH} == ppc)
 CFLAGS += -faltivec -DALTIVEC
 .endif
-CFLAGS += -DNOID -DALL_STATE -I${.CURDIR}/include  -I${.CURDIR}/include/objc
+CFLAGS += -DNOID -I${.CURDIR}/include  -I${.CURDIR}/include/objc
+PRIVINC = ${NEXT_ROOT}/System/Library/Frameworks/System.framework/PrivateHeaders
+CFLAGS += -I${PRIVINC}
 CFLAGS += -DLIBC_MAJOR=${SHLIB_MAJOR} -no-cpp-precomp -force_cpusubtype_ALL
 CFLAGS += -arch ${MACHINE_ARCH} -fno-common -pipe -Wmost -g
-CFLAGS += -finline-limit=5000
+CFLAGS += -finline-limit=5000 -D__FBSDID=__RCSID -Wno-long-double
+CFLAGS += -D__APPLE_PR3275149_HACK__
 AINC=  -I${.CURDIR}/${MACHINE_ARCH} -no-cpp-precomp -force_cpusubtype_ALL
 AINC+=-arch ${MACHINE_ARCH} -g
 CLEANFILES+=tags