summaryrefslogtreecommitdiffstats
path: root/tools/fwpatcher
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-04-25 21:28:46 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-04-25 21:28:46 +0000
commit9213fb241b90f35e5af317c4c01b6e38d2308bac (patch)
treeb0f2e319064a2797f6df002a8632ec0803f58b14 /tools/fwpatcher
parente6b1c27d061da6d2155159ab54c4d156ef25976e (diff)
downloadrockbox-9213fb241b90f35e5af317c4c01b6e38d2308bac.tar.gz
rockbox-9213fb241b90f35e5af317c4c01b6e38d2308bac.tar.bz2
rockbox-9213fb241b90f35e5af317c4c01b6e38d2308bac.zip
initial makefile, builds crosscompiled on Linux fine
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6353 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/fwpatcher')
-rw-r--r--tools/fwpatcher/Makefile33
1 files changed, 33 insertions, 0 deletions
diff --git a/tools/fwpatcher/Makefile b/tools/fwpatcher/Makefile
new file mode 100644
index 0000000000..45047782ae
--- /dev/null
+++ b/tools/fwpatcher/Makefile
@@ -0,0 +1,33 @@
+# __________ __ ___.
+# Open \______ \ ____ ____ | | _\_ |__ _______ ___
+# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
+# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
+# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
+# \/ \/ \/ \/ \/
+# $Id$
+#
+
+PREFIX=i586-mingw32msvc-
+
+TARGET = fwpatcher.exe
+
+WINDRES = $(PREFIX)windres
+CC = $(PREFIX)gcc
+
+CFLAGS = -DUNICODE -D_UNICODE -I. -Os -s -fomit-frame-pointer
+LDFLAGS = -lmingw32 -mwindows -s
+
+OBJS= resource.o iriver.o main.o md5.o
+
+$(TARGET) : $(OBJS)
+ $(CC) $(LDFLAGS) $(OBJS) -o $@
+
+resource.o: resource.rc bootloader.bin favicon.ico
+ $(WINDRES) -v $< $@
+
+iriver.o: iriver.c iriver.h
+
+main.o: main.c
+
+md5.o: md5.c md5.h
+