nuclear@0: src = $(wildcard src/*.cc) nuclear@0: csrc = $(wildcard src/*.c) nuclear@0: obj = $(src:.cc=.o) $(csrc:.c=.o) nuclear@0: bin = spycam nuclear@0: nuclear@1: warn = -pedantic -Wall -Wno-variadic-macros nuclear@0: opt = -O0 nuclear@0: dbg = -g nuclear@1: incdir = -I/opt/vc/include nuclear@1: libdir = -L/opt/vc/lib nuclear@0: nuclear@1: CFLAGS = $(warn) $(opt) $(dbg) $(incdir) nuclear@1: CXXFLAGS = $(warn) $(opt) $(dbg) $(incdir) nuclear@1: LDFLAGS = $(libdir) -lX11 -lEGL -lGLESv2 -lm -lgmath nuclear@0: nuclear@0: $(bin): $(obj) nuclear@0: $(CXX) -o $@ $(obj) $(LDFLAGS) nuclear@0: nuclear@0: .PHONY: clean nuclear@0: clean: nuclear@0: rm -f $(obj) $(bin)