forked from len0rd/rockbox
build a non-unicode version too
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6497 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
a961668750
commit
26924522c5
1 changed files with 19 additions and 3 deletions
|
|
@ -9,25 +9,41 @@
|
||||||
|
|
||||||
PREFIX=i586-mingw32msvc-
|
PREFIX=i586-mingw32msvc-
|
||||||
|
|
||||||
TARGET = fwpatcher.exe
|
TARGET = fwpatchernu.exe
|
||||||
|
TARGETU = fwpatcher.exe
|
||||||
|
|
||||||
WINDRES = $(PREFIX)windres
|
WINDRES = $(PREFIX)windres
|
||||||
CC = $(PREFIX)gcc
|
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
|
LDFLAGS = -lmingw32 -mwindows -s
|
||||||
|
|
||||||
OBJS= resource.o iriver.o main.o md5.o
|
OBJS= resource.o iriver.o main.o md5.o
|
||||||
|
OBJSU= resource.o iriveru.o mainu.o md5.o
|
||||||
|
|
||||||
|
all: $(TARGET) $(TARGETU)
|
||||||
|
|
||||||
$(TARGET): $(OBJS)
|
$(TARGET): $(OBJS)
|
||||||
$(CC) $(LDFLAGS) $(OBJS) -o $@
|
$(CC) $(LDFLAGS) $(OBJS) -o $@
|
||||||
|
|
||||||
|
$(TARGETU): $(OBJSU)
|
||||||
|
$(CC) $(LDFLAGS) $(OBJSU) -o $@
|
||||||
|
|
||||||
resource.o: resource.rc bootloader.bin rockbox.ico
|
resource.o: resource.rc bootloader.bin rockbox.ico
|
||||||
$(WINDRES) -v $< $@
|
$(WINDRES) -v $< $@
|
||||||
|
|
||||||
|
iriveru.o: iriver.c iriver.h
|
||||||
|
$(CC) $(CFLAGS) $(UNICODE) -c $< -o $@
|
||||||
|
|
||||||
iriver.o: iriver.c iriver.h
|
iriver.o: iriver.c iriver.h
|
||||||
|
|
||||||
|
mainu.o: main.c
|
||||||
|
$(CC) $(CFLAGS) $(UNICODE) -c $< -o $@
|
||||||
|
|
||||||
main.o: main.c
|
main.o: main.c
|
||||||
|
|
||||||
md5.o: md5.c md5.h
|
md5.o: md5.c md5.h
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f $(OBJSU) $(OBJS) $(TARGETU) $(TARGET)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue