From 145775818375bafcf191a7b4986e57a00b41ac68 Mon Sep 17 00:00:00 2001 From: kartofen Date: Tue, 18 Oct 2022 23:25:46 +0300 Subject: use glfw and some minor refactoring --- build.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'build.sh') diff --git a/build.sh b/build.sh index c7a7e88..cf18d8a 100755 --- a/build.sh +++ b/build.sh @@ -2,8 +2,8 @@ cd ${0%/*} # go to project root -FLAGS="-Wall -Wextra -g -pedantic -lpthread -D_GNU_SOURCE" -FGLUT="-lglut -lGLU -lGL" +FLAGS="-g -Wall -Wextra -pedantic -lpthread" +FGLFW="-lGL -lglfw" FV4L2="-lv4l2" FPASM="-lpulse -lpulse-simple" SRC="src" @@ -31,5 +31,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 $FGLUT +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 -- cgit v1.2.3