mirror of
https://github.com/MatMoul/g810-led.git
synced 2025-11-21 02:52:06 +00:00
Multiple changes of datatypes being past overflowing constants (most char needed to be changed to unsigned char or uint8_t). Also changed the include style of the <libusb.h> to be controlled through the makefile setting
This commit is contained in:
7
makefile
7
makefile
@@ -1,5 +1,6 @@
|
||||
CC=g++
|
||||
CFLAGS=-Wall -O2 -std=gnu++11
|
||||
LIBUSB_INC?=-I/usr/include/libusb-1.0
|
||||
LDFLAGS=-lusb-1.0
|
||||
PROGN=g810-led
|
||||
|
||||
@@ -7,11 +8,11 @@ PROGN=g810-led
|
||||
|
||||
all: bin/$(PROGN)
|
||||
|
||||
bin/$(PROGN): src/main.cpp src/classes/*.cpp
|
||||
bin/$(PROGN): src/main.cpp src/classes/*.cpp src/classes/*.h
|
||||
@mkdir -p bin
|
||||
$(CC) -o $@ $(CFLAGS) $^ $(LDFLAGS)
|
||||
$(CC) $(CFLAGS) $(LIBUSB_INC) -o $@ $^ $(LDFLAGS)
|
||||
|
||||
debug: CFLAGS += -g
|
||||
debug: CFLAGS += -g -Wextra -pedantic
|
||||
debug: bin/$(PROGN)
|
||||
|
||||
clean:
|
||||
|
||||
Reference in New Issue
Block a user