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