]> git.saurik.com Git - apple/libc.git/blame_incremental - uuid/Makefile.inc
Libc-594.9.5.tar.gz
[apple/libc.git] / uuid / Makefile.inc
... / ...
CommitLineData
1# uuid sources
2.PATH: ${.CURDIR}/uuid
3CWD := ${.CURDIR}/uuid
4
5# uuid/uuid.h is now installed by xnu
6
7UUIDSRCS = clear.c compare.c copy.c gen_uuid.c isnull.c pack.c parse.c \
8 unpack.c unparse.c
9UUIDHDRS = uuidP.h
10UUIDFROMMAN = libuuid.3.in
11UUIDTOMAN = uuid.3.in
12UUIDMAN3 = uuid_clear.3.in uuid_compare.3.in uuid_copy.3.in \
13 uuid_generate.3.in uuid_is_null.3.in uuid_parse.3.in \
14 uuid_unparse.3.in
15PRIVUUID_INSTHDRS += ${.CURDIR}/uuid/namespace.h
16
17# This .for statement forces evaluation of ${CWD}
18.for _cwd in ${CWD}
19
20.for _src in ${UUIDSRCS}
21.ifmake autopatch
22${_cwd}/${_src:R}-uuid.${_src:E}: ${_cwd}/uuidsrc/${_src} _AUTOPATCH
23AUTOPATCHSRCS+= ${_cwd}/${_src:R}-uuid.${_src:E}
24.else # !autopatch
25MISRCS+= ${_src}
26.endif # autopatch
27.endfor
28
29.ifmake autopatch
30.for _src in ${UUIDHDRS}
31${_cwd}/${_src}: ${_cwd}/uuidsrc/${_src} _AUTOPATCH
32AUTOPATCHHDRS+= ${_cwd}/${_src}
33.endfor
34.endif # autopatch
35
36.for _src in ${UUIDMAN3}
37.ifmake autopatch
38${_cwd}/${_src:R}-uuid.${_src:E}: ${_cwd}/uuidsrc/${_src} _AUTOPATCH
39AUTOPATCHMAN+= ${_cwd}/${_src:R}
40.else # !autopatch
41MAN3+= ${_src:R}
42.endif # autopatch
43.endfor
44
45MLINKS+= uuid_generate.3 uuid_generate_random.3 \
46 uuid_generate.3 uuid_generate_time.3
47
48MLINKS+= uuid_unparse.3 uuid_unparse_lower.3 \
49 uuid_unparse.3 uuid_unparse_upper.3
50
51.ifmake autopatch
52${_cwd}/${UUIDTOMAN:R}-uuid.${UUIDTOMAN:E}: ${_cwd}/uuidsrc/${UUIDFROMMAN} _AUTOPATCH
53AUTOPATCHMAN+= ${_cwd}/${UUIDTOMAN:R}
54.else # !autopatch
55MAN3+= ${UUIDTOMAN:R}
56.endif # autopatch
57
58.endfor # _cwd