1
0
mirror of https://github.com/MatMoul/g810-led.git synced 2024-12-23 17:26:11 +00:00
g810-led/makefile

21 lines
364 B
Makefile
Raw Normal View History

2016-06-12 20:16:07 +00:00
CC=g++
2016-06-17 19:47:27 +00:00
# CFLAGS=-Wall -O2 -std=gnu++11 (Problem with this line, g810-led -a ff0000, missing set key)
CFLAGS=-Wall -std=gnu++11
LDFLAGS=-lusb-1.0
PROGN=g810-led
2016-06-12 20:16:07 +00:00
.PHONY: all debug clean
all: bin/$(PROGN)
2016-06-12 20:16:07 +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
debug: CFLAGS += -g
debug: bin/$(PROGN)
2016-06-12 20:16:07 +00:00
clean:
rm -rf bin
2016-06-12 20:16:07 +00:00