]> git.saurik.com Git - apple/libc.git/blob - Makefile.obsd_end
Libc-391.4.2.tar.gz
[apple/libc.git] / Makefile.obsd_end
1 # For the OpenBSD auto patching mechanism and compatibility environment
2 # setup, original OpenBSD sources a put into a OpenBSD 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 OBSDMDSRCS, OBSDMISRCS, OBSDORIGHDRS and OBSDSRCS variables must be set,
7 # and bracketed by .include of Makefile.obsd_begin and Makefile.obsd_end
8 #
9 # Set up dependencies between the OpenBSD source (in a OpenBSD subdirectory)
10 # and a file with a -obsd.x suffix (where x is 'c' or 's'). The suffix
11 # rules will then compile the file with the simulate OpenBSD environment.
12
13 OBSDSECTIONS= 1 2 3 4 5 6 7 8 9
14
15 .for _src in ${OBSDSRCS}
16 ${SYMROOT}/${_src:R}-obsd.${_src:E}: OpenBSD/${_src} _AUTOPATCHSYM
17 SRCS+= ${_src}
18 AUTOPATCHSRCS+= ${SYMROOT}/${_src:R}-obsd.${_src:E}
19 .endfor
20
21 .for _src in ${OBSDMDSRCS}
22 ${SYMROOT}/${_src:R}-obsd.${_src:E}: OpenBSD/${_src} _AUTOPATCHSYM
23 MDSRCS+= ${_src}
24 AUTOPATCHSRCS+= ${SYMROOT}/${_src:R}-obsd.${_src:E}
25 .endfor
26
27 .for _src in ${OBSDMISRCS}
28 ${SYMROOT}/${_src:R}-obsd.${_src:E}: OpenBSD/${_src} _AUTOPATCHSYM
29 MISRCS+= ${_src}
30 AUTOPATCHSRCS+= ${SYMROOT}/${_src:R}-obsd.${_src:E}
31 .endfor
32
33 .for _src in ${OBSDHDRS}
34 ${SYMROOT}/${_src}: OpenBSD/${_src} _AUTOPATCHSYM
35 AUTOPATCHHDRS+= ${SYMROOT}/${_src}
36 .endfor
37
38 .for _sect in ${OBSDSECTIONS}
39 .for _src in ${OBSDMAN${_sect}}
40 ${_src}: OpenBSD/${_src} _AUTOPATCH
41 MAN${_sect}+= ${_src}
42 AUTOPATCHMAN+= ${_src}
43 .endfor
44 .endfor