Instead of duplicating the Kerberos tools, use a single version.
[dragonfly.git] / kerberos5 / tools / asn1_compile / Makefile
CommitLineData
8a443844 1# $FreeBSD: src/kerberos5/tools/asn1_compile/Makefile,v 1.5 2004/12/21 08:47:01 ru Exp $
92b9cead 2# $DragonFly: src/kerberos5/tools/asn1_compile/Makefile,v 1.2 2005/07/14 18:02:33 joerg Exp $
8a443844
EN
3
4PROG= asn1_compile
5NOMAN=
6
7NOINCS=
8
9SRCS= gen.c \
10 gen_copy.c \
11 gen_decode.c \
12 gen_encode.c \
13 gen_free.c \
14 gen_glue.c \
15 gen_length.c \
16 hash.c \
17 emalloc.c \
18 main.c \
19 symbol.c \
20 getarg.c \
21 warnerr.c \
22 lex.l \
23 parse.y \
24 print_version.c \
25 print_version.h \
26 roken.h \
27 get_window_size.c \
28 strupr.c
29
30CFLAGS+=-I${KRB5DIR}/lib/roken -I${KRB5DIR}/lib/asn1 -I.
31
32CLEANFILES= print_version.h roken.h
33
34print_version.h:
35 ${MAKEPRINTVERSION} ${.TARGET}
36
37roken.h:
38 ${MAKEROKEN} > ${.TARGET}
39
92b9cead 40.include <bsd.hostprog.mk>
8a443844
EN
41
42# There are two print_version.c's, the one we need is in ${KRB5DIR}/lib/vers,
43# so the order of paths is important here.
44.PATH: ${KRB5DIR}/lib/vers ${KRB5DIR}/lib/roken ${KRB5DIR}/lib/asn1