2008-07-03 12:17:56 +00:00
|
|
|
WIN_DRIVERS_LIBUSB_DIR = C:\Program Files\LibUSB-Win32
|
2008-06-21 17:18:24 +00:00
|
|
|
WIN_LIBUSB_INCLUDE_DIR = "$(WIN_DRIVERS_LIBUSB_DIR)\include"
|
2008-08-07 10:26:14 +00:00
|
|
|
WIN_LIBUSB_LIB_DIR = "$(WIN_DRIVERS_LIBUSB_DIR)\lib\gcc"
|
2008-06-21 17:18:24 +00:00
|
|
|
|
2008-08-07 10:24:11 +00:00
|
|
|
CFLAGS=-Wall
|
|
|
|
|
|
|
|
linux: usbtool HXFmerge HXFreplace HXFsplit IHFSsplit
|
|
|
|
win: usbtool_win HXFmerge_win HXFsplit_win HXFreplace_win IHFSsplit_win
|
2008-07-03 12:17:56 +00:00
|
|
|
|
2008-06-21 17:18:24 +00:00
|
|
|
usbtool:
|
2008-08-07 10:24:11 +00:00
|
|
|
$(CC) $(CFLAGS) -o usbtool jz4740_usbtool.c -lusb
|
2008-07-03 12:17:56 +00:00
|
|
|
usbtool_win:
|
2008-08-07 10:24:11 +00:00
|
|
|
$(CC) $(CFLAGS) -o usbtool.exe jz4740_usbtool.c -lusb -I $(WIN_LIBUSB_INCLUDE_DIR) -L $(WIN_LIBUSB_LIB_DIR)
|
2008-07-03 12:17:56 +00:00
|
|
|
|
|
|
|
HXFmerge:
|
2008-08-07 10:24:11 +00:00
|
|
|
$(CC) $(CFLAGS) -o HXFmerge HXFmerge.c
|
2008-07-03 12:17:56 +00:00
|
|
|
HXFreplace:
|
2008-08-07 10:24:11 +00:00
|
|
|
$(CC) $(CFLAGS) -o HXFreplace HXFreplace.c
|
2008-07-03 12:17:56 +00:00
|
|
|
HXFsplit:
|
2008-08-07 10:24:11 +00:00
|
|
|
$(CC) $(CFLAGS) -o HXFsplit HXFsplit.c
|
|
|
|
IHFSsplit:
|
|
|
|
$(CC) $(CFLAGS) -o IHFSsplit IHFSsplit.c
|
2008-07-03 12:17:56 +00:00
|
|
|
|
|
|
|
HXFmerge_win:
|
2008-08-07 10:24:11 +00:00
|
|
|
$(CC) $(CFLAGS) -o HXFmerge.exe HXFmerge.c
|
2008-07-03 12:17:56 +00:00
|
|
|
HXFreplace_win:
|
2008-08-07 10:24:11 +00:00
|
|
|
$(CC) $(CFLAGS) -o HXFreplace.exe HXFreplace.c
|
2008-07-03 12:17:56 +00:00
|
|
|
HXFsplit_win:
|
2008-08-07 10:24:11 +00:00
|
|
|
$(CC) $(CFLAGS) -o HXFsplit.exe HXFsplit.c
|
|
|
|
IHFSsplit_win:
|
|
|
|
$(CC) $(CFLAGS) -o IHFSsplit.exe IHFSsplit.c
|
2008-06-21 17:18:24 +00:00
|
|
|
|
2008-07-03 12:17:56 +00:00
|
|
|
clean-linux:
|
|
|
|
rm HXFmerge HXFreplace HXFsplit usbtool
|
|
|
|
clean-win:
|
|
|
|
del HXFmerge.exe HXFreplace.exe HXFsplit.exe usbtool.exe
|