]> git.saurik.com Git - apple/xnu.git/blame - libsyscall/Makefile
xnu-1504.15.3.tar.gz
[apple/xnu.git] / libsyscall / Makefile
CommitLineData
2d21ac55
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 $
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#
12LIB=syscall
13SHLIB_MAJOR= 1
14SHLIB_MINOR= 0
15.if (${MACHINE_ARCH} == unknown)
b0d623f7
A
16.ifdef RC_ARCHS
17MACHINE_ARCH != echo $(RC_ARCHS) | cut -f 1 -d " "
18.else
2d21ac55 19MACHINE_ARCH != /usr/bin/arch
b0d623f7
A
20.endif
21.endif
2d21ac55
A
22.if !empty $(MACHINE_ARCH:M*64)
23LP64 = 1
24.endif
b0d623f7
A
25SDKROOT ?= /
26CC = xcrun -sdk $(SDKROOT) gcc
27MIG = xcrun -sdk $(SDKROOT) mig
28MIGCC != xcrun -find -sdk $(SDKROOT) gcc
2d21ac55
A
29.ifdef ALTFRAMEWORKSPATH
30PRIVINC = -F${ALTFRAMEWORKSPATH} -I${ALTFRAMEWORKSPATH}/System.framework/PrivateHeaders
31.else
c910b4d9 32PRIVINC = -I${SDKROOT}/System/Library/Frameworks/System.framework/PrivateHeaders
2d21ac55
A
33.endif
34CFLAGS += ${PRIVINC}
c910b4d9 35CFLAGS += -no-cpp-precomp
2d21ac55 36CFLAGS += -fno-common -pipe -Wmost -g
b0d623f7
A
37CFLAGS += -DCF_EXCLUDE_CSTD_HEADERS -DCF_OPEN_SOURCE
38CFLAGS += -isysroot ${SDKROOT}
39AINC= -no-cpp-precomp
2d21ac55 40AINC+= -arch ${MACHINE_ARCH} -g
b0d623f7 41MIGDEFINES ?=
2d21ac55
A
42CLEANFILES+=tags
43INSTALL_PIC_ARCHIVE= yes
44PRECIOUSLIB= yes
45
46# workaround for 3649783
47AINC += -fdollars-in-identifiers
48
49# If these aren't set give it expected defaults
50DESTDIR ?= ${DSTROOT}
51MAKEOBJDIR ?= ${OBJROOT}
52
53# add version string
54SRCS += libsyscall_version.c
55libsyscall_version.c:
c910b4d9 56 ${SDKROOT}/Developer/Makefiles/bin/version.pl Libsyscall > $@
2d21ac55
A
57
58CFLAGS += -I${SYMROOT}
59.include "${.CURDIR}/Makefile.inc"
60.PATH: ${SYMROOT}
61.include "Makefile.xbs"
62.if exists(/usr/share/mk/bsd.init.mk)
63.include <bsd.init.mk>
64.endif
65.include <bsd.man.mk>