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:
Dave Chapman 2007-09-15 22:49:29 +00:00
parent 7e0ed6b79f
commit 76ea412d5f
1 changed files with 2 additions and 1 deletions

View File

@ -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