summaryrefslogtreecommitdiffstats
path: root/tools/fwpatcher
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-05-20 21:42:59 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-05-20 21:42:59 +0000
commit26924522c594ee0ea7b739ce6b5b3c3890dbaade (patch)
tree5700d0c8a3edfdd396c8dd8f68ae98e960d0389a /tools/fwpatcher
parenta961668750229928b2b58ce3b6f5be7020ac16e2 (diff)
downloadrockbox-26924522c594ee0ea7b739ce6b5b3c3890dbaade.tar.gz
rockbox-26924522c594ee0ea7b739ce6b5b3c3890dbaade.tar.bz2
rockbox-26924522c594ee0ea7b739ce6b5b3c3890dbaade.zip
build a non-unicode version too
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6497 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/fwpatcher')
-rw-r--r--tools/fwpatcher/Makefile22
1 files changed, 19 insertions, 3 deletions
diff --git a/tools/fwpatcher/Makefile b/tools/fwpatcher/Makefile
index e23f98c9fc..f5255975f3 100644
--- a/tools/fwpatcher/Makefile
+++ b/tools/fwpatcher/Makefile
@@ -9,25 +9,41 @@
PREFIX=i586-mingw32msvc-
-TARGET = fwpatcher.exe
+TARGET = fwpatchernu.exe
+TARGETU = fwpatcher.exe
WINDRES = $(PREFIX)windres
CC = $(PREFIX)gcc
-CFLAGS = -DUNICODE -D_UNICODE -I. -Os -s -fomit-frame-pointer
+UNICODE = -DUNICODE -D_UNICODE
+CFLAGS = -I. -Os -s -fomit-frame-pointer
LDFLAGS = -lmingw32 -mwindows -s
OBJS= resource.o iriver.o main.o md5.o
+OBJSU= resource.o iriveru.o mainu.o md5.o
-$(TARGET) : $(OBJS)
+all: $(TARGET) $(TARGETU)
+
+$(TARGET): $(OBJS)
$(CC) $(LDFLAGS) $(OBJS) -o $@
+$(TARGETU): $(OBJSU)
+ $(CC) $(LDFLAGS) $(OBJSU) -o $@
+
resource.o: resource.rc bootloader.bin rockbox.ico
$(WINDRES) -v $< $@
+iriveru.o: iriver.c iriver.h
+ $(CC) $(CFLAGS) $(UNICODE) -c $< -o $@
+
iriver.o: iriver.c iriver.h
+mainu.o: main.c
+ $(CC) $(CFLAGS) $(UNICODE) -c $< -o $@
+
main.o: main.c
md5.o: md5.c md5.h
+clean:
+ rm -f $(OBJSU) $(OBJS) $(TARGETU) $(TARGET)