blob: d6ce11179d3bd906e92d71968aff9a25cbe7f7ac [file] [log] [blame]
Maurus Cuelenaere6fd40a52008-07-03 12:17:56 +00001WIN_DRIVERS_LIBUSB_DIR = C:\Program Files\LibUSB-Win32
Maurus Cuelenaere00daa7c2008-06-21 17:18:24 +00002WIN_LIBUSB_INCLUDE_DIR = "$(WIN_DRIVERS_LIBUSB_DIR)\include"
Maurus Cuelenaereeca923d2008-08-07 10:26:14 +00003WIN_LIBUSB_LIB_DIR = "$(WIN_DRIVERS_LIBUSB_DIR)\lib\gcc"
Maurus Cuelenaere00daa7c2008-06-21 17:18:24 +00004
Maurus Cuelenaerec8bdcbf2008-08-07 10:24:11 +00005CFLAGS=-Wall
Maurus Cuelenaerec7b6ad52009-03-20 22:50:08 +00006CC=gcc
Maurus Cuelenaerec8bdcbf2008-08-07 10:24:11 +00007
Maurus Cuelenaere3b45b8c2008-10-27 18:45:01 +00008linux: usbtool HXFmerge HXFreplace HXFsplit IHFSsplit HXF2IHFS DLanalyser
9win: usbtool_win HXFmerge_win HXFsplit_win HXFreplace_win IHFSsplit_win HXF2IHFS_win DLanalyser_win
Maurus Cuelenaere6fd40a52008-07-03 12:17:56 +000010
Rafaël Carré638df102009-06-19 23:00:07 +000011bin2c: ../../rbutil/tools/bin2c.c
12 $(CC) $(CFLAGS) -o bin2c ../../rbutil/tools/bin2c.c
Maurus Cuelenaere00daa7c2008-06-21 17:18:24 +000013
Rafaël Carré638df102009-06-19 23:00:07 +000014bin2c.exe: ../../rbutil/tools/bin2c.c
15 $(CC) $(CFLAGS) -o bin2c.exe ../../rbutil/tools/bin2c.c
Maurus Cuelenaerec7b6ad52009-03-20 22:50:08 +000016
17jz_xloader.c: jz_xloader.bin
18 ./bin2c jz_xloader.bin jz_xloader
19
20usbtool: jz4740_usbtool.c bin2c jz_xloader.c
21 $(CC) $(CFLAGS) -o usbtool jz4740_usbtool.c jz_xloader.c -lusb
22usbtool_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
25HXFmerge: HXFmerge.c
Maurus Cuelenaerec8bdcbf2008-08-07 10:24:11 +000026 $(CC) $(CFLAGS) -o HXFmerge HXFmerge.c
Maurus Cuelenaerec7b6ad52009-03-20 22:50:08 +000027HXFreplace: HXFreplace.c
Maurus Cuelenaerec8bdcbf2008-08-07 10:24:11 +000028 $(CC) $(CFLAGS) -o HXFreplace HXFreplace.c
Maurus Cuelenaerec7b6ad52009-03-20 22:50:08 +000029HXFsplit: HXFsplit.c
Maurus Cuelenaerec8bdcbf2008-08-07 10:24:11 +000030 $(CC) $(CFLAGS) -o HXFsplit HXFsplit.c
Maurus Cuelenaerec7b6ad52009-03-20 22:50:08 +000031IHFSsplit: IHFSsplit.c
Maurus Cuelenaerec8bdcbf2008-08-07 10:24:11 +000032 $(CC) $(CFLAGS) -o IHFSsplit IHFSsplit.c
Maurus Cuelenaerec7b6ad52009-03-20 22:50:08 +000033HXF2IHFS: HXF2IHFS.c
Maurus Cuelenaere72bc4e32008-08-12 16:55:59 +000034 $(CC) $(CFLAGS) -o HXF2IHFS HXF2IHFS.c
Maurus Cuelenaerec7b6ad52009-03-20 22:50:08 +000035DLanalyser: DLanalyser.c
Maurus Cuelenaere3b45b8c2008-10-27 18:45:01 +000036 $(CC) $(CFLAGS) -o DLanalyser DLanalyser.c
Maurus Cuelenaere6fd40a52008-07-03 12:17:56 +000037
Maurus Cuelenaerec7b6ad52009-03-20 22:50:08 +000038HXFmerge_win: HXFmerge.c
Maurus Cuelenaerec8bdcbf2008-08-07 10:24:11 +000039 $(CC) $(CFLAGS) -o HXFmerge.exe HXFmerge.c
Maurus Cuelenaerec7b6ad52009-03-20 22:50:08 +000040HXFreplace_win: HXFreplace.c
Maurus Cuelenaerec8bdcbf2008-08-07 10:24:11 +000041 $(CC) $(CFLAGS) -o HXFreplace.exe HXFreplace.c
Maurus Cuelenaerec7b6ad52009-03-20 22:50:08 +000042HXFsplit_win: HXFsplit.c
Maurus Cuelenaerec8bdcbf2008-08-07 10:24:11 +000043 $(CC) $(CFLAGS) -o HXFsplit.exe HXFsplit.c
Maurus Cuelenaerec7b6ad52009-03-20 22:50:08 +000044IHFSsplit_win: IHFSsplit.c
Maurus Cuelenaerec8bdcbf2008-08-07 10:24:11 +000045 $(CC) $(CFLAGS) -o IHFSsplit.exe IHFSsplit.c
Maurus Cuelenaerec7b6ad52009-03-20 22:50:08 +000046HXF2IHFS_win: HXF2IHFS.c
Maurus Cuelenaere72bc4e32008-08-12 16:55:59 +000047 $(CC) $(CFLAGS) -o HXF2IHFS.exe HXF2IHFS.c
Maurus Cuelenaerec7b6ad52009-03-20 22:50:08 +000048DLanalyser_win: DLanalyser.c
Maurus Cuelenaere3b45b8c2008-10-27 18:45:01 +000049 $(CC) $(CFLAGS) -o DLanalyser.exe DLanalyser.c
Maurus Cuelenaere6fd40a52008-07-03 12:17:56 +000050
51clean-linux:
Maurus Cuelenaerec7b6ad52009-03-20 22:50:08 +000052 rm HXFmerge HXFreplace HXFsplit usbtool IHFSsplit HXF2IHFS DLanalyser bin2c
Maurus Cuelenaere6fd40a52008-07-03 12:17:56 +000053clean-win:
Maurus Cuelenaerec7b6ad52009-03-20 22:50:08 +000054 del HXFmerge.exe HXFreplace.exe HXFsplit.exe usbtool.exe IHFSsplit.exe HXF2IHFS.exe DLanalyser.exe bin2c.exe