9213fb241b
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6353 a1c6a512-1295-4272-9138-f99709370657
33 lines
811 B
Makefile
33 lines
811 B
Makefile
# __________ __ ___.
|
|
# 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
|
|
|