summaryrefslogtreecommitdiffstats
path: root/utils/jz4740_tools/Makefile
blob: 7ed79eb22c125a4ba64104e695830e2e5e068b97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
WIN_DRIVERS_LIBUSB_DIR = C:\Program Files\LibUSB-Win32
WIN_LIBUSB_INCLUDE_DIR = "$(WIN_DRIVERS_LIBUSB_DIR)\include"
WIN_LIBUSB_LIB_DIR = "$(WIN_DRIVERS_LIBUSB_DIR)\lib\$(CC)"

CFLAGS=-Wall

linux: usbtool HXFmerge HXFreplace HXFsplit IHFSsplit
win: usbtool_win HXFmerge_win HXFsplit_win HXFreplace_win IHFSsplit_win

usbtool:
	$(CC) $(CFLAGS) -o usbtool jz4740_usbtool.c -lusb
usbtool_win:
	$(CC) $(CFLAGS) -o usbtool.exe jz4740_usbtool.c -lusb -I $(WIN_LIBUSB_INCLUDE_DIR) -L $(WIN_LIBUSB_LIB_DIR)

HXFmerge:
	$(CC) $(CFLAGS) -o HXFmerge HXFmerge.c
HXFreplace:
	$(CC) $(CFLAGS) -o HXFreplace HXFreplace.c
HXFsplit:
	$(CC) $(CFLAGS) -o HXFsplit HXFsplit.c
IHFSsplit:
	$(CC) $(CFLAGS) -o IHFSsplit IHFSsplit.c

HXFmerge_win:
	$(CC) $(CFLAGS) -o HXFmerge.exe HXFmerge.c
HXFreplace_win:
	$(CC) $(CFLAGS) -o HXFreplace.exe HXFreplace.c
HXFsplit_win:
	$(CC) $(CFLAGS) -o HXFsplit.exe HXFsplit.c
IHFSsplit_win:
	$(CC) $(CFLAGS) -o IHFSsplit.exe IHFSsplit.c

clean-linux:
	rm HXFmerge HXFreplace HXFsplit usbtool
clean-win:
	del HXFmerge.exe HXFreplace.exe HXFsplit.exe usbtool.exe