aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2022-10-18 23:25:46 +0300
committerkartofen <mladenovnasko0@gmail.com>2022-10-18 23:25:46 +0300
commit145775818375bafcf191a7b4986e57a00b41ac68 (patch)
treeb539525328515401be6bc2a6c9fb17841b8a16d1 /build.sh
parent7e64d0c78e8a21f2ede7eab1303758391001c0dc (diff)
use glfw and some minor refactoring
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh6
1 files changed, 3 insertions, 3 deletions
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