# HG changeset patch # User John Tsiombikas # Date 1457404088 0 # Node ID daade2a35e69a4922ea3abb43fc526f9e473c17f # Parent a5755687dd7523f2f9c8394e4de67ea2caf5ac1b holy fuck the rpi sucks balls diff -r a5755687dd75 -r daade2a35e69 spycam/Makefile --- a/spycam/Makefile Tue Mar 08 03:26:01 2016 +0200 +++ b/spycam/Makefile Tue Mar 08 02:28:08 2016 +0000 @@ -3,13 +3,15 @@ obj = $(src:.cc=.o) $(csrc:.c=.o) bin = spycam -warn = -pedantic -Wall +warn = -pedantic -Wall -Wno-variadic-macros opt = -O0 dbg = -g +incdir = -I/opt/vc/include +libdir = -L/opt/vc/lib -CFLAGS = $(warn) $(opt) $(dbg) -CXXFLAGS = $(warn) $(opt) $(dbg) -LDFLAGS = -lX11 -lEGL -lGLESv2 -lm -lgmath +CFLAGS = $(warn) $(opt) $(dbg) $(incdir) +CXXFLAGS = $(warn) $(opt) $(dbg) $(incdir) +LDFLAGS = $(libdir) -lX11 -lEGL -lGLESv2 -lm -lgmath $(bin): $(obj) $(CXX) -o $@ $(obj) $(LDFLAGS) diff -r a5755687dd75 -r daade2a35e69 spycam/src/main.cc --- a/spycam/src/main.cc Tue Mar 08 03:26:01 2016 +0200 +++ b/spycam/src/main.cc Tue Mar 08 02:28:08 2016 +0000 @@ -3,6 +3,7 @@ #include #include #include +#include #include #include #include