3 # build generated asn1, et and flex files in heimdal/ tree
4 # tridge@samba.org, June 2005
7 ASN1_COMPILE=$TOP/bin/asn1_compile
8 ET_COMPILE=$TOP/bin/compile_et
10 # we need to substitute these correctly based on configure output
22 cd $dir && $ASN1_COMPILE $file $name || exit 1
25 rm -f $base.c && cp $base.x $base.c
35 cd $dir && $ET_COMPILE $file || exit 1
45 cd $dir && $FLEX $file
46 sed '/^#/ s|$base.yy\.c|$base.c|' $base.yy.c > $base.c
56 cd $dir && $BISON -y -d $file
57 sed -e "/^#/!b" -e "s|y\.tab\.h|$base.h|" y.tab.h > $base.h
58 sed '/^#/ s|y\.tab\.c|$base.c|' y.tab.c > $base.c
68 echo cp $base"in" $base
69 cd $dir && cp $base"in" $base
73 build_cp heimdal/lib/roken/vis.hin
74 build_lex heimdal/lib/asn1/lex.l
75 build_lex heimdal/lib/com_err/lex.l
76 build_bison heimdal/lib/com_err/parse.y
77 build_bison heimdal/lib/asn1/parse.y
79 make bin/asn1_compile || exit 1
80 build_asn1 heimdal/lib/hdb/hdb.asn1 hdb_asn1
81 build_asn1 heimdal/lib/gssapi/spnego.asn1 spnego_asn1
82 build_asn1 heimdal/lib/asn1/k5.asn1 krb5_asn1
84 make bin/compile_et || exit 1
85 build_et heimdal/lib/hdb/hdb_err.et
86 build_et heimdal/lib/krb5/krb5_err.et
87 build_et heimdal/lib/krb5/heim_err.et
88 build_et heimdal/lib/krb5/k524_err.et
89 build_et heimdal/lib/asn1/asn1_err.et