mirror of
https://github.com/MatMoul/g810-led.git
synced 2024-12-23 09:16:11 +00:00
commit
68e45ef826
23
makefile
23
makefile
@ -1,18 +1,19 @@
|
|||||||
CC=g++
|
CC=g++
|
||||||
CFLAGS=
|
CFLAGS=-Wall -O2 -std=gnu++11
|
||||||
LDFLAGS=-std=gnu++11 -lusb-1.0
|
LDFLAGS=-lusb-1.0
|
||||||
|
PROGN=g810-led
|
||||||
|
|
||||||
all: make bin/g810-led
|
.PHONY: all debug clean
|
||||||
|
|
||||||
make:
|
all: bin/$(PROGN)
|
||||||
rm -rf bin
|
|
||||||
mkdir bin
|
|
||||||
|
|
||||||
bin/g810-led: src/main.cpp src/classes/*
|
bin/$(PROGN): src/main.cpp src/classes/*.cpp
|
||||||
$(CC) -o $@ $^ $(LDFLAGS)
|
@mkdir -p bin
|
||||||
|
$(CC) -o $@ $(CFLAGS) $^ $(LDFLAGS)
|
||||||
|
|
||||||
|
debug: CFLAGS += -g
|
||||||
|
debug: bin/$(PROGN)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf *.o
|
rm -rf bin
|
||||||
|
|
||||||
mrproper: clean
|
|
||||||
rm -rf $(EXEC)
|
|
||||||
|
Loading…
Reference in New Issue
Block a user