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)
16 MACHINE_ARCH != /usr/bin/arch
18 .if !empty $(MACHINE_ARCH:M*64)
22 .ifdef ALTFRAMEWORKSPATH
23 PRIVINC = -F${ALTFRAMEWORKSPATH} -I${ALTFRAMEWORKSPATH}/System.framework/PrivateHeaders
25 PRIVINC = -I${NEXT_ROOT}/System/Library/Frameworks/System.framework/PrivateHeaders
28 CFLAGS += -no-cpp-precomp -force_cpusubtype_ALL
29 CFLAGS += -fno-common -pipe -Wmost -g
30 AINC= -no-cpp-precomp -force_cpusubtype_ALL
31 AINC+= -arch ${MACHINE_ARCH} -g
33 INSTALL_PIC_ARCHIVE= yes
36 # workaround for 3649783
37 AINC += -fdollars-in-identifiers
39 # If these aren't set give it expected defaults
41 MAKEOBJDIR ?= ${OBJROOT}
44 SRCS += libsyscall_version.c
46 /Developer/Makefiles/bin/version.pl Libsyscall > $@
48 CFLAGS += -I${SYMROOT}
49 .include "${.CURDIR}/Makefile.inc"
51 .include "Makefile.xbs"
52 .if exists(/usr/share/mk/bsd.init.mk)
53 .include <bsd.init.mk>