]> CyberLeo.Net >> Repos - FreeBSD/releng/8.1.git/blob - kerberos5/lib/libhdb/Makefile
Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.
[FreeBSD/releng/8.1.git] / kerberos5 / lib / libhdb / Makefile
1 # $FreeBSD$
2
3 LIB=    hdb
4
5 INCS=   hdb-private.h \
6         hdb-protos.h \
7         hdb.h \
8         hdb_asn1.h \
9         hdb_err.h
10
11 SRCS=   common.c \
12         db.c \
13         db3.c \
14         dbinfo.c \
15         ext.c \
16         hdb-ldap.c \
17         hdb.c \
18         hdb_asn1.h \
19         hdb_err.c \
20         hdb_err.h \
21         keys.c \
22         keytab.c \
23         mkey.c \
24         ndbm.c \
25         print.c \
26         ${GEN:S/.x$/.c/}
27
28 CFLAGS+=-I${KRB5DIR}/lib/hdb -I${KRB5DIR}/lib/asn1 \
29         -I${KRB5DIR}/lib/roken -I. ${LDAPCFLAGS}
30 CFLAGS+=-DHDB_DB_DIR="\"/var/heimdal\""
31
32 GEN=    asn1_Salt.x \
33         asn1_Key.x \
34         asn1_Event.x \
35         asn1_HDBFlags.x \
36         asn1_GENERATION.x \
37         asn1_HDB_Ext_PKINIT_acl.x \
38         asn1_HDB_Ext_PKINIT_hash.x \
39         asn1_HDB_Ext_Constrained_delegation_acl.x \
40         asn1_HDB_Ext_Lan_Manager_OWF.x \
41         asn1_HDB_Ext_Password.x \
42         asn1_HDB_Ext_Aliases.x \
43         asn1_HDB_extension.x \
44         asn1_HDB_extensions.x \
45         asn1_hdb_entry.x \
46         asn1_hdb_entry_alias.x
47
48 CLEANFILES= ${GEN} ${GEN:S/.x$/.c/} hdb_asn1.h asn1_files
49
50 .ORDER: ${GEN} hdb_asn1.h
51 ${GEN} hdb_asn1.h: hdb.asn1 ../../tools/asn1_compile/asn1_compile
52         ../../tools/asn1_compile/asn1_compile ${.ALLSRC:M*.asn1} hdb_asn1
53
54 ../../tools/asn1_compile/asn1_compile:
55         cd ${.CURDIR}/../../tools/asn1_compile && ${MAKE}
56
57 .for I in ${GEN}
58 ${I:R}.c: ${I}
59         cat ${.ALLSRC} > ${.TARGET}
60 .endfor
61
62 .include <bsd.lib.mk>
63
64 .PATH: ${KRB5DIR}/lib/hdb