]> CyberLeo.Net >> Repos - FreeBSD/releng/7.2.git/blob - kerberos5/tools/asn1_compile/Makefile
Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.
[FreeBSD/releng/7.2.git] / kerberos5 / tools / asn1_compile / Makefile
1 # $FreeBSD$
2
3 PROG=   asn1_compile
4 NO_MAN=
5
6 SRCS=   gen.c \
7         gen_copy.c \
8         gen_decode.c \
9         gen_encode.c \
10         gen_free.c \
11         gen_glue-fixed.c \
12         gen_length.c \
13         hash.c \
14         emalloc.c \
15         main.c \
16         symbol.c \
17         getarg.c \
18         warnerr.c \
19         lex.l \
20         parse.y \
21         print_version.c \
22         print_version.h \
23         roken.h \
24         get_window_size.c \
25         strupr.c
26
27 CFLAGS+=-I${KRB5DIR}/lib/roken -I${KRB5DIR}/lib/asn1 -I.
28
29 CLEANFILES= print_version.h roken.h
30
31 print_version.h: ../make-print-version/make-print-version
32         ../make-print-version/make-print-version ${.TARGET}
33
34 ../make-print-version/make-print-version: .PHONY
35         cd ${.CURDIR}/../make-print-version && ${MAKE}
36
37 roken.h: ../make-roken/make-roken
38         ../make-roken/make-roken > ${.TARGET}
39
40 ../make-roken/make-roken: .PHONY
41         cd ${.CURDIR}/../make-roken && ${MAKE}
42
43 gen_glue-fixed.c: gen_glue.c
44          sed -e '106s/"/"#ifdef __PARSE_UNITS_H__\\n/;'\
45              -e '106s/",/\\n#endif\\n",/' ${.ALLSRC} > ${.TARGET}
46 CLEANFILES+= gen_glue-fixed.c
47
48 .include <bsd.prog.mk>
49
50 # There are two print_version.c's, the one we need is in ${KRB5DIR}/lib/vers,
51 # so the order of paths is important here.
52 .PATH: ${KRB5DIR}/lib/vers ${KRB5DIR}/lib/roken ${KRB5DIR}/lib/asn1