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
|
2009-03-20 22:50:08 +00:00
|
|
|
CC=gcc
|
2008-08-07 10:24:11 +00:00
|
|
|
|
2008-10-27 18:45:01 +00:00
|
|
|
linux: usbtool HXFmerge HXFreplace HXFsplit IHFSsplit HXF2IHFS DLanalyser
|
|
|
|
win: usbtool_win HXFmerge_win HXFsplit_win HXFreplace_win IHFSsplit_win HXF2IHFS_win DLanalyser_win
|
2008-07-03 12:17:56 +00:00
|
|
|
|
2009-06-19 23:00:07 +00:00
|
|
|
bin2c: ../../rbutil/tools/bin2c.c
|
|
|
|
$(CC) $(CFLAGS) -o bin2c ../../rbutil/tools/bin2c.c
|
2008-07-03 12:17:56 +00:00
|
|
|
|
2009-06-19 23:00:07 +00:00
|
|
|
bin2c.exe: ../../rbutil/tools/bin2c.c
|
|
|
|
$(CC) $(CFLAGS) -o bin2c.exe ../../rbutil/tools/bin2c.c
|
2009-03-20 22:50:08 +00:00
|
|
|
|
|
|
|
jz_xloader.c: jz_xloader.bin
|
|
|
|
./bin2c jz_xloader.bin jz_xloader
|
|
|
|
|
|
|
|
usbtool: jz4740_usbtool.c bin2c jz_xloader.c
|
|
|
|
$(CC) $(CFLAGS) -o usbtool jz4740_usbtool.c jz_xloader.c -lusb
|
|
|
|
usbtool_win: jz4740_usbtool.c bin2c.exe jz_xloader.c
|
|
|
|
$(CC) $(CFLAGS) -o usbtool.exe jz4740_usbtool.c jz_xloader.c -lusb -I $(WIN_LIBUSB_INCLUDE_DIR) -L $(WIN_LIBUSB_LIB_DIR)
|
|
|
|
|
|
|
|
HXFmerge: HXFmerge.c
|
2008-08-07 10:24:11 +00:00
|
|
|
$(CC) $(CFLAGS) -o HXFmerge HXFmerge.c
|
2009-03-20 22:50:08 +00:00
|
|
|
HXFreplace: HXFreplace.c
|
2008-08-07 10:24:11 +00:00
|
|
|
$(CC) $(CFLAGS) -o HXFreplace HXFreplace.c
|
2009-03-20 22:50:08 +00:00
|
|
|
HXFsplit: HXFsplit.c
|
2008-08-07 10:24:11 +00:00
|
|
|
$(CC) $(CFLAGS) -o HXFsplit HXFsplit.c
|
2009-03-20 22:50:08 +00:00
|
|
|
IHFSsplit: IHFSsplit.c
|
2008-08-07 10:24:11 +00:00
|
|
|
$(CC) $(CFLAGS) -o IHFSsplit IHFSsplit.c
|
2009-03-20 22:50:08 +00:00
|
|
|
HXF2IHFS: HXF2IHFS.c
|
2008-08-12 16:55:59 +00:00
|
|
|
$(CC) $(CFLAGS) -o HXF2IHFS HXF2IHFS.c
|
2009-03-20 22:50:08 +00:00
|
|
|
DLanalyser: DLanalyser.c
|
2008-10-27 18:45:01 +00:00
|
|
|
$(CC) $(CFLAGS) -o DLanalyser DLanalyser.c
|
2008-07-03 12:17:56 +00:00
|
|
|
|
2009-03-20 22:50:08 +00:00
|
|
|
HXFmerge_win: HXFmerge.c
|
2008-08-07 10:24:11 +00:00
|
|
|
$(CC) $(CFLAGS) -o HXFmerge.exe HXFmerge.c
|
2009-03-20 22:50:08 +00:00
|
|
|
HXFreplace_win: HXFreplace.c
|
2008-08-07 10:24:11 +00:00
|
|
|
$(CC) $(CFLAGS) -o HXFreplace.exe HXFreplace.c
|
2009-03-20 22:50:08 +00:00
|
|
|
HXFsplit_win: HXFsplit.c
|
2008-08-07 10:24:11 +00:00
|
|
|
$(CC) $(CFLAGS) -o HXFsplit.exe HXFsplit.c
|
2009-03-20 22:50:08 +00:00
|
|
|
IHFSsplit_win: IHFSsplit.c
|
2008-08-07 10:24:11 +00:00
|
|
|
$(CC) $(CFLAGS) -o IHFSsplit.exe IHFSsplit.c
|
2009-03-20 22:50:08 +00:00
|
|
|
HXF2IHFS_win: HXF2IHFS.c
|
2008-08-12 16:55:59 +00:00
|
|
|
$(CC) $(CFLAGS) -o HXF2IHFS.exe HXF2IHFS.c
|
2009-03-20 22:50:08 +00:00
|
|
|
DLanalyser_win: DLanalyser.c
|
2008-10-27 18:45:01 +00:00
|
|
|
$(CC) $(CFLAGS) -o DLanalyser.exe DLanalyser.c
|
2008-06-21 17:18:24 +00:00
|
|
|
|
2008-07-03 12:17:56 +00:00
|
|
|
clean-linux:
|
2009-03-20 22:50:08 +00:00
|
|
|
rm HXFmerge HXFreplace HXFsplit usbtool IHFSsplit HXF2IHFS DLanalyser bin2c
|
2008-07-03 12:17:56 +00:00
|
|
|
clean-win:
|
2009-03-20 22:50:08 +00:00
|
|
|
del HXFmerge.exe HXFreplace.exe HXFsplit.exe usbtool.exe IHFSsplit.exe HXF2IHFS.exe DLanalyser.exe bin2c.exe
|