xref: /freebsd/kerberos5/lib/libhdb/Makefile (revision f81cdf24ba5436367377f7c8e8f51f6df2a75ca7)
1
2PACKAGE=	kerberos-lib
3
4LIB=	hdb
5LDFLAGS=	-Wl,--no-undefined ${LDAPLDFLAGS}
6VERSION_MAP=	${KRB5DIR}/lib/hdb/version-script.map
7LIBADD=	asn1 com_err krb5 roken sqlite3
8LDADD=	${LDAPLDADD}
9DPADD=	${LDAPDPADD}
10
11WARNS?=	0
12
13MAN=	HDB.3 hdb_entry_ex.3
14
15MLINKS=	HDB.3 hdb__del.3 \
16	HDB.3 hdb__get.3 \
17	HDB.3 hdb__put.3 \
18	HDB.3 hdb_auth_status.3 \
19	HDB.3 hdb_check_constrained_delegation.3 \
20	HDB.3 hdb_check_pkinit_ms_upn_match.3 \
21	HDB.3 hdb_check_s4u2self.3 \
22	HDB.3 hdb_close.3 \
23	HDB.3 hdb_destroy.3 \
24	HDB.3 hdb_fetch_kvno.3 \
25	HDB.3 hdb_firstkey.3 \
26	HDB.3 hdb_free.3 \
27	HDB.3 hdb_get_realms.3 \
28	HDB.3 hdb_lock.3 \
29	HDB.3 hdb_name.3 \
30	HDB.3 hdb_nextkey.3 \
31	HDB.3 hdb_open.3 \
32	HDB.3 hdb_password.3 \
33	HDB.3 hdb_remove.3 \
34	HDB.3 hdb_rename.3 \
35	HDB.3 hdb_store.3 \
36	HDB.3 hdb_unlock.3
37
38INCS=	hdb-protos.h \
39	hdb.h \
40	hdb_asn1.h \
41	hdb_err.h
42
43SRCS=	common.c \
44	db.c \
45	dbinfo.c \
46	ext.c \
47	hdb-ldap.c \
48	hdb.c \
49	hdb_err.c \
50	hdb_err.h \
51	hdb-sqlite.c \
52	hdb-keytab.c \
53	hdb-mitdb.c \
54	keys.c \
55	keytab.c \
56	mkey.c \
57	ndbm.c \
58	print.c \
59	${GEN:S/.x$/.c/:S/.hx$/.h/}
60
61CFLAGS+=-I${KRB5DIR}/lib/hdb -I${KRB5DIR}/lib/asn1 \
62	-I${KRB5DIR}/lib/roken -I${SRCTOP}/contrib/sqlite3/ \
63	-I${KRB5DIR}/lib/krb5 \
64	-I${SRCTOP}/contrib/com_err \
65	-I. ${LDAPCFLAGS}
66CFLAGS+=-DHDB_DB_DIR="\"/var/heimdal\""
67
68GEN=	asn1_Salt.x \
69	asn1_Key.x \
70	asn1_Event.x \
71	asn1_HDBFlags.x \
72	asn1_GENERATION.x \
73	asn1_HDB_Ext_PKINIT_acl.x \
74	asn1_HDB_Ext_PKINIT_cert.x \
75	asn1_HDB_Ext_PKINIT_hash.x \
76	asn1_HDB_Ext_Constrained_delegation_acl.x \
77	asn1_HDB_Ext_Lan_Manager_OWF.x \
78	asn1_HDB_Ext_Password.x \
79	asn1_HDB_Ext_Aliases.x \
80	asn1_HDB_extension.x \
81	asn1_HDB_extensions.x \
82	asn1_hdb_entry.x \
83	asn1_hdb_entry_alias.x \
84	asn1_hdb_keyset.x \
85	hdb_asn1.hx \
86	hdb_asn1-priv.hx
87
88CLEANFILES=	${GEN} ${GEN:S/.x$/.c/:S/.hx$/.h/} hdb_asn1_files \
89		hdb_asn1-template.[ch]*
90
91.ORDER: ${GEN}
92${GEN:[2..-1]}: .NOMETA
93${GEN}: hdb.asn1
94	${ASN1_COMPILE} ${.ALLSRC:M*.asn1} hdb_asn1
95
96.SUFFIXES: .h .c .x .hx
97
98.x.c:
99	${CP} ${.IMPSRC} ${.TARGET}
100
101.hx.h:
102	${CP} ${.IMPSRC} ${.TARGET}
103
104.include <bsd.lib.mk>
105
106.SUFFIXES: .h .c .x .hx
107
108.PATH: ${KRB5DIR}/lib/hdb ${KRB5DIR}/doc/doxyout/hdb/man/man3/
109