diff options
| author | 2026-11-11 06:32:30 +0000 | |
|---|---|---|
| committer | 2026-11-11 06:46:30 +0000 | |
| commit | 5b4a191d1cf310a3d7a99351e716a1a60004be69 (patch) | |
| tree | 4b8d1a82765946f323a90f35344526110e778a3f /build.sh | |
| download | coursework-master.tar.gz | |
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..7cf9427 --- /dev/null +++ b/build.sh | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | ## build.sh | ||
| 3 | # | ||
| 4 | # Copyright (C) 2026 by Martin Michalec <martin@michalec.dev> | ||
| 5 | # | ||
| 6 | # SPDX-License-Identifier: MIT | ||
| 7 | # | ||
| 8 | ## Commentary: | ||
| 9 | # | ||
| 10 | ## Code: | ||
| 11 | |||
| 12 | set -e | ||
| 13 | |||
| 14 | ROOT="$(dirname "$0")" | ||
| 15 | |||
| 16 | CC=cc | ||
| 17 | |||
| 18 | CFLAGS="$CFLAGS -std=c99" | ||
| 19 | CFLAGS="$CFLAGS -ggdb3" | ||
| 20 | # CFLAGS="$CFLAGS -O3 -march=native" | ||
| 21 | # CFLAGS="$CFLAGS -DNDEBUG" | ||
| 22 | CFLAGS="$CFLAGS -Wall -Wextra" | ||
| 23 | CFLAGS="$CFLAGS -Wno-unused-function" | ||
| 24 | CFLAGS="$CFLAGS -Wno-unused-variable" | ||
| 25 | CFLAGS="$CFLAGS -Wno-unused-but-set-variable" | ||
| 26 | CFLAGS="$CFLAGS -Wno-unused-parameter" | ||
| 27 | CFLAGS="$CFLAGS -I$ROOT/src/" | ||
| 28 | CFLAGS="$CFLAGS -I$ROOT/vendor/" | ||
| 29 | |||
| 30 | set -xu | ||
| 31 | |||
| 32 | $CC $CFLAGS -lm `pkg-config --cflags --libs raylib` -o $ROOT/main \ | ||
| 33 | $ROOT/src/cma-es.c \ | ||
| 34 | $ROOT/src/retiming.c \ | ||
| 35 | $ROOT/src/main.c | ||
