mirror of
https://github.com/MatMoul/g810-led.git
synced 2024-12-23 01:06:11 +00:00
0eb7349cad
- Define PHONY targets - Set optimization level O2 - Move C++ standard flag to CFLAGS - Remove superfluous targets
18 lines
228 B
Makefile
18 lines
228 B
Makefile
CC=g++
|
|
CFLAGS=-Wall -O2 -std=gnu++11
|
|
LDFLAGS=-lusb-1.0
|
|
PROGN=g810-led
|
|
|
|
.PHONY: all clean
|
|
|
|
all: bin/$(PROGN)
|
|
|
|
|
|
bin/$(PROGN): src/main.cpp src/classes/*.cpp
|
|
@mkdir -p bin
|
|
$(CC) -o $@ $(CFLAGS) $^ $(LDFLAGS)
|
|
|
|
clean:
|
|
rm -rf bin
|
|
|