Remove building with NOCRYPTO option
[minix.git] / crypto / external / bsd / heimdal / lib / libasn1 / asn1_compile / Makefile
blob7ed2f9a36601c8e89c773a71dfc6913de4851055
1 # $NetBSD: Makefile,v 1.2 2011/04/15 19:41:11 elric Exp $
3 NOLINT= # defined
4 NOMAN= # defined
6 .include <bsd.own.mk>
7 .include <${.CURDIR}/../../../Makefile.inc>
9 .PATH: ${HEIMDIST}/lib/asn1 \
10 ${HEIMDIST}/lib/roken \
11 ${HEIMDIST}/lib/vers
13 PROG= asn1_compile
15 .if ${USETOOLS} != "yes"
16 LDADD+= -lutil
17 DPADD+= ${LIBUTIL}
18 .endif
20 WARNS?= 1
22 asn1_compile_SRCS = \
23 gen.c \
24 gen_copy.c \
25 gen_decode.c \
26 gen_encode.c \
27 gen_free.c \
28 gen_glue.c \
29 gen_length.c \
30 gen_seq.c \
31 gen_template.c \
32 hash.c \
33 lex.l \
34 main.c \
35 asn1parse.y \
36 symbol.c
38 roken_SRCS = \
39 getarg.c \
40 print_version.c \
41 warnerr.c \
42 strupr.c \
43 get_window_size.c \
44 ecalloc.c \
45 emalloc.c \
46 estrdup.c \
47 rand.c
49 SRCS= $(asn1_compile_SRCS) \
50 $(roken_SRCS)
52 YHEADER= # defined
54 HOST_CPPFLAGS+= -I. \
55 -I${HEIMBASE}/include \
56 -I${HEIMBASE}/include/krb5 \
57 -I${HEIMBASE}/lib/libkrb5 \
58 -I${HEIMDIST}/lib/asn1 \
59 -I${HEIMDIST}/lib/roken \
60 -DKRB5=1 \
61 -DHAVE_CONFIG_H
63 DPSRCS= print_version.h
65 make-print-version.lo: ${HEIMBASE}/include/version.h
67 make-print-version: make-print-version.lo
68 ${HOST_CC} ${HOST_LDFLAGS} -o ${.TARGET} ${.ALLSRC}
70 print_version.h: make-print-version
71 ./make-print-version print_version.h
73 .NOPATH: print_version.h make-print-version
75 CLEANFILES+= print_version.h make-print-version make-print-version.lo
77 beforedepend:
78 [ -h krb5 ] || ln -sf . krb5
79 ln -sf ${HEIMBASE}/include/der-protos.h
80 ln -sf ${HEIMBASE}/include/roken.h
81 ln -sf ${HEIMBASE}/include/krb5-types.h
82 ln -sf ${HEIMBASE}/dist/lib/asn1/der.h
83 ln -sf ${HEIMBASE}/dist/lib/roken/roken-common.h
84 ln -sf ${HEIMBASE}/dist/lib/roken/getarg.h
85 ln -sf ${HEIMBASE}/dist/lib/asn1/asn1-common.h
87 CLEANFILES+= krb5 der-protos.h roken.h krb5-types.h der.h \
88 roken-common.h getarg.h asn1-common.h
90 # HOSTPROG will be set already if this is a src/tools build.
91 .ifndef HOSTPROG
92 HOSTPROG= ${PROG}
93 .include <bsd.hostprog.mk>
94 .endif