doorbell

diff spycam/Makefile @ 1:daade2a35e69

holy fuck the rpi sucks balls
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 08 Mar 2016 02:28:08 +0000
parents a5755687dd75
children
line diff
     1.1 --- a/spycam/Makefile	Tue Mar 08 03:26:01 2016 +0200
     1.2 +++ b/spycam/Makefile	Tue Mar 08 02:28:08 2016 +0000
     1.3 @@ -3,13 +3,15 @@
     1.4  obj = $(src:.cc=.o) $(csrc:.c=.o)
     1.5  bin = spycam
     1.6  
     1.7 -warn = -pedantic -Wall
     1.8 +warn = -pedantic -Wall -Wno-variadic-macros
     1.9  opt = -O0
    1.10  dbg = -g
    1.11 +incdir = -I/opt/vc/include
    1.12 +libdir = -L/opt/vc/lib
    1.13  
    1.14 -CFLAGS = $(warn) $(opt) $(dbg)
    1.15 -CXXFLAGS = $(warn) $(opt) $(dbg)
    1.16 -LDFLAGS = -lX11 -lEGL -lGLESv2 -lm -lgmath
    1.17 +CFLAGS = $(warn) $(opt) $(dbg) $(incdir)
    1.18 +CXXFLAGS = $(warn) $(opt) $(dbg) $(incdir)
    1.19 +LDFLAGS = $(libdir) -lX11 -lEGL -lGLESv2 -lm -lgmath
    1.20  
    1.21  $(bin): $(obj)
    1.22  	$(CXX) -o $@ $(obj) $(LDFLAGS)