]>
Commit | Line | Data |
---|---|---|
59e0d9fe A |
1 | # uuid sources |
2 | .PATH: ${.CURDIR}/uuid | |
b5d655f7 | 3 | CWD := ${.CURDIR}/uuid |
59e0d9fe | 4 | |
3d9156a7 A |
5 | # uuid/uuid.h is now installed by xnu |
6 | ||
59e0d9fe A |
7 | UUIDSRCS = clear.c compare.c copy.c gen_uuid.c isnull.c pack.c parse.c \ |
8 | unpack.c unparse.c | |
3d9156a7 | 9 | UUIDHDRS = uuidP.h |
59e0d9fe A |
10 | UUIDFROMMAN = libuuid.3.in |
11 | UUIDTOMAN = uuid.3.in | |
224c7076 A |
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 | |
3d9156a7 | 15 | PRIVUUID_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 |
23 | AUTOPATCHSRCS+= ${_cwd}/${_src:R}-uuid.${_src:E} | |
224c7076 | 24 | .else # !autopatch |
59e0d9fe | 25 | MISRCS+= ${_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 |
32 | AUTOPATCHHDRS+= ${_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 |
39 | AUTOPATCHMAN+= ${_cwd}/${_src:R} | |
224c7076 A |
40 | .else # !autopatch |
41 | MAN3+= ${_src:R} | |
42 | .endif # autopatch | |
59e0d9fe A |
43 | .endfor |
44 | ||
224c7076 A |
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 | |
b5d655f7 A |
52 | ${_cwd}/${UUIDTOMAN:R}-uuid.${UUIDTOMAN:E}: ${_cwd}/uuidsrc/${UUIDFROMMAN} _AUTOPATCH |
53 | AUTOPATCHMAN+= ${_cwd}/${UUIDTOMAN:R} | |
224c7076 A |
54 | .else # !autopatch |
55 | MAN3+= ${UUIDTOMAN:R} | |
56 | .endif # autopatch | |
b5d655f7 A |
57 | |
58 | .endfor # _cwd |