Files
somaesque-native/build
2025-11-22 17:12:33 +01:00

15 lines
348 B
Bash
Executable File

#!/bin/bash
LIB_INCLUDE="-lglfw -lGL -lm"
echo [Building target]
if [ $DEBUG ]; then
time clang -O0 -g -g2 -DOS_LINUX=1 -DDJSTDLIB_DEBUG=1 -xc -std=c99 ./src/main.c -o ./target/somaesque $LIB_INCLUDE
else
time clang -O2 -DOS_LINUX=1 -xc -std=c99 ./src/main.c -o ./target/somaesque $LIB_INCLUDE
fi
echo [Target built]
./target/somaesque