]>
Commit | Line | Data |
---|---|---|
59e0d9fe A |
1 | # uuid sources |
2 | .PATH: ${.CURDIR}/uuid | |
3 | ||
3d9156a7 A |
4 | # uuid/uuid.h is now installed by xnu |
5 | ||
59e0d9fe A |
6 | UUIDSRCS = clear.c compare.c copy.c gen_uuid.c isnull.c pack.c parse.c \ |
7 | unpack.c unparse.c | |
3d9156a7 | 8 | UUIDHDRS = uuidP.h |
59e0d9fe A |
9 | UUIDFROMMAN = libuuid.3.in |
10 | UUIDTOMAN = uuid.3.in | |
224c7076 A |
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 | |
3d9156a7 | 14 | PRIVUUID_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 | |
19 | AUTOPATCHSRCS+= ${_src:R}-uuid.${_src:E} | |
20 | .else # !autopatch | |
59e0d9fe | 21 | MISRCS+= ${_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 |
28 | AUTOPATCHHDRS+= ${_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 | 35 | AUTOPATCHMAN+= ${_src:R} |
224c7076 A |
36 | .else # !autopatch |
37 | MAN3+= ${_src:R} | |
38 | .endif # autopatch | |
59e0d9fe A |
39 | .endfor |
40 | ||
224c7076 A |
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 | |
59e0d9fe | 48 | ${UUIDTOMAN:R}-uuid.${UUIDTOMAN:E}: uuidsrc/${UUIDFROMMAN} _AUTOPATCH |
59e0d9fe | 49 | AUTOPATCHMAN+= ${UUIDTOMAN:R} |
224c7076 A |
50 | .else # !autopatch |
51 | MAN3+= ${UUIDTOMAN:R} | |
52 | .endif # autopatch |