diff options
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 | ||