1
0
mirror of https://github.com/MatMoul/g810-led.git synced 2024-12-23 01:06:11 +00:00
g810-led/makefile
2016-06-17 21:24:50 +02:00

21 lines
321 B
Makefile

CC=g++
# CFLAGS=-Wall -O2 -std=gnu++11 (Problem with this line)
CFLAGS=-std=gnu++11
LDFLAGS=-lusb-1.0
PROGN=g810-led
.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