Modify Makefile for cross-compiling a windows .exe - this requires the libusb-win32-device-bin-0.1.12.1 archive extracted to the e200rpatcher source directory.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14722 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
7e0ed6b79f
commit
76ea412d5f
|
@ -10,6 +10,7 @@ CROSS=i586-mingw32msvc-
|
|||
endif
|
||||
|
||||
LIBS = -lusb
|
||||
WINLIBS = -I libusb-win32-device-bin-0.1.12.1/include libusb-win32-device-bin-0.1.12.1/lib/dynamic/libusb_dyn.c
|
||||
|
||||
NATIVECC = gcc
|
||||
CC = $(CROSS)gcc
|
||||
|
@ -21,7 +22,7 @@ e200rpatcher: e200rpatcher.c bootimg.c
|
|||
strip e200rpatcher
|
||||
|
||||
e200rpatcher.exe: e200rpatcher.c bootimg.c
|
||||
$(CC) $(CFLAGS) $(LIBS) -o e200rpatcher.exe e200rpatcher.c bootimg.c
|
||||
$(CC) $(CFLAGS) $(WINLIBS) -o e200rpatcher.exe e200rpatcher.c bootimg.c
|
||||
$(CROSS)strip e200rpatcher.exe
|
||||
|
||||
e200rpatcher-mac: e200rpatcher-i386 e200rpatcher-ppc
|
||||
|
|
Loading…
Reference in New Issue