aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2022-10-22 23:53:29 +0300
committerkartofen <mladenovnasko0@gmail.com>2022-10-22 23:53:29 +0300
commitf45b143dcf90970122436d10bd6226f577a9310d (patch)
tree986563759bf1f5935e15a66613e673e445b26e97 /build.sh
parentf4c66a4c77e5818ca9703f59a80ea92e27ed45c6 (diff)
works with alsa and runs at 30 fpsHEADmaster
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/build.sh b/build.sh
index 423bf57..096fa61 100755
--- a/build.sh
+++ b/build.sh
@@ -5,7 +5,8 @@ cd ${0%/*} # go to project root
FLAGS="-g -Wall -Wextra -pedantic -lpthread -std=c99"
FGLFW="-lGL -lglfw"
FV4L2="-lv4l2"
-FPASM="-lpulse -lpulse-simple"
+# FPASM="-lpulse -lpulse-simple"
+FALSA="-lasound"
SRC="src"
OBJ="obj"
BIN="bin"
@@ -31,5 +32,5 @@ gcc -o $OBJ/display.o -c $SRC/display.c
gcc -o $OBJ/camera.o -c $SRC/camera.c
gcc -o $OBJ/audio.o -c $SRC/audio.c
-gcc -o $BIN/listener $SRC/listener.c $OBJ/socket.o $OBJ/display.o $OBJ/audio.o $FLAGS $FPASM $FGLFW
-gcc -o $BIN/talker $SRC/talker.c $OBJ/socket.o $OBJ/camera.o $OBJ/audio.o $FLAGS $FPASM $FV4L2
+gcc -o $BIN/listener $SRC/listener.c $OBJ/socket.o $OBJ/display.o $OBJ/audio.o $FLAGS $FALSA $FGLFW
+gcc -o $BIN/talker $SRC/talker.c $OBJ/socket.o $OBJ/camera.o $OBJ/audio.o $FLAGS $FALSA $FV4L2