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