doorbell

view spycam/Makefile @ 0:a5755687dd75

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 08 Mar 2016 03:26:01 +0200
parents
children daade2a35e69
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
7 opt = -O0
8 dbg = -g
10 CFLAGS = $(warn) $(opt) $(dbg)
11 CXXFLAGS = $(warn) $(opt) $(dbg)
12 LDFLAGS = -lX11 -lEGL -lGLESv2 -lm -lgmath
14 $(bin): $(obj)
15 $(CXX) -o $@ $(obj) $(LDFLAGS)
17 .PHONY: clean
18 clean:
19 rm -f $(obj) $(bin)