Merge from vendor branch TEXINFO:
[dragonfly.git] / kerberos5 / lib / libhdb / Makefile
1 # $FreeBSD: src/kerberos5/lib/libhdb/Makefile,v 1.18 2004/02/05 18:51:49 ru Exp $
2 # $DragonFly: src/kerberos5/lib/libhdb/Makefile,v 1.5 2005/01/16 14:25:46 eirikn Exp $
3
4 LIB=    hdb
5
6 INCS=   hdb-private.h \
7         hdb-protos.h \
8         hdb.h \
9         hdb_asn1.h \
10         hdb_err.h
11
12 SRCS=   common.c \
13         db.c \
14         db3.c \
15         hdb-ldap.c \
16         hdb.c \
17         hdb_asn1.h \
18         hdb_err.c \
19         hdb_err.h \
20         keytab.c \
21         mkey.c \
22         ndbm.c \
23         print.c \
24         ${GEN:S/.x$/.c/}
25
26 CFLAGS+=-I${KRB5DIR}/lib/hdb -I${KRB5DIR}/lib/asn1 \
27         -I${KRB5DIR}/lib/roken -I. ${LDAPCFLAGS}
28
29 GEN=    asn1_Event.x \
30         asn1_GENERATION.x \
31         asn1_HDBFlags.x \
32         asn1_Key.x \
33         asn1_Salt.x \
34         asn1_hdb_entry.x
35
36 CLEANFILES= ${GEN} ${GEN:S/.x$/.c/} hdb_asn1.h asn1_files
37
38 .ORDER: ${GEN} hdb_asn1.h
39 ${GEN} hdb_asn1.h: hdb.asn1
40         ${ASN1COMPILE} ${.ALLSRC:M*.asn1} hdb_asn1
41
42 .for I in ${GEN}
43 ${I:R}.c: ${I}
44         cat ${.ALLSRC} > ${.TARGET}
45 .endfor
46
47 .include <bsd.lib.mk>
48
49 .PATH: ${KRB5DIR}/lib/hdb