shithub: m8c

Download patch

ref: 6158be32c845812db304c6add83416ba757722f0
parent: 2a9c561bb1477cac5beae70ffe74f0af955df9eb
author: Maido Käära <maido@producement.com>
date: Sat Jan 28 10:38:02 EST 2023

Code review fixes

--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
 #Set all your object files (the object files of all the .c files in your project, e.g. main.o my_sub_functions.o )
-OBJ = main.o serial.o slip.o command.o render.o ini.o config.o input.o font.o fx_cube.o
+OBJ = main.o serial.o slip.o command.o render.o ini.o config.o input.o font.o fx_cube.o usb.o
 
 #Set any dependant header files so that if they are edited they cause a complete re-compile (e.g. main.h some_subfunctions.h some_definitions_file.h ), or leave blank
 DEPS = serial.h slip.h command.h render.h ini.h config.h input.h fx_cube.h
@@ -27,8 +27,8 @@
 m8c: $(OBJ)
 	$(CC) -o $@ $^ $(local_CFLAGS) $(INCLUDES)
 
-libusb: INCLUDES = $(shell pkg-config --libs sdl2 libusb)
-libusb: local_CFLAGS = $(CFLAGS) $(shell pkg-config --cflags sdl2 libusb) -Wall -O2 -pipe -I.
+libusb: INCLUDES = $(shell pkg-config --libs sdl2 libusb-1.0)
+libusb: local_CFLAGS = $(CFLAGS) $(shell pkg-config --cflags sdl2 libusb-1.0) -Wall -O2 -pipe -I. -DUSE_LIBUSB=1
 libusb: m8c
 
 font.c: inline_font.h
--