summaryrefslogtreecommitdiff
path: root/rbutil/mks5lboot/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/mks5lboot/Makefile')
-rw-r--r--rbutil/mks5lboot/Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/rbutil/mks5lboot/Makefile b/rbutil/mks5lboot/Makefile
new file mode 100644
index 0000000000..ba118eefd0
--- /dev/null
+++ b/rbutil/mks5lboot/Makefile
@@ -0,0 +1,35 @@
1# __________ __ ___.
2# Open \______ \ ____ ____ | | _\_ |__ _______ ___
3# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6# \/ \/ \/ \/ \/
7CFLAGS += -Wall -Wextra
8
9OUTPUT = mks5lboot
10
11# inputs for lib
12LIBSOURCES := dualboot.c mkdfu.c ipoddfu.c
13# inputs for binary only
14SOURCES := $(LIBSOURCES) main.c
15# dependencies for binary
16EXTRADEPS :=
17
18ifeq ($(findstring MINGW,$(shell uname)),MINGW)
19LDOPTS += -lsetupapi
20# optional libusb support on Windows
21ifdef DISABLE_LIBUSBAPI
22CFLAGS += -DNO_LIBUSBAPI
23else
24LDOPTS += -Wl,-Bstatic -lusb-1.0
25endif
26else
27# Linux, OS X
28LDOPTS += -lusb-1.0
29endif
30
31include ../libtools.make
32
33# explicit dependencies on dualboot.{c,h} and mks5lboot.h
34$(OBJDIR)mks5lboot.o: dualboot.h dualboot.c mks5lboot.h
35$(OBJDIR)main.o: dualboot.h dualboot.c main.c mks5lboot.h