diff --git a/makefile b/makefile index a205390..6a24c9b 100644 --- a/makefile +++ b/makefile @@ -3,15 +3,17 @@ CFLAGS=-Wall -O2 -std=gnu++11 LDFLAGS=-lusb-1.0 PROGN=g810-led -.PHONY: all clean +.PHONY: all debug clean all: bin/$(PROGN) - bin/$(PROGN): src/main.cpp src/classes/*.cpp @mkdir -p bin $(CC) -o $@ $(CFLAGS) $^ $(LDFLAGS) +debug: CFLAGS += -g +debug: bin/$(PROGN) + clean: rm -rf bin