blob: 2fcfe88eefc470f5a8159d7ac263dcb960b86af6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/sh
DEBUG=""
LIB="-Ilib/ -lSDL2_gfx $(pkg-config --cflags --libs libpipewire-0.3) -I/usr/include/spa-0.2"
while getopts "d" opt; do
case "$opt" in
d) DEBUG="-Wall -fsanitize=address -g"
;;
esac
done
shift $((OPTIND-1))
[ "${1:-}" = "--" ] && shift
printf "\n\nmaking project\n"
clang -o "audio_reactive" src/main.c $LIB `sdl2-config --cflags --libs` -lm $DEBUG
|