]> git.saurik.com Git - apple/libc.git/blob - uuid/Makefile.inc
Libc-583.tar.gz
[apple/libc.git] / uuid / Makefile.inc
1 # uuid sources
2 .PATH: ${.CURDIR}/uuid
3 CWD := ${.CURDIR}/uuid
4
5 # uuid/uuid.h is now installed by xnu
6
7 UUIDSRCS = clear.c compare.c copy.c gen_uuid.c isnull.c pack.c parse.c \
8 unpack.c unparse.c
9 UUIDHDRS = uuidP.h
10 UUIDFROMMAN = libuuid.3.in
11 UUIDTOMAN = uuid.3.in
12 UUIDMAN3 = 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
15 PRIVUUID_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
23 AUTOPATCHSRCS+= ${_cwd}/${_src:R}-uuid.${_src:E}
24 .else # !autopatch
25 MISRCS+= ${_src}
26 .endif # autopatch
27 .endfor
28
29 .ifmake autopatch
30 .for _src in ${UUIDHDRS}
31 ${_cwd}/${_src}: ${_cwd}/uuidsrc/${_src} _AUTOPATCH
32 AUTOPATCHHDRS+= ${_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
39 AUTOPATCHMAN+= ${_cwd}/${_src:R}
40 .else # !autopatch
41 MAN3+= ${_src:R}
42 .endif # autopatch
43 .endfor
44
45 MLINKS+= uuid_generate.3 uuid_generate_random.3 \
46 uuid_generate.3 uuid_generate_time.3
47
48 MLINKS+= 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
53 AUTOPATCHMAN+= ${_cwd}/${UUIDTOMAN:R}
54 .else # !autopatch
55 MAN3+= ${UUIDTOMAN:R}
56 .endif # autopatch
57
58 .endfor # _cwd