summaryrefslogtreecommitdiff
path: root/lib/libkrb5/Makefile.hdb.inc
blob: 6f4f3b4b8c6b56c37e8ec8114f83e296d88a1b06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# $OpenBSD: Makefile.hdb.inc,v 1.6 2006/04/14 08:24:41 biorn Exp $

DIR_HDB=	${KRB5SRC}/lib/hdb
HDR_HDB=	hdb.h hdb-protos.h hdb-private.h
HDR_GEN+=	hdb_err.h hdb_asn1.h

.PATH:	${DIR_HDB}

gen_files_hdb= \
	hdb_asn1.h \
	asn1_Key.c \
	asn1_Event.c \
	asn1_HDBFlags.c \
	asn1_hdb_entry.c \
        asn1_Salt.c \
	asn1_GENERATION.c

gen_files_hdb+=\
	hdb_err.h \
	hdb_err.c

SRCS+=	keytab.c \
	keys.c \
	hdb.c \
	common.c \
	db.c \
	mkey.c \
	ndbm.c \
	print.c \
	${gen_files_hdb}

CFLAGS+=	-I${DIR_HDB} #-I${DIR_ASN1}

regen_hdb:
	cd ${GENDIR}; compile_et ${DIR_HDB}/hdb_err.et
	cd ${GENDIR}; asn1_compile ${DIR_HDB}/hdb.asn1 hdb_asn1; \
		for f in *.x; do mv $$f `echo $$f | sed s,.x$$,.c,g`; done

regen:		regen_hdb