~rabbits/orca-toy

ref: 15b0f5c35ace37182687d4bd63e7d1aa0adb6d65 orca-toy/build.sh -rwxr-xr-x 565 bytes
15b0f5c3neauoire Implemented random operator 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

clang-format -i orca.c

## Cleanup
rm -f ./orca

# client
cc -std=c89 -DDEBUG -Wall -Wpedantic -Wshadow -Wextra -Werror=implicit-int -Werror=incompatible-pointer-types -Werror=int-conversion -Wvla -g -Og -fsanitize=address -fsanitize=undefined -L/usr/local/lib -lSDL2 -lportmidi orca.c -o orca
# cc -std=c89 -O2 -DNDEBUG -g0 -s -Wall -L/usr/local/lib -lSDL2 -lportmidi orca.c -o orca

# Size
echo "Size: $(du -sk ./orca)"

# Install
if [ -d "$HOME/bin" ] && [ -e ./orca ]
then
	cp ./orca $HOME/bin
    echo "Installed: $HOME/bin" 
fi

./orca demo.orca