mirror of https://git.sr.ht/~rabbits/uxn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
560 B
26 lines
560 B
#!/bin/bash |
|
|
|
# format code |
|
clang-format -i uxn.c |
|
|
|
# remove old |
|
rm -f ./uxn |
|
|
|
# debug(slow) |
|
cc -std=c89 -DDEBUG -Wall -Wno-unknown-pragmas -Wpedantic -Wshadow -Wextra -Werror=implicit-int -Werror=incompatible-pointer-types -Werror=int-conversion -Wvla -g -Og -fsanitize=address -fsanitize=undefined uxn.c -o uxn |
|
|
|
# build(fast) |
|
# cc uxn.c -std=c89 -Os -DNDEBUG -g0 -s -Wall -Wno-unknown-pragmas -o uxn |
|
|
|
# Size |
|
echo "Size: $(du -sk ./uxn)" |
|
|
|
# Install |
|
if [ -d "$HOME/bin" ] && [ -e ./uxn ] |
|
then |
|
cp ./uxn $HOME/bin |
|
echo "Installed: $HOME/bin" |
|
fi |
|
|
|
# run |
|
./uxn
|
|
|