1 2 The source code of bison 2.7 was downloaded from http://ftp.gnu.org/gnu/bison/. 3 4 To build it with the Android build system, we added 2 subdirectories darwin-lib 5 and linux-lib, as well as an Android.mk. 6 We used the following steps to generate the Android.mk: 7 1) On a Mac OS X machine, run ./configure and make, you'll get a list of 8 generated header files from the log. Copy them to darwin-lib; You can also get 9 a list of source files from the log. Add them to LOCAL_SRC_FILES in the 10 Android.mk. 11 2) Do the same thing on a Linux machine. 12 3) Comment out the PKGINCLUDEDIR line in darwin-lib/configmake.h and 13 linux-lib/configmake.h, because we'll pass in the macro from the build system. 14 4) Define libbison and bison in the Android.mk. 15