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