diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2021-04-13 16:58:15 +0100 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2021-04-17 20:23:19 +0000 |
commit | b41d53792c4c4e4abd6d810b2765d865775f5104 (patch) | |
tree | ae3e02b961c655cd49b3c13bc895a18547ceeec1 /rbutil/jztool/Makefile | |
parent | 1b8542490da3283dfa0ce0f3363f16eab0609815 (diff) | |
download | rockbox-b41d53792c4c4e4abd6d810b2765d865775f5104.tar.gz rockbox-b41d53792c4c4e4abd6d810b2765d865775f5104.zip |
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
Diffstat (limited to 'rbutil/jztool/Makefile')
-rw-r--r-- | rbutil/jztool/Makefile | 37 |
1 files changed, 37 insertions, 0 deletions
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 @@ | |||
1 | # __________ __ ___. | ||
2 | # Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
3 | # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
4 | # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
5 | # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
6 | # \/ \/ \/ \/ \/ | ||
7 | |||
8 | CFLAGS += -Wall -Wextra -Iinclude | ||
9 | OUTPUT = jztool | ||
10 | |||
11 | ifdef RELEASE | ||
12 | CFLAGS += -Os -DNDEBUG | ||
13 | else | ||
14 | CFLAGS += -O0 -ggdb | ||
15 | endif | ||
16 | |||
17 | LIBSOURCES := src/buffer.c src/context.c src/device_info.c \ | ||
18 | src/fiiom3k.c src/identify_file.c src/paramlist.c \ | ||
19 | src/usb.c src/x1000.c | ||
20 | SOURCES := $(LIBSOURCES) jztool.c | ||
21 | EXTRADEPS := | ||
22 | |||
23 | CPPDEFINES := $(shell echo foo | $(CROSS)$(CC) -dM -E -) | ||
24 | |||
25 | ifeq ($(findstring WIN32,$(CPPDEFINES)),WIN32) | ||
26 | # TODO: support Windows | ||
27 | else | ||
28 | ifeq ($(findstring APPLE,$(CPPDEFINES)),APPLE) | ||
29 | # TODO: support OSX | ||
30 | else | ||
31 | # Linux | ||
32 | CFLAGS += `pkg-config --cflags libusb-1.0` | ||
33 | LDOPTS += `pkg-config --libs libusb-1.0` | ||
34 | endif | ||
35 | endif | ||
36 | |||
37 | include ../libtools.make | ||