summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorspv420 <unomilliono@gmail.com>2022-04-23 18:22:31 -0400
committerspv420 <unomilliono@gmail.com>2022-04-23 18:22:31 -0400
commit245a3831d7266913b0281bfa19058b59ac80818b (patch)
treed20043b79a8df535a7df9b1d19c249e6ebd2d5a1 /build.sh
parent8526f9689b7bbeb09a14fbd159ef6d1871909df4 (diff)
big b0i
Diffstat (limited to 'build.sh')
-rw-r--r--build.sh30
1 files changed, 15 insertions, 15 deletions
diff --git a/build.sh b/build.sh
index 42d1675..c8e28bf 100644
--- a/build.sh
+++ b/build.sh
@@ -1,19 +1,19 @@
#!/bin/bash
rm exp.js
-find js -name '*.js' -exec cat {} \; >> exp.js
+find src/js -name '*.js' -exec cat {} \; >> exp.js
echo >> exp.js
echo "main();" >> exp.js
# build for host
clang -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 \
+ src/gen/main.c \
+ src/gen/ip_tools.c \
+ src/gen/stage0_primitives.c \
+ src/gen/stage1_primitives.c \
+ src/gen/patchfinder.c \
+ src/gen/stage2.c \
+ src/gen/shit.c \
-o bin/main \
-D__WHOAMI__="\"$(whoami)\"" \
-D__PWD__="\"$(pwd)\"" \
@@ -21,13 +21,13 @@ clang -I $(pwd)/inc/ \
# -rdynamic
# build armv7 (for untether install)
-xcrun -sdk iphoneos clang -arch armv7 src/main.c \
- src/ip_tools.c \
- src/stage0_primitives.c \
- src/stage1_primitives.c \
- src/patchfinder.c \
- src/stage2.c \
- src/shit.c \
+xcrun -sdk iphoneos clang -arch armv7 src/gen/main.c \
+ src/gen/ip_tools.c \
+ src/gen/stage0_primitives.c \
+ src/gen/stage1_primitives.c \
+ src/gen/patchfinder.c \
+ src/gen/stage2.c \
+ src/gen/shit.c \
-o bin/main_arm \
-D__WHOAMI__="\"$(whoami)\"" \
-D__PWD__="\"$(pwd)\"" \