rockbox/tools/fwpatcher/Makefile
Daniel Stenberg 26924522c5 build a non-unicode version too
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6497 a1c6a512-1295-4272-9138-f99709370657
2005-05-20 21:42:59 +00:00

49 lines
1.1 KiB
Makefile

# __________ __ ___.
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
# \/ \/ \/ \/ \/
# $Id$
#
PREFIX=i586-mingw32msvc-
TARGET = fwpatchernu.exe
TARGETU = fwpatcher.exe
WINDRES = $(PREFIX)windres
CC = $(PREFIX)gcc
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
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)