doorbell

view spycam/Makefile @ 6:026156ea8801

foo
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 16 Mar 2016 00:00:06 +0200
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)