Unconditionally include stdlib.h.
[libfirm] / ir / libcore / do_bisonflex.sh
1 #!/bin/sh
2
3 invoke() {
4         echo "$@"
5         $@ || exit $?
6 }
7
8 # bison/flex make me crazy, all versions differ in subtle ways making it nearly
9 # impossible to distribute .l/.y files and integrate them into the build system
10 # so that they work everywhere. (All this ylwrap hackery from the automake guys
11 # just failed for me again). So now we do it differently: We distribute the
12 # generated C code and only people that actually change the .y and .l files
13 # invoke this script manually!
14 FLEX_FLAGS=
15 # we use -l for win32 compilers
16 BISON_FLAGS="-l -d"
17
18 invoke bison $BISON_FLAGS -o lc_config_parser.c lc_config_parser.y
19 invoke flex $FLEX_FLAGS -o lc_config_lexer.c lc_config_lexer.l