1
0
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:
Charles
2016-12-12 14:06:45 -06:00
parent ecef158d35
commit 54897d9a5a
3 changed files with 45 additions and 33 deletions

View File

@@ -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: