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 .if (${MACHINE_ARCH} == unknown)
17 MACHINE_ARCH != echo $(RC_ARCHS) | cut -f 1 -d " "
19 MACHINE_ARCH != /usr/bin/arch
22 .if !empty $(MACHINE_ARCH:M*64)
26 CC = xcrun -sdk $(SDKROOT) gcc
27 MIG = xcrun -sdk $(SDKROOT) mig
28 MIGCC != xcrun -find -sdk $(SDKROOT) gcc
29 .ifdef ALTFRAMEWORKSPATH
30 PRIVINC = -F${ALTFRAMEWORKSPATH} -I${ALTFRAMEWORKSPATH}/System.framework/PrivateHeaders
32 PRIVINC = -I${SDKROOT}/System/Library/Frameworks/System.framework/PrivateHeaders
35 CFLAGS += -no-cpp-precomp
36 CFLAGS += -fno-common -pipe -Wmost -g
37 CFLAGS += -DCF_EXCLUDE_CSTD_HEADERS -DCF_OPEN_SOURCE
38 CFLAGS += -isysroot ${SDKROOT}
40 AINC+= -arch ${MACHINE_ARCH} -g
43 INSTALL_PIC_ARCHIVE= yes
46 # workaround for 3649783
47 AINC += -fdollars-in-identifiers
49 # If these aren't set give it expected defaults
51 MAKEOBJDIR ?= ${OBJROOT}
54 SRCS += libsyscall_version.c
56 ${SDKROOT}/Developer/Makefiles/bin/version.pl Libsyscall > $@
58 CFLAGS += -I${SYMROOT}
59 .include "${.CURDIR}/Makefile.inc"
61 .include "Makefile.xbs"
62 .if exists(/usr/share/mk/bsd.init.mk)
63 .include <bsd.init.mk>