summaryrefslogtreecommitdiff
path: root/utils/jz4740_tools/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'utils/jz4740_tools/Makefile')
-rw-r--r--[-rwxr-xr-x]utils/jz4740_tools/Makefile27
1 files changed, 24 insertions, 3 deletions
diff --git a/utils/jz4740_tools/Makefile b/utils/jz4740_tools/Makefile
index e61b837d99..6ebf0c8fb3 100755..100644
--- a/utils/jz4740_tools/Makefile
+++ b/utils/jz4740_tools/Makefile
@@ -1,9 +1,30 @@
1WIN_DRIVERS_LIBUSB_DIR = D:\Program Files\LibUSB-Win32 1WIN_DRIVERS_LIBUSB_DIR = C:\Program Files\LibUSB-Win32
2WIN_LIBUSB_INCLUDE_DIR = "$(WIN_DRIVERS_LIBUSB_DIR)\include" 2WIN_LIBUSB_INCLUDE_DIR = "$(WIN_DRIVERS_LIBUSB_DIR)\include"
3WIN_LIBUSB_LIB_DIR = "$(WIN_DRIVERS_LIBUSB_DIR)\lib\gcc" 3WIN_LIBUSB_LIB_DIR = "$(WIN_DRIVERS_LIBUSB_DIR)\lib\gcc"
4 4
5linux: usbtool HXFmerge HXFreplace HXFsplit
6win: usbtool_win HXFmerge_win HXFsplit_win HXFreplace_win
7
5usbtool: 8usbtool:
6 gcc -Wall -o usbtool jz4740_usbtool.c -lusb 9 gcc -Wall -o usbtool jz4740_usbtool.c -lusb
10usbtool_win:
11 gcc -Wall -o usbtool.exe jz4740_usbtool.c -lusb -I $(WIN_LIBUSB_INCLUDE_DIR) -L $(WIN_LIBUSB_LIB_DIR)
12
13HXFmerge:
14 gcc -Wall -o HXFmerge HXFmerge.c
15HXFreplace:
16 gcc -Wall -o HXFreplace HXFreplace.c
17HXFsplit:
18 gcc -Wall -o HXFsplit HXFsplit.c
19
20HXFmerge_win:
21 gcc -Wall -o HXFmerge.exe HXFmerge.c
22HXFreplace_win:
23 gcc -Wall -o HXFreplace.exe HXFreplace.c
24HXFsplit_win:
25 gcc -Wall -o HXFsplit.exe HXFsplit.c
7 26
8usbtoolwin: 27clean-linux:
9 gcc -Wall -o usbtool.exe jz4740_usbtool.c -lusb -I $(WIN_LIBUSB_INCLUDE_DIR) -L $(WIN_LIBUSB_LIB_DIR) \ No newline at end of file 28 rm HXFmerge HXFreplace HXFsplit usbtool
29clean-win:
30 del HXFmerge.exe HXFreplace.exe HXFsplit.exe usbtool.exe