summaryrefslogtreecommitdiffstats
path: root/rbutil/tools/Makefile
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2009-06-13 14:15:50 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2009-06-13 14:15:50 +0000
commit73f9bde9088f0bc447725fdb512a78034060dc9d (patch)
tree7042f51c35bbac42cb1c5ecb9698ba750545c0b3 /rbutil/tools/Makefile
parent1c83e6ab900706a4d5d7dad631cae2305fa39f11 (diff)
downloadrockbox-73f9bde9088f0bc447725fdb512a78034060dc9d.tar.gz
rockbox-73f9bde9088f0bc447725fdb512a78034060dc9d.tar.bz2
rockbox-73f9bde9088f0bc447725fdb512a78034060dc9d.zip
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
Diffstat (limited to 'rbutil/tools/Makefile')
-rw-r--r--rbutil/tools/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/rbutil/tools/Makefile b/rbutil/tools/Makefile
new file mode 100644
index 0000000000..baafdf84be
--- /dev/null
+++ b/rbutil/tools/Makefile
@@ -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