-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·26 lines (22 loc) · 1.1 KB
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh
rm -rf output
mkdir output/
tigcc -std=gnu99 -mregparm -fno-zero-initialized-in-bss --omit-bss-init \
--cut-ranges --reorder-sections --merge-constants -ffunction-sections \
-fdata-sections --optimize-code -Os startup.c opcodes.c sprite.c -o \
output/ch8ti -Wall -Wextra -DUSE_TI89 -DOPTIMIZE_ROM_CALLS --native
tigcc -std=gnu99 -mregparm -fno-zero-initialized-in-bss --omit-bss-init \
--cut-ranges --reorder-sections --merge-constants -ffunction-sections \
-fdata-sections --optimize-code -Os startup.c opcodes.c sprite.c -o \
output/ch8ti -Wall -Wextra -DUSE_TI92P -DOPTIMIZE_ROM_CALLS --native
tigcc -std=gnu99 -mregparm -fno-zero-initialized-in-bss --omit-bss-init \
--cut-ranges --reorder-sections --merge-constants -ffunction-sections \
-fdata-sections --optimize-code -Os startup.c opcodes.c sprite.c -o \
output/ch8ti -Wall -Wextra -DUSE_V200 -DOPTIMIZE_ROM_CALLS --native
cd preprocessor
cargo build --release
# cargo build --target=x86_64-pc-windows-gnu --release
cp target/release/ch8ti-prep ../output/.
# cp target/x86_64-pc-windows-gnu/release/ch8ti-prep.exe ../output/.
cd ..
echo "Done"