summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-08-01 17:35:44 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-08-01 17:35:44 (EDT)
commit439db8d47839ee969f2931f8a82af9c104e7b1b9 (patch)
tree014b36821dbf6c926e0bff70770960efce8d4dcf /build
parent9b3bb5ddf73968d790f854b4c5e101ef77c25514 (diff)
Use pregenerated lexical scanners and parsers
Diffstat (limited to 'build')
-rwxr-xr-xbuild14
1 files changed, 13 insertions, 1 deletions
diff --git a/build b/build
index bf6f41e..7c851a9 100755
--- a/build
+++ b/build
@@ -6,7 +6,19 @@ nop:
@:
build:
- oh-autoconfigure
+ @# ProteanOS doesn't have Bison (needs Perl) or Flex yet, so we need to
+ @# provide pregenerated files. Many other packages just include such
+ @# files in their source archives, but libnl doesn't.
+ cp ../src.gen/pktloc_grammar.c src/lib/route/pktloc_grammar.c
+ cp ../src.gen/pktloc_grammar.h src/lib/route/pktloc_grammar.h
+ cp ../src.gen/pktloc_syntax.c src/lib/route/pktloc_syntax.c
+ cp ../src.gen/pktloc_syntax.h src/lib/route/pktloc_syntax.h
+ cp ../src.gen/ematch_grammar.c src/lib/route/cls/ematch_grammar.c
+ cp ../src.gen/ematch_grammar.h src/lib/route/cls/ematch_grammar.h
+ cp ../src.gen/ematch_syntax.c src/lib/route/cls/ematch_syntax.c
+ cp ../src.gen/ematch_syntax.h src/lib/route/cls/ematch_syntax.h
+ printf 'ac_cv_prog_FLEX=:\nac_cv_prog_YACC=:\n' >src/config.cache
+ oh-autoconfigure -- --cache-file=config.cache
oh-autobuild
touch $@