]> git.saurik.com Git - apple/xnu.git/blame - libsyscall/Makefile.inc
xnu-1228.tar.gz
[apple/xnu.git] / libsyscall / Makefile.inc
CommitLineData
2d21ac55
A
1# $FreeBSD: src/lMakefile.inc,v 1.7 2001/04/04 18:17:25 tmm Exp $
2#
3# This file contains make rules that are shared by libc and libc_r.
4#
5# Define (empty) variables so that make doesn't give substitution
6# errors if the included makefiles don't change these:
7MDSRCS=
8MISRCS=
9MDASM=
10MIASM=
11NOASM=
12
13# SUPPRESSSRCS is used to prevent machine-independent files from being
14# built, when a machine-dependent file defines multiple symbols.
15# Use MDSRCS to block one file, and SUPPRESSSRCS to block the others.
16SUPPRESSSRCS=
17
18# set object file suffix
19.if make(lib${LIB}_static.a)
20OBJSUFFIX = o
21.endif
22.if make(lib${LIB}_profile.a)
23OBJSUFFIX = po
24.endif
25.if make(lib${LIB}_debug.a)
26OBJSUFFIX = do
27.endif
28.if make(lib${LIB}.a)
29OBJSUFFIX = So
30.endif
31
32.if exists(${OBJROOT}/sys/Makefile.inc)
33.include "${OBJROOT}/sys/Makefile.inc"
34.endif
35.include "${.CURDIR}/include/Makefile.inc"
36.include "${.CURDIR}/mach/Makefile.inc"
37
38# If there are no machine dependent sources, append all the
39# machine-independent sources:
40.if empty(MDSRCS)
41SRCS+= ${MISRCS}
42.else
43# Append machine-dependent sources, then append machine-independent sources
44# for which there is no machine-dependent variant, and not being suppressed.
45SRCS+= ${MDSRCS}
46_SUPPRESS= ${MDSRCS} ${SUPPRESSSRCS}
47.for _src in ${MISRCS}
48.if ${_SUPPRESS:R:M${_src:R}} == ""
49SRCS+= ${_src}
50.endif
51.endfor
52.endif