From b41d53792c4c4e4abd6d810b2765d865775f5104 Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Tue, 13 Apr 2021 16:58:15 +0100 Subject: jztool: New utility for installing a bootloader on FiiO M3K At present, this is just a command line tool for Linux only. Integrating this with the Rockbox utility and porting to other platforms should be straightforward; the README contains more information. Change-Id: Ie66fc837a02ab13c878925360cabc9805597548a --- rbutil/jztool/Makefile | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 rbutil/jztool/Makefile (limited to 'rbutil/jztool/Makefile') diff --git a/rbutil/jztool/Makefile b/rbutil/jztool/Makefile new file mode 100644 index 0000000000..aa434adf1f --- /dev/null +++ b/rbutil/jztool/Makefile @@ -0,0 +1,37 @@ +# __________ __ ___. +# Open \______ \ ____ ____ | | _\_ |__ _______ ___ +# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / +# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < +# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ +# \/ \/ \/ \/ \/ + +CFLAGS += -Wall -Wextra -Iinclude +OUTPUT = jztool + +ifdef RELEASE +CFLAGS += -Os -DNDEBUG +else +CFLAGS += -O0 -ggdb +endif + +LIBSOURCES := src/buffer.c src/context.c src/device_info.c \ + src/fiiom3k.c src/identify_file.c src/paramlist.c \ + src/usb.c src/x1000.c +SOURCES := $(LIBSOURCES) jztool.c +EXTRADEPS := + +CPPDEFINES := $(shell echo foo | $(CROSS)$(CC) -dM -E -) + +ifeq ($(findstring WIN32,$(CPPDEFINES)),WIN32) +# TODO: support Windows +else +ifeq ($(findstring APPLE,$(CPPDEFINES)),APPLE) +# TODO: support OSX +else +# Linux +CFLAGS += `pkg-config --cflags libusb-1.0` +LDOPTS += `pkg-config --libs libusb-1.0` +endif +endif + +include ../libtools.make -- cgit v1.2.3