Prepare new maemo release
[maemo-rb.git] / utils / jz4740_tools / Makefile
blobd6ce11179d3bd906e92d71968aff9a25cbe7f7ac
1 WIN_DRIVERS_LIBUSB_DIR = C:\Program Files\LibUSB-Win32
2 WIN_LIBUSB_INCLUDE_DIR = "$(WIN_DRIVERS_LIBUSB_DIR)\include"
3 WIN_LIBUSB_LIB_DIR = "$(WIN_DRIVERS_LIBUSB_DIR)\lib\gcc"
5 CFLAGS=-Wall
6 CC=gcc
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
11 bin2c: ../../rbutil/tools/bin2c.c
12 $(CC) $(CFLAGS) -o bin2c ../../rbutil/tools/bin2c.c
14 bin2c.exe: ../../rbutil/tools/bin2c.c
15 $(CC) $(CFLAGS) -o bin2c.exe ../../rbutil/tools/bin2c.c
17 jz_xloader.c: jz_xloader.bin
18 ./bin2c jz_xloader.bin jz_xloader
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)
25 HXFmerge: HXFmerge.c
26 $(CC) $(CFLAGS) -o HXFmerge HXFmerge.c
27 HXFreplace: HXFreplace.c
28 $(CC) $(CFLAGS) -o HXFreplace HXFreplace.c
29 HXFsplit: HXFsplit.c
30 $(CC) $(CFLAGS) -o HXFsplit HXFsplit.c
31 IHFSsplit: IHFSsplit.c
32 $(CC) $(CFLAGS) -o IHFSsplit IHFSsplit.c
33 HXF2IHFS: HXF2IHFS.c
34 $(CC) $(CFLAGS) -o HXF2IHFS HXF2IHFS.c
35 DLanalyser: DLanalyser.c
36 $(CC) $(CFLAGS) -o DLanalyser DLanalyser.c
38 HXFmerge_win: HXFmerge.c
39 $(CC) $(CFLAGS) -o HXFmerge.exe HXFmerge.c
40 HXFreplace_win: HXFreplace.c
41 $(CC) $(CFLAGS) -o HXFreplace.exe HXFreplace.c
42 HXFsplit_win: HXFsplit.c
43 $(CC) $(CFLAGS) -o HXFsplit.exe HXFsplit.c
44 IHFSsplit_win: IHFSsplit.c
45 $(CC) $(CFLAGS) -o IHFSsplit.exe IHFSsplit.c
46 HXF2IHFS_win: HXF2IHFS.c
47 $(CC) $(CFLAGS) -o HXF2IHFS.exe HXF2IHFS.c
48 DLanalyser_win: DLanalyser.c
49 $(CC) $(CFLAGS) -o DLanalyser.exe DLanalyser.c
51 clean-linux:
52 rm HXFmerge HXFreplace HXFsplit usbtool IHFSsplit HXF2IHFS DLanalyser bin2c
53 clean-win:
54 del HXFmerge.exe HXFreplace.exe HXFsplit.exe usbtool.exe IHFSsplit.exe HXF2IHFS.exe DLanalyser.exe bin2c.exe