summaryrefslogtreecommitdiff
path: root/rbutil/jztool/Makefile
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2021-04-13 16:58:15 +0100
committerAidan MacDonald <amachronic@protonmail.com>2021-04-17 20:23:19 +0000
commitb41d53792c4c4e4abd6d810b2765d865775f5104 (patch)
treeae3e02b961c655cd49b3c13bc895a18547ceeec1 /rbutil/jztool/Makefile
parent1b8542490da3283dfa0ce0f3363f16eab0609815 (diff)
downloadrockbox-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/Makefile37
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
8CFLAGS += -Wall -Wextra -Iinclude
9OUTPUT = jztool
10
11ifdef RELEASE
12CFLAGS += -Os -DNDEBUG
13else
14CFLAGS += -O0 -ggdb
15endif
16
17LIBSOURCES := 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
20SOURCES := $(LIBSOURCES) jztool.c
21EXTRADEPS :=
22
23CPPDEFINES := $(shell echo foo | $(CROSS)$(CC) -dM -E -)
24
25ifeq ($(findstring WIN32,$(CPPDEFINES)),WIN32)
26# TODO: support Windows
27else
28ifeq ($(findstring APPLE,$(CPPDEFINES)),APPLE)
29# TODO: support OSX
30else
31# Linux
32CFLAGS += `pkg-config --cflags libusb-1.0`
33LDOPTS += `pkg-config --libs libusb-1.0`
34endif
35endif
36
37include ../libtools.make