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