]> git.saurik.com Git - apple/xnu.git/blob - libsyscall/Makefile.inc
xnu-1228.5.20.tar.gz
[apple/xnu.git] / libsyscall / Makefile.inc
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:
7 MDSRCS=
8 MISRCS=
9 MDASM=
10 MIASM=
11 NOASM=
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.
16 SUPPRESSSRCS=
17
18 # set object file suffix
19 .if make(lib${LIB}_static.a)
20 OBJSUFFIX = o
21 .endif
22 .if make(lib${LIB}_profile.a)
23 OBJSUFFIX = po
24 .endif
25 .if make(lib${LIB}_debug.a)
26 OBJSUFFIX = do
27 .endif
28 .if make(lib${LIB}.a)
29 OBJSUFFIX = 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)
41 SRCS+= ${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.
45 SRCS+= ${MDSRCS}
46 _SUPPRESS= ${MDSRCS} ${SUPPRESSSRCS}
47 .for _src in ${MISRCS}
48 .if ${_SUPPRESS:R:M${_src:R}} == ""
49 SRCS+= ${_src}
50 .endif
51 .endfor
52 .endif