doorbell

annotate spycam/Makefile @ 6:026156ea8801

foo
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 16 Mar 2016 00:00:06 +0200
parents a5755687dd75
children
rev   line source
nuclear@0 1 src = $(wildcard src/*.cc)
nuclear@0 2 csrc = $(wildcard src/*.c)
nuclear@0 3 obj = $(src:.cc=.o) $(csrc:.c=.o)
nuclear@0 4 bin = spycam
nuclear@0 5
nuclear@1 6 warn = -pedantic -Wall -Wno-variadic-macros
nuclear@0 7 opt = -O0
nuclear@0 8 dbg = -g
nuclear@1 9 incdir = -I/opt/vc/include
nuclear@1 10 libdir = -L/opt/vc/lib
nuclear@0 11
nuclear@1 12 CFLAGS = $(warn) $(opt) $(dbg) $(incdir)
nuclear@1 13 CXXFLAGS = $(warn) $(opt) $(dbg) $(incdir)
nuclear@1 14 LDFLAGS = $(libdir) -lX11 -lEGL -lGLESv2 -lm -lgmath
nuclear@0 15
nuclear@0 16 $(bin): $(obj)
nuclear@0 17 $(CXX) -o $@ $(obj) $(LDFLAGS)
nuclear@0 18
nuclear@0 19 .PHONY: clean
nuclear@0 20 clean:
nuclear@0 21 rm -f $(obj) $(bin)