]> git.saurik.com Git - apple/libc.git/blame - Makefile.nbsd_end
Libc-391.1.21.tar.gz
[apple/libc.git] / Makefile.nbsd_end
CommitLineData
3d9156a7
A
1# For the NetBSD auto patching mechanism and compatibility environment
2# setup, original NetBSD sources a put into a NetBSD subdirectory.
3# If a file with the same name, but suffix ".patch" is in that directory,
4# that patch will be applied before use.
5#
6# The NBSDMDSRCS, NBSDMISRCS, NBSDORIGHDRS and NBSDSRCS variables must be set,
7# and bracketed by .include of Makefile.nbsd_begin and Makefile.nbsd_end
8#
9# Set up dependencies between the NetBSD source (in a NetBSD subdirectory)
10# and a file with a -nbsd.x suffix (where x is 'c' or 's'). The suffix
11# rules will then compile the file with the simulate NetBSD environment.
12
13NBSDSECTIONS= 1 2 3 4 5 6 7 8 9
14
15.for _src in ${NBSDSRCS}
16${SYMROOT}/${_src:R}-nbsd.${_src:E}: NetBSD/${_src} _AUTOPATCHSYM
17SRCS+= ${_src}
18AUTOPATCHSRCS+= ${SYMROOT}/${_src:R}-nbsd.${_src:E}
19.endfor
20
21.for _src in ${NBSDMDSRCS}
22${SYMROOT}/${_src:R}-nbsd.${_src:E}: NetBSD/${_src} _AUTOPATCHSYM
23MDSRCS+= ${_src}
24AUTOPATCHSRCS+= ${SYMROOT}/${_src:R}-nbsd.${_src:E}
25.endfor
26
27.for _src in ${NBSDMISRCS}
28${SYMROOT}/${_src:R}-nbsd.${_src:E}: NetBSD/${_src} _AUTOPATCHSYM
29MISRCS+= ${_src}
30AUTOPATCHSRCS+= ${SYMROOT}/${_src:R}-nbsd.${_src:E}
31.endfor
32
33.for _src in ${NBSDHDRS}
34${SYMROOT}/${_src}: NetBSD/${_src} _AUTOPATCHSYM
35AUTOPATCHHDRS+= ${SYMROOT}/${_src}
36.endfor
37
38.for _sect in ${NBSDSECTIONS}
39.for _src in ${NBSDMAN${_sect}}
40${_src}: NetBSD/${_src} _AUTOPATCH
41MAN${_sect}+= ${_src}
42AUTOPATCHMAN+= ${_src}
43.endfor
44.endfor