~rostiger/logbook

logbook/build.sh -rwxr-xr-x 484 bytes
85dc8f02rostiger Absolute logfile path 5 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

# format code
clang-format -i main.c

# remove old
rm ./logbook

# 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 main.c -L/usr/local/lib -lSDL2 -lm -o logbook

# build(fast)
# cc main.c -std=c89 -Os -DNDEBUG -g0 -s -Wall -Wno-unknown-pragmas -L/usr/local/lib -lSDL2 -lm -o logbook

# run
./logbook