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@0: warn = -pedantic -Wall nuclear@0: opt = -O0 nuclear@0: dbg = -g nuclear@0: nuclear@0: CFLAGS = $(warn) $(opt) $(dbg) nuclear@0: CXXFLAGS = $(warn) $(opt) $(dbg) nuclear@0: LDFLAGS = -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)