doorbell

diff spycam/Makefile @ 3:73b16c2ae6bf

merge
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 13 Mar 2016 07:56:26 +0200
parents a5755687dd75
children
line diff
     1.1 --- a/spycam/Makefile	Sun Mar 13 07:56:03 2016 +0200
     1.2 +++ b/spycam/Makefile	Sun Mar 13 07:56:26 2016 +0200
     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)