mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
Make bin2c compile with VS2005 and move it to a separate folder as its getting used by different tools now.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21272 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
1c83e6ab90
commit
73f9bde908
4 changed files with 41 additions and 11 deletions
25
rbutil/tools/Makefile
Normal file
25
rbutil/tools/Makefile
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
CFLAGS=-Wall -W -D_LARGEFILE64_SOURCE
|
||||
|
||||
ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN)
|
||||
CROSS=
|
||||
CFLAGS+=-mno-cygwin
|
||||
else
|
||||
ifeq ($(findstring MINGW,$(shell uname)),MINGW)
|
||||
CROSS=
|
||||
else
|
||||
CROSS=i586-mingw32msvc-
|
||||
endif
|
||||
endif
|
||||
|
||||
NATIVECC = gcc
|
||||
CC = $(CROSS)gcc
|
||||
WINDRES = $(CROSS)windres
|
||||
|
||||
|
||||
all: bin2c
|
||||
|
||||
bin2c: bin2c.c
|
||||
$(NATIVECC) $(CFLAGS) -o bin2c bin2c.c
|
||||
|
||||
clean:
|
||||
$(RM) bin2c bin2c.exe
|
||||
Loading…
Add table
Add a link
Reference in a new issue