16 lines
421 B
Bash
Executable file
16 lines
421 B
Bash
Executable file
#!/bin/sh
|
|
mkdir -p target
|
|
gcc -c meow.s -o target/amogus.o || exit
|
|
gnu() { shift 1 && gcc "$@"; }
|
|
"$(command -v ~/stuff/zig/zig || echo gnu)" \
|
|
cc -O3 -shared -static -nostdlib -nodefaultlibs target/amogus.o -o target/amogus || exit
|
|
objdump -d target/amogus
|
|
strip -K entry target/amogus
|
|
objdump -t target/amogus
|
|
du -b target/amogus
|
|
rm -rf target/cg/
|
|
mkdir -p target/cg
|
|
cp target/amogus target/cg/
|
|
cp amogus.h target/cg/
|
|
|