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