sus-regex/build

16 lines
421 B
Plaintext
Raw Normal View History

2024-04-03 15:18:26 +03:00
#!/bin/sh
2024-04-04 07:37:18 +03:00
mkdir -p target
gcc -c meow.s -o target/amogus.o || exit
gnu() { shift 1 && gcc "$@"; }
"$(command -v ~/stuff/zig/zig || echo gnu)" \
2024-04-04 09:23:46 +03:00
cc -O3 -shared -static -nostdlib -nodefaultlibs target/amogus.o -o target/amogus || exit
2024-04-04 07:37:18 +03:00
objdump -d target/amogus
2024-04-04 09:23:46 +03:00
strip -K entry target/amogus
objdump -t target/amogus
2024-04-04 07:37:18 +03:00
du -b target/amogus
2024-04-04 09:23:46 +03:00
rm -rf target/cg/
mkdir -p target/cg
cp target/amogus target/cg/
cp amogus.h target/cg/
2024-04-04 07:37:18 +03:00