Maurus Cuelenaere | 6fd40a5 | 2008-07-03 12:17:56 +0000 | [diff] [blame] | 1 | WIN_DRIVERS_LIBUSB_DIR = C:\Program Files\LibUSB-Win32 |
Maurus Cuelenaere | 00daa7c | 2008-06-21 17:18:24 +0000 | [diff] [blame] | 2 | WIN_LIBUSB_INCLUDE_DIR = "$(WIN_DRIVERS_LIBUSB_DIR)\include" |
Maurus Cuelenaere | eca923d | 2008-08-07 10:26:14 +0000 | [diff] [blame] | 3 | WIN_LIBUSB_LIB_DIR = "$(WIN_DRIVERS_LIBUSB_DIR)\lib\gcc" |
Maurus Cuelenaere | 00daa7c | 2008-06-21 17:18:24 +0000 | [diff] [blame] | 4 | |
Maurus Cuelenaere | c8bdcbf | 2008-08-07 10:24:11 +0000 | [diff] [blame] | 5 | CFLAGS=-Wall |
Maurus Cuelenaere | c7b6ad5 | 2009-03-20 22:50:08 +0000 | [diff] [blame] | 6 | CC=gcc |
Maurus Cuelenaere | c8bdcbf | 2008-08-07 10:24:11 +0000 | [diff] [blame] | 7 | |
Maurus Cuelenaere | 3b45b8c | 2008-10-27 18:45:01 +0000 | [diff] [blame] | 8 | linux: usbtool HXFmerge HXFreplace HXFsplit IHFSsplit HXF2IHFS DLanalyser |
| 9 | win: usbtool_win HXFmerge_win HXFsplit_win HXFreplace_win IHFSsplit_win HXF2IHFS_win DLanalyser_win |
Maurus Cuelenaere | 6fd40a5 | 2008-07-03 12:17:56 +0000 | [diff] [blame] | 10 | |
Rafaël Carré | 638df10 | 2009-06-19 23:00:07 +0000 | [diff] [blame] | 11 | bin2c: ../../rbutil/tools/bin2c.c |
| 12 | $(CC) $(CFLAGS) -o bin2c ../../rbutil/tools/bin2c.c |
Maurus Cuelenaere | 00daa7c | 2008-06-21 17:18:24 +0000 | [diff] [blame] | 13 | |
Rafaël Carré | 638df10 | 2009-06-19 23:00:07 +0000 | [diff] [blame] | 14 | bin2c.exe: ../../rbutil/tools/bin2c.c |
| 15 | $(CC) $(CFLAGS) -o bin2c.exe ../../rbutil/tools/bin2c.c |
Maurus Cuelenaere | c7b6ad5 | 2009-03-20 22:50:08 +0000 | [diff] [blame] | 16 | |
| 17 | jz_xloader.c: jz_xloader.bin |
| 18 | ./bin2c jz_xloader.bin jz_xloader |
| 19 | |
| 20 | usbtool: jz4740_usbtool.c bin2c jz_xloader.c |
| 21 | $(CC) $(CFLAGS) -o usbtool jz4740_usbtool.c jz_xloader.c -lusb |
| 22 | usbtool_win: jz4740_usbtool.c bin2c.exe jz_xloader.c |
| 23 | $(CC) $(CFLAGS) -o usbtool.exe jz4740_usbtool.c jz_xloader.c -lusb -I $(WIN_LIBUSB_INCLUDE_DIR) -L $(WIN_LIBUSB_LIB_DIR) |
| 24 | |
| 25 | HXFmerge: HXFmerge.c |
Maurus Cuelenaere | c8bdcbf | 2008-08-07 10:24:11 +0000 | [diff] [blame] | 26 | $(CC) $(CFLAGS) -o HXFmerge HXFmerge.c |
Maurus Cuelenaere | c7b6ad5 | 2009-03-20 22:50:08 +0000 | [diff] [blame] | 27 | HXFreplace: HXFreplace.c |
Maurus Cuelenaere | c8bdcbf | 2008-08-07 10:24:11 +0000 | [diff] [blame] | 28 | $(CC) $(CFLAGS) -o HXFreplace HXFreplace.c |
Maurus Cuelenaere | c7b6ad5 | 2009-03-20 22:50:08 +0000 | [diff] [blame] | 29 | HXFsplit: HXFsplit.c |
Maurus Cuelenaere | c8bdcbf | 2008-08-07 10:24:11 +0000 | [diff] [blame] | 30 | $(CC) $(CFLAGS) -o HXFsplit HXFsplit.c |
Maurus Cuelenaere | c7b6ad5 | 2009-03-20 22:50:08 +0000 | [diff] [blame] | 31 | IHFSsplit: IHFSsplit.c |
Maurus Cuelenaere | c8bdcbf | 2008-08-07 10:24:11 +0000 | [diff] [blame] | 32 | $(CC) $(CFLAGS) -o IHFSsplit IHFSsplit.c |
Maurus Cuelenaere | c7b6ad5 | 2009-03-20 22:50:08 +0000 | [diff] [blame] | 33 | HXF2IHFS: HXF2IHFS.c |
Maurus Cuelenaere | 72bc4e3 | 2008-08-12 16:55:59 +0000 | [diff] [blame] | 34 | $(CC) $(CFLAGS) -o HXF2IHFS HXF2IHFS.c |
Maurus Cuelenaere | c7b6ad5 | 2009-03-20 22:50:08 +0000 | [diff] [blame] | 35 | DLanalyser: DLanalyser.c |
Maurus Cuelenaere | 3b45b8c | 2008-10-27 18:45:01 +0000 | [diff] [blame] | 36 | $(CC) $(CFLAGS) -o DLanalyser DLanalyser.c |
Maurus Cuelenaere | 6fd40a5 | 2008-07-03 12:17:56 +0000 | [diff] [blame] | 37 | |
Maurus Cuelenaere | c7b6ad5 | 2009-03-20 22:50:08 +0000 | [diff] [blame] | 38 | HXFmerge_win: HXFmerge.c |
Maurus Cuelenaere | c8bdcbf | 2008-08-07 10:24:11 +0000 | [diff] [blame] | 39 | $(CC) $(CFLAGS) -o HXFmerge.exe HXFmerge.c |
Maurus Cuelenaere | c7b6ad5 | 2009-03-20 22:50:08 +0000 | [diff] [blame] | 40 | HXFreplace_win: HXFreplace.c |
Maurus Cuelenaere | c8bdcbf | 2008-08-07 10:24:11 +0000 | [diff] [blame] | 41 | $(CC) $(CFLAGS) -o HXFreplace.exe HXFreplace.c |
Maurus Cuelenaere | c7b6ad5 | 2009-03-20 22:50:08 +0000 | [diff] [blame] | 42 | HXFsplit_win: HXFsplit.c |
Maurus Cuelenaere | c8bdcbf | 2008-08-07 10:24:11 +0000 | [diff] [blame] | 43 | $(CC) $(CFLAGS) -o HXFsplit.exe HXFsplit.c |
Maurus Cuelenaere | c7b6ad5 | 2009-03-20 22:50:08 +0000 | [diff] [blame] | 44 | IHFSsplit_win: IHFSsplit.c |
Maurus Cuelenaere | c8bdcbf | 2008-08-07 10:24:11 +0000 | [diff] [blame] | 45 | $(CC) $(CFLAGS) -o IHFSsplit.exe IHFSsplit.c |
Maurus Cuelenaere | c7b6ad5 | 2009-03-20 22:50:08 +0000 | [diff] [blame] | 46 | HXF2IHFS_win: HXF2IHFS.c |
Maurus Cuelenaere | 72bc4e3 | 2008-08-12 16:55:59 +0000 | [diff] [blame] | 47 | $(CC) $(CFLAGS) -o HXF2IHFS.exe HXF2IHFS.c |
Maurus Cuelenaere | c7b6ad5 | 2009-03-20 22:50:08 +0000 | [diff] [blame] | 48 | DLanalyser_win: DLanalyser.c |
Maurus Cuelenaere | 3b45b8c | 2008-10-27 18:45:01 +0000 | [diff] [blame] | 49 | $(CC) $(CFLAGS) -o DLanalyser.exe DLanalyser.c |
Maurus Cuelenaere | 6fd40a5 | 2008-07-03 12:17:56 +0000 | [diff] [blame] | 50 | |
| 51 | clean-linux: |
Maurus Cuelenaere | c7b6ad5 | 2009-03-20 22:50:08 +0000 | [diff] [blame] | 52 | rm HXFmerge HXFreplace HXFsplit usbtool IHFSsplit HXF2IHFS DLanalyser bin2c |
Maurus Cuelenaere | 6fd40a5 | 2008-07-03 12:17:56 +0000 | [diff] [blame] | 53 | clean-win: |
Maurus Cuelenaere | c7b6ad5 | 2009-03-20 22:50:08 +0000 | [diff] [blame] | 54 | del HXFmerge.exe HXFreplace.exe HXFsplit.exe usbtool.exe IHFSsplit.exe HXF2IHFS.exe DLanalyser.exe bin2c.exe |