diff options
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -5,7 +5,13 @@ set -xe function cc { mkdir -p bin - gcc -Wall -Wextra -Wpedantic -g $2 $1.c -o bin/$(basename $1) + gcc -Wall -Wextra -Wpedantic -I. -g $2 $1.c -o bin/$(basename $1) +} + +function shared +{ + mkdir -p bin + gcc -Wall -Wextra -Wpedantic -I. -shared -fPIC $2 $1.c -o bin/$(basename $1).so } function leak @@ -19,8 +25,11 @@ function leak # cc util-tables -D_UTIL_TABLES_STANDALONE # cc slr-table -D_SLR_TABLE_STANDALONE # cc clr-table -D_CLR_TABLE_STANDALONE +# cc clr-table "-D_CLR_TABLE_STANDALONE -D_LAZY_LALR" # cc lr-parser -D_LR_PARSER_STANDALONE -cc fusion +# cc demos/instant-parser +cc demos/generate-parser +shared demos/sample-files/defs # leak lexer # leak recursive-ascent @@ -29,4 +38,5 @@ cc fusion # leak slr-table # leak clr-table # leak lr-parser -leak fusion +# leak instant-parser +leak "generate-parser bin/defs.so" |