2016-06-12 20:16:07 +00:00
|
|
|
CC=g++
|
2016-08-07 18:36:13 +00:00
|
|
|
CFLAGS=-Wall -O2 -std=gnu++11
|
2016-06-16 18:14:52 +00:00
|
|
|
LDFLAGS=-lusb-1.0
|
|
|
|
PROGN=g810-led
|
2016-06-12 20:16:07 +00:00
|
|
|
|
2016-06-16 18:20:28 +00:00
|
|
|
.PHONY: all debug clean
|
2016-06-16 18:14:52 +00:00
|
|
|
|
|
|
|
all: bin/$(PROGN)
|
2016-06-12 20:16:07 +00:00
|
|
|
|
2016-06-16 18:14:52 +00:00
|
|
|
bin/$(PROGN): src/main.cpp src/classes/*.cpp
|
|
|
|
@mkdir -p bin
|
|
|
|
$(CC) -o $@ $(CFLAGS) $^ $(LDFLAGS)
|
2016-06-12 20:16:07 +00:00
|
|
|
|
2016-06-16 18:20:28 +00:00
|
|
|
debug: CFLAGS += -g
|
|
|
|
debug: bin/$(PROGN)
|
|
|
|
|
2016-06-12 20:16:07 +00:00
|
|
|
clean:
|
2016-06-16 18:14:52 +00:00
|
|
|
rm -rf bin
|
2016-06-12 20:16:07 +00:00
|
|
|
|