diff options
Diffstat (limited to 'build_native.sh')
| -rwxr-xr-x | build_native.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/build_native.sh b/build_native.sh new file mode 100755 index 0000000..12ec3b9 --- /dev/null +++ b/build_native.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +cat js/*.js > exp.js +echo >> exp.js +echo "main();" >> exp.js + +# build for host +gcc -I $(pwd)/inc/ \ + src/main.c \ + src/ip_tools.c \ + src/stage0_primitives.c \ + src/stage1_primitives.c \ + src/patchfinder.c \ + src/stage2.c \ + src/shit.c \ + -o bin/main_arm \ + -D__WHOAMI__="\"$(whoami)\"" \ + -D__PWD__="\"$(pwd)\"" \ + -g \ + --std=c99 + +ldid -Sent.xml bin/main_arm |
