1# $FreeBSD$ 2 3PROG= asn1_compile 4NO_MAN= 5 6SRCS= 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 gen_seq.c \ 14 hash.c \ 15 ecalloc.c \ 16 emalloc.c \ 17 estrdup.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: ../make-print-version/make-print-version 35 ../make-print-version/make-print-version ${.TARGET} 36 37../make-print-version/make-print-version: .PHONY 38 cd ${.CURDIR}/../make-print-version && ${MAKE} 39 40roken.h: ../make-roken/make-roken 41 ../make-roken/make-roken > ${.TARGET} 42 43../make-roken/make-roken: .PHONY 44 cd ${.CURDIR}/../make-roken && ${MAKE} 45 46gen_glue-fixed.c: gen_glue.c 47 sed -e '96s/"/"#ifdef __PARSE_UNITS_H__\\n/;'\ 48 -e '96s/",/\\n#endif\\n",/' ${.ALLSRC} > ${.TARGET} 49CLEANFILES+= gen_glue-fixed.c 50 51.include <bsd.prog.mk> 52 53# There are two print_version.c's, the one we need is in ${KRB5DIR}/lib/vers, 54# so the order of paths is important here. 55.PATH: ${KRB5DIR}/lib/vers ${KRB5DIR}/lib/roken ${KRB5DIR}/lib/asn1 56