~rabbits/nasu

ref: 118672baa665457d07888aa6d888e09f667cc472 nasu/build.sh -rwxr-xr-x 430 bytes
118672baDevine Lu Linvega Cleanup 11 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# format code
clang-format -i chr6.c

# remove old
rm ./chr6

# debug
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 chr6.c -I/usr/local/include -L/usr/local/lib -lSDL2 -o chr6

# build
# cc -std=c89 -Wall chr6.c -I/usr/local/include -L/usr/local/lib -lSDL2 -o chr6

# run
./chr6 sprite.chr