diff options
Diffstat (limited to 'utils/jz4740_tools/Makefile')
-rw-r--r--[-rwxr-xr-x] | utils/jz4740_tools/Makefile | 27 |
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 @@ | |||
1 | WIN_DRIVERS_LIBUSB_DIR = D:\Program Files\LibUSB-Win32 | 1 | WIN_DRIVERS_LIBUSB_DIR = C:\Program Files\LibUSB-Win32 |
2 | WIN_LIBUSB_INCLUDE_DIR = "$(WIN_DRIVERS_LIBUSB_DIR)\include" | 2 | WIN_LIBUSB_INCLUDE_DIR = "$(WIN_DRIVERS_LIBUSB_DIR)\include" |
3 | WIN_LIBUSB_LIB_DIR = "$(WIN_DRIVERS_LIBUSB_DIR)\lib\gcc" | 3 | WIN_LIBUSB_LIB_DIR = "$(WIN_DRIVERS_LIBUSB_DIR)\lib\gcc" |
4 | 4 | ||
5 | linux: usbtool HXFmerge HXFreplace HXFsplit | ||
6 | win: usbtool_win HXFmerge_win HXFsplit_win HXFreplace_win | ||
7 | |||
5 | usbtool: | 8 | usbtool: |
6 | gcc -Wall -o usbtool jz4740_usbtool.c -lusb | 9 | gcc -Wall -o usbtool jz4740_usbtool.c -lusb |
10 | usbtool_win: | ||
11 | gcc -Wall -o usbtool.exe jz4740_usbtool.c -lusb -I $(WIN_LIBUSB_INCLUDE_DIR) -L $(WIN_LIBUSB_LIB_DIR) | ||
12 | |||
13 | HXFmerge: | ||
14 | gcc -Wall -o HXFmerge HXFmerge.c | ||
15 | HXFreplace: | ||
16 | gcc -Wall -o HXFreplace HXFreplace.c | ||
17 | HXFsplit: | ||
18 | gcc -Wall -o HXFsplit HXFsplit.c | ||
19 | |||
20 | HXFmerge_win: | ||
21 | gcc -Wall -o HXFmerge.exe HXFmerge.c | ||
22 | HXFreplace_win: | ||
23 | gcc -Wall -o HXFreplace.exe HXFreplace.c | ||
24 | HXFsplit_win: | ||
25 | gcc -Wall -o HXFsplit.exe HXFsplit.c | ||
7 | 26 | ||
8 | usbtoolwin: | 27 | clean-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 |
29 | clean-win: | ||
30 | del HXFmerge.exe HXFreplace.exe HXFsplit.exe usbtool.exe | ||