]> git.saurik.com Git - apple/libc.git/blame - uuid/Makefile.inc
Libc-594.9.5.tar.gz
[apple/libc.git] / uuid / Makefile.inc
CommitLineData
59e0d9fe
A
1# uuid sources
2.PATH: ${.CURDIR}/uuid
b5d655f7 3CWD := ${.CURDIR}/uuid
59e0d9fe 4
3d9156a7
A
5# uuid/uuid.h is now installed by xnu
6
59e0d9fe
A
7UUIDSRCS = clear.c compare.c copy.c gen_uuid.c isnull.c pack.c parse.c \
8 unpack.c unparse.c
3d9156a7 9UUIDHDRS = uuidP.h
59e0d9fe
A
10UUIDFROMMAN = libuuid.3.in
11UUIDTOMAN = uuid.3.in
224c7076
A
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
3d9156a7 15PRIVUUID_INSTHDRS += ${.CURDIR}/uuid/namespace.h
59e0d9fe 16
b5d655f7
A
17# This .for statement forces evaluation of ${CWD}
18.for _cwd in ${CWD}
19
59e0d9fe 20.for _src in ${UUIDSRCS}
224c7076 21.ifmake autopatch
b5d655f7
A
22${_cwd}/${_src:R}-uuid.${_src:E}: ${_cwd}/uuidsrc/${_src} _AUTOPATCH
23AUTOPATCHSRCS+= ${_cwd}/${_src:R}-uuid.${_src:E}
224c7076 24.else # !autopatch
59e0d9fe 25MISRCS+= ${_src}
224c7076 26.endif # autopatch
59e0d9fe
A
27.endfor
28
224c7076 29.ifmake autopatch
59e0d9fe 30.for _src in ${UUIDHDRS}
b5d655f7
A
31${_cwd}/${_src}: ${_cwd}/uuidsrc/${_src} _AUTOPATCH
32AUTOPATCHHDRS+= ${_cwd}/${_src}
59e0d9fe 33.endfor
224c7076 34.endif # autopatch
59e0d9fe
A
35
36.for _src in ${UUIDMAN3}
224c7076 37.ifmake autopatch
b5d655f7
A
38${_cwd}/${_src:R}-uuid.${_src:E}: ${_cwd}/uuidsrc/${_src} _AUTOPATCH
39AUTOPATCHMAN+= ${_cwd}/${_src:R}
224c7076
A
40.else # !autopatch
41MAN3+= ${_src:R}
42.endif # autopatch
59e0d9fe
A
43.endfor
44
224c7076
A
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
b5d655f7
A
52${_cwd}/${UUIDTOMAN:R}-uuid.${UUIDTOMAN:E}: ${_cwd}/uuidsrc/${UUIDFROMMAN} _AUTOPATCH
53AUTOPATCHMAN+= ${_cwd}/${UUIDTOMAN:R}
224c7076
A
54.else # !autopatch
55MAN3+= ${UUIDTOMAN:R}
56.endif # autopatch
b5d655f7
A
57
58.endfor # _cwd