doorbell
view 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 source
1 src = $(wildcard src/*.cc)
2 csrc = $(wildcard src/*.c)
3 obj = $(src:.cc=.o) $(csrc:.c=.o)
4 bin = spycam
6 warn = -pedantic -Wall -Wno-variadic-macros
7 opt = -O0
8 dbg = -g
9 incdir = -I/opt/vc/include
10 libdir = -L/opt/vc/lib
12 CFLAGS = $(warn) $(opt) $(dbg) $(incdir)
13 CXXFLAGS = $(warn) $(opt) $(dbg) $(incdir)
14 LDFLAGS = $(libdir) -lX11 -lEGL -lGLESv2 -lm -lgmath
16 $(bin): $(obj)
17 $(CXX) -o $@ $(obj) $(LDFLAGS)
19 .PHONY: clean
20 clean:
21 rm -f $(obj) $(bin)