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
|
|
|
|
|
2008-08-12 16:55:59 +00:00
|
|
|
linux: usbtool HXFmerge HXFreplace HXFsplit IHFSsplit HXF2IHFS
|
|
|
|
win: usbtool_win HXFmerge_win HXFsplit_win HXFreplace_win IHFSsplit_win HXF2IHFS_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-08-12 16:55:59 +00:00
|
|
|
HXF2IHFS:
|
|
|
|
$(CC) $(CFLAGS) -o HXF2IHFS HXF2IHFS.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-08-12 16:55:59 +00:00
|
|
|
HXF2IHFS_win:
|
|
|
|
$(CC) $(CFLAGS) -o HXF2IHFS.exe HXF2IHFS.c
|
2008-06-21 17:18:24 +00:00
|
|
|
|
2008-07-03 12:17:56 +00:00
|
|
|
clean-linux:
|
2008-08-12 16:55:59 +00:00
|
|
|
rm HXFmerge HXFreplace HXFsplit usbtool IHFSsplit HXF2IHFS
|
2008-07-03 12:17:56 +00:00
|
|
|
clean-win:
|
2008-08-12 16:55:59 +00:00
|
|
|
del HXFmerge.exe HXFreplace.exe HXFsplit.exe usbtool.exe IHFSsplit.exe HXF2IHFS.exe
|