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