2002-04-11 08:53:12 +00:00
|
|
|
# __________ __ ___.
|
|
|
|
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
# \/ \/ \/ \/ \/
|
|
|
|
# $Id$
|
|
|
|
#
|
2009-08-30 23:26:52 +00:00
|
|
|
CFLAGS := -O -g -W -Wall -Wshadow -pedantic
|
2005-01-28 12:28:35 +00:00
|
|
|
LDFLAGS := -g
|
2002-03-28 14:42:55 +00:00
|
|
|
|
2007-11-16 16:15:46 +00:00
|
|
|
.PHONY: rbspeexenc uclpack
|
|
|
|
|
2009-10-29 05:06:13 +00:00
|
|
|
CLEANALL := scramble descramble iriver sh2d bmp2rb rdf2binary convbdf \
|
|
|
|
generate_rocklatin mkboot ipod_fw codepages uclpack mi4 gigabeat lngdump \
|
|
|
|
telechips gigabeats creative hmac-sha1 rbspeexenc mkzenboot mk500boot
|
2002-03-28 14:42:55 +00:00
|
|
|
|
2009-10-29 05:06:13 +00:00
|
|
|
all: scramble descramble sh2d rdf2binary mkboot mkzenboot convbdf codepages \
|
|
|
|
uclpack rbspeexenc voicefont mk500boot
|
2002-03-28 14:34:13 +00:00
|
|
|
|
2009-10-29 05:06:13 +00:00
|
|
|
scramble: scramble.o iriver.o mi4.o gigabeat.o gigabeats.o telechips.o \
|
|
|
|
iaudio_bl_flash.o creative.o hmac-sha1.o
|
2006-08-30 23:47:09 +00:00
|
|
|
descramble: descramble.o iriver.o gigabeat.o
|
2009-10-29 05:06:13 +00:00
|
|
|
scramble.o: scramble.c iriver.h mi4.h gigabeat.h telechips.h iaudio_bl_flash.h \
|
|
|
|
creative.h
|
2002-03-28 14:34:13 +00:00
|
|
|
|
2006-08-30 23:47:09 +00:00
|
|
|
descramble.o: descramble.c iriver.h gigabeat.h
|
2008-04-09 11:53:28 +00:00
|
|
|
creative.o: creative.c creative.h
|
|
|
|
hmac-sha1.o: hmac-sha1.c hmac-sha1.h
|
2005-01-24 09:01:48 +00:00
|
|
|
iriver.o: iriver.c iriver.h
|
2006-08-30 23:47:09 +00:00
|
|
|
gigabeat.o: gigabeat.c gigabeat.h
|
2007-09-21 15:51:53 +00:00
|
|
|
gigabeats.o: gigabeats.c gigabeats.h
|
2006-08-30 23:17:04 +00:00
|
|
|
mi4.o: mi4.c mi4.h
|
2007-09-30 12:49:43 +00:00
|
|
|
telechips.o: telechips.c telechips.h
|
2008-03-18 20:58:52 +00:00
|
|
|
iaudio_bl_flash.o: iaudio_bl_flash.c iaudio_bl_flash.h
|
|
|
|
iaudio_bl_flash.c iaudio_bl_flash.h: iaudio_bl_flash.bmp bmp2rb
|
|
|
|
$(SILENT)./bmp2rb -f 7 -h . $< >iaudio_bl_flash.c
|
2002-03-28 14:34:13 +00:00
|
|
|
|
|
|
|
sh2d: sh2d.c
|
2002-03-28 14:42:55 +00:00
|
|
|
|
2002-08-16 14:03:24 +00:00
|
|
|
bmp2rb: bmp2rb.c
|
2008-04-10 21:17:57 +00:00
|
|
|
$(SILENT)$(CC) -DAPPLICATION_NAME=\"$@\" $(CFLAGS) $+ -o $@
|
2002-09-18 15:41:09 +00:00
|
|
|
|
2005-05-02 15:05:07 +00:00
|
|
|
rdf2binary: rdf2binary.c
|
2008-04-10 21:17:57 +00:00
|
|
|
$(SILENT)$(CC) $(CFLAGS) $+ -o $@
|
2005-05-02 15:05:07 +00:00
|
|
|
|
2005-01-28 12:28:35 +00:00
|
|
|
mkboot: mkboot.c
|
2008-04-10 21:17:57 +00:00
|
|
|
$(SILENT)$(CC) $(CFLAGS) $+ -o $@
|
2005-01-28 12:28:35 +00:00
|
|
|
|
2009-08-30 23:24:22 +00:00
|
|
|
mk500boot: mk500boot.c mr500.c
|
|
|
|
$(SILENT)$(CC) $(CFLAGS) $+ -o $@
|
|
|
|
|
2008-08-27 20:32:12 +00:00
|
|
|
mkzenboot.o: mkzenboot.c
|
|
|
|
$(SILENT)$(CC) $(CFLAGS) -DSTANDALONE -c -o $@ $+
|
|
|
|
|
|
|
|
mkzenboot: mkzenboot.o hmac-sha1.o
|
|
|
|
$(SILENT)$(CC) $(LDFLAGS) -lz $+ -o $@
|
|
|
|
|
2008-08-28 13:37:37 +00:00
|
|
|
mkzenboot.exe: mkzenboot.o hmac-sha1.o
|
|
|
|
$(SILENT)$(CC) $(LDFLAGS) -lz $+ C:\MingW\lib\libz.a -o $@
|
|
|
|
|
2007-08-10 22:06:58 +00:00
|
|
|
lngdump: lngdump.c
|
2008-04-10 21:17:57 +00:00
|
|
|
$(SILENT)$(CC) $(CFLAGS) $+ -o $@
|
2007-08-10 22:06:58 +00:00
|
|
|
|
2005-11-11 17:58:05 +00:00
|
|
|
ipod_fw: ipod_fw.c
|
2008-04-10 21:17:57 +00:00
|
|
|
$(SILENT)$(CC) $(CFLAGS) $+ -o $@
|
2005-11-11 17:58:05 +00:00
|
|
|
|
2009-10-29 05:06:13 +00:00
|
|
|
checkwps: checkwps.c ../apps/gui/wps_parser.c ../apps/gui/wps_debug.c \
|
|
|
|
../firmware/common/ctype.c ../apps/misc.c ../apps/recorder/bmp.c
|
2008-04-10 21:17:57 +00:00
|
|
|
$(SILENT)$(CC) $(CFLAGS) -I ../apps/gui -I../firmware/export \
|
2009-10-29 05:06:13 +00:00
|
|
|
-D__PCTOOL__ -DDEBUG -DROCKBOX_HAS_LOGF -DIPOD_COLOR \
|
|
|
|
-D ROCKBOX_DIR_LEN -D WPS_DIR=\".\" -I../apps \
|
|
|
|
-I../firmware/target/arm/ipod -I../firmware/include $+ -o $@
|
2007-05-29 19:00:36 +00:00
|
|
|
|
2002-09-18 15:41:09 +00:00
|
|
|
convbdf: convbdf.c
|
2008-04-10 21:17:57 +00:00
|
|
|
$(SILENT)$(CC) $(CFLAGS) $+ -o $@
|
2002-08-16 14:03:24 +00:00
|
|
|
|
2005-12-06 15:04:48 +00:00
|
|
|
codepages: codepages.c codepage_tables.c
|
2008-04-10 21:17:57 +00:00
|
|
|
$(SILENT)$(CC) $(CFLAGS) $+ -o $@
|
2005-12-06 13:27:15 +00:00
|
|
|
|
2007-04-04 00:16:11 +00:00
|
|
|
player_unifont: player_unifont.c ../firmware/drivers/lcd-charset-player.c
|
2009-10-29 05:06:13 +00:00
|
|
|
$(SILENT)$(CC) -DARCHOS_PLAYER -D__PCTOOL__ -I../firmware/export $+ \
|
|
|
|
-o $@
|
2003-01-10 10:05:32 +00:00
|
|
|
|
2005-11-28 00:12:17 +00:00
|
|
|
uclpack:
|
2006-02-09 04:27:57 +00:00
|
|
|
$(SILENT)$(MAKE) -C ucl
|
2005-11-28 00:12:17 +00:00
|
|
|
|
2007-11-16 15:35:37 +00:00
|
|
|
rbspeexenc:
|
|
|
|
$(SILENT)$(MAKE) -C rbspeex
|
|
|
|
|
2006-11-03 21:47:52 +00:00
|
|
|
wavtrim: wavtrim.c
|
2008-04-10 21:17:57 +00:00
|
|
|
$(SILENT)$(CC) $(CFLAGS) $+ -o $@
|
2006-11-03 21:47:52 +00:00
|
|
|
|
|
|
|
voicefont: voicefont.c
|
2008-04-10 21:17:57 +00:00
|
|
|
$(SILENT)$(CC) $(CFLAGS) $+ -o $@
|
2006-11-03 21:47:52 +00:00
|
|
|
|
2007-11-22 20:51:00 +00:00
|
|
|
usb_benchmark: usb_benchmark.c
|
2008-04-10 21:17:57 +00:00
|
|
|
$(SILENT)$(CC) $(CFLAGS) -lusb $+ -o $@
|
2007-11-22 20:51:00 +00:00
|
|
|
|
2002-03-28 14:42:55 +00:00
|
|
|
clean:
|
2006-02-09 04:27:57 +00:00
|
|
|
@echo "Cleaning tools"
|
2009-10-29 05:06:13 +00:00
|
|
|
$(SILENT)rm -f $(CLEANALL) $(shell for f in $(CLEANALL) ; do \
|
|
|
|
echo $$f.exe $$f.o $$f.obj ; done) *.ajf *~
|
2006-02-09 04:27:57 +00:00
|
|
|
$(SILENT)$(MAKE) -C ucl clean
|
2007-11-16 15:35:37 +00:00
|
|
|
$(SILENT)$(MAKE) -C rbspeex clean
|
2002-08-11 09:17:47 +00:00
|
|
|
|