Home | History | Annotate | Line # | Download | only in asn1_compile
      1  1.3  christos # $NetBSD: Makefile,v 1.3 2018/05/01 19:59:42 christos Exp $
      2  1.1     elric 
      3  1.3  christos .include <bsd.hostinit.mk>
      4  1.1     elric .include <${.CURDIR}/../../../Makefile.inc>
      5  1.1     elric 
      6  1.1     elric .PATH:	${HEIMDIST}/lib/asn1	\
      7  1.1     elric 	${HEIMDIST}/lib/roken	\
      8  1.1     elric 	${HEIMDIST}/lib/vers
      9  1.1     elric 
     10  1.1     elric PROG=		asn1_compile
     11  1.1     elric 
     12  1.1     elric .if ${USETOOLS} != "yes"
     13  1.1     elric LDADD+= -lutil
     14  1.1     elric DPADD+= ${LIBUTIL}
     15  1.1     elric .endif
     16  1.1     elric 
     17  1.1     elric WARNS?=		1
     18  1.1     elric 
     19  1.1     elric asn1_compile_SRCS = 				\
     20  1.1     elric 	gen.c					\
     21  1.1     elric 	gen_copy.c				\
     22  1.1     elric 	gen_decode.c				\
     23  1.1     elric 	gen_encode.c				\
     24  1.1     elric 	gen_free.c				\
     25  1.1     elric 	gen_glue.c				\
     26  1.1     elric 	gen_length.c				\
     27  1.1     elric 	gen_seq.c				\
     28  1.1     elric 	gen_template.c				\
     29  1.1     elric 	hash.c					\
     30  1.1     elric 	lex.l					\
     31  1.1     elric 	main.c					\
     32  1.1     elric 	asn1parse.y				\
     33  1.1     elric 	symbol.c
     34  1.1     elric 
     35  1.1     elric roken_SRCS =					\
     36  1.1     elric 	getarg.c				\
     37  1.1     elric 	print_version.c				\
     38  1.1     elric 	warnerr.c				\
     39  1.1     elric 	strupr.c				\
     40  1.1     elric 	get_window_size.c			\
     41  1.1     elric 	ecalloc.c				\
     42  1.1     elric 	emalloc.c				\
     43  1.1     elric 	estrdup.c				\
     44  1.1     elric 	rand.c
     45  1.1     elric 
     46  1.1     elric SRCS=	$(asn1_compile_SRCS)			\
     47  1.1     elric 	$(roken_SRCS)
     48  1.1     elric 
     49  1.1     elric YHEADER=	# defined
     50  1.1     elric 
     51  1.1     elric HOST_CPPFLAGS+= -I.			\
     52  1.1     elric 	 -I${HEIMBASE}/include		\
     53  1.1     elric 	 -I${HEIMBASE}/include/krb5	\
     54  1.1     elric 	 -I${HEIMBASE}/lib/libkrb5	\
     55  1.1     elric 	 -I${HEIMDIST}/lib/asn1		\
     56  1.1     elric 	 -I${HEIMDIST}/lib/roken	\
     57  1.1     elric 	 -DKRB5=1			\
     58  1.1     elric 	 -DHAVE_CONFIG_H
     59  1.1     elric 
     60  1.1     elric DPSRCS=		print_version.h
     61  1.1     elric 
     62  1.1     elric make-print-version.lo: ${HEIMBASE}/include/version.h
     63  1.1     elric 
     64  1.1     elric make-print-version: make-print-version.lo
     65  1.1     elric 	${HOST_CC} ${HOST_LDFLAGS} -o ${.TARGET} ${.ALLSRC}
     66  1.1     elric 
     67  1.1     elric print_version.h: make-print-version
     68  1.1     elric 	./make-print-version print_version.h
     69  1.1     elric 
     70  1.1     elric .NOPATH: print_version.h make-print-version
     71  1.1     elric 
     72  1.1     elric CLEANFILES+=	print_version.h make-print-version make-print-version.lo
     73  1.1     elric 
     74  1.2     elric beforedepend:
     75  1.1     elric 	[ -h krb5 ] || ln -sf . krb5
     76  1.1     elric 	ln -sf ${HEIMBASE}/include/der-protos.h
     77  1.1     elric 	ln -sf ${HEIMBASE}/include/roken.h
     78  1.1     elric 	ln -sf ${HEIMBASE}/include/krb5-types.h
     79  1.1     elric 	ln -sf ${HEIMBASE}/dist/lib/asn1/der.h
     80  1.1     elric 	ln -sf ${HEIMBASE}/dist/lib/roken/roken-common.h
     81  1.1     elric 	ln -sf ${HEIMBASE}/dist/lib/roken/getarg.h
     82  1.1     elric 	ln -sf ${HEIMBASE}/dist/lib/asn1/asn1-common.h
     83  1.1     elric 
     84  1.1     elric CLEANFILES+=    krb5 der-protos.h roken.h krb5-types.h der.h	\
     85  1.1     elric 		roken-common.h getarg.h asn1-common.h
     86  1.1     elric 
     87  1.1     elric # HOSTPROG will be set already if this is a src/tools build.
     88  1.1     elric .ifndef HOSTPROG
     89  1.1     elric HOSTPROG=	${PROG}
     90  1.1     elric .include <bsd.hostprog.mk>
     91  1.1     elric .endif
     92