summaryrefslogtreecommitdiff
path: root/rbutil/jztool/Makefile
diff options
context:
space:
mode:
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