2002-04-11 08:53:12 +00:00
|
|
|
# __________ __ ___.
|
|
|
|
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
# \/ \/ \/ \/ \/
|
|
|
|
# $Id$
|
|
|
|
#
|
2005-01-28 12:28:35 +00:00
|
|
|
CFLAGS := -O -ansi -g
|
|
|
|
LDFLAGS := -g
|
2002-03-28 14:42:55 +00:00
|
|
|
|
2007-11-16 16:15:46 +00:00
|
|
|
.PHONY: rbspeexenc uclpack
|
|
|
|
|
2006-03-27 08:23:00 +00:00
|
|
|
CLEANALL := scramble descramble iriver sh2d bmp2rb rdf2binary convbdf \
|
2007-08-10 22:06:58 +00:00
|
|
|
generate_rocklatin mkboot ipod_fw codepages uclpack mi4 gigabeat database \
|
2007-11-16 15:35:37 +00:00
|
|
|
lngdump telechips gigabeats mktccboot mknkboot rbspeexenc
|
2002-03-28 14:42:55 +00:00
|
|
|
|
2005-12-02 08:56:20 +00:00
|
|
|
all:
|
|
|
|
@echo "Run make in your build directory!"
|
2002-03-28 14:34:13 +00:00
|
|
|
|
2008-03-18 20:58:52 +00:00
|
|
|
scramble: scramble.o iriver.o mi4.o gigabeat.o gigabeats.o telechips.o iaudio_bl_flash.o
|
2006-08-30 23:47:09 +00:00
|
|
|
descramble: descramble.o iriver.o gigabeat.o
|
2002-03-28 14:34:13 +00:00
|
|
|
|
2008-03-18 20:58:52 +00:00
|
|
|
scramble.o: scramble.c iriver.h mi4.h gigabeat.h telechips.h iaudio_bl_flash.h
|
2006-08-30 23:47:09 +00:00
|
|
|
descramble.o: descramble.c iriver.h gigabeat.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
|
2006-02-09 04:27:57 +00:00
|
|
|
$(SILENT)$(CC) -DAPPLICATION_NAME=\"$@\" -g $+ -o $@
|
2002-09-18 15:41:09 +00:00
|
|
|
|
2005-05-02 15:05:07 +00:00
|
|
|
rdf2binary: rdf2binary.c
|
2006-02-09 04:27:57 +00:00
|
|
|
$(SILENT)$(CC) -g $+ -o $@
|
2005-05-02 15:05:07 +00:00
|
|
|
|
2005-01-28 12:28:35 +00:00
|
|
|
mkboot: mkboot.c
|
2006-02-09 04:27:57 +00:00
|
|
|
$(SILENT)$(CC) -g $+ -o $@
|
2005-01-28 12:28:35 +00:00
|
|
|
|
2007-10-28 11:08:10 +00:00
|
|
|
mktccboot: mktccboot.c telechips.o
|
|
|
|
$(SILENT)$(CC) -g $+ -o $@
|
|
|
|
|
2007-11-11 12:08:06 +00:00
|
|
|
mknkboot: mknkboot.c
|
|
|
|
$(SILENT)$(CC) -g $+ -o $@
|
|
|
|
|
2007-08-10 22:06:58 +00:00
|
|
|
lngdump: lngdump.c
|
|
|
|
$(SILENT)$(CC) -g $+ -o $@
|
|
|
|
|
2005-11-11 17:58:05 +00:00
|
|
|
ipod_fw: ipod_fw.c
|
2006-02-09 04:27:57 +00:00
|
|
|
$(SILENT)$(CC) -g $+ -o $@
|
2005-11-11 17:58:05 +00:00
|
|
|
|
2006-11-10 08:03:33 +00:00
|
|
|
database: database.c ../apps/tagcache.c ../apps/metadata.c \
|
|
|
|
../firmware/id3.c ../firmware/common/unicode.c \
|
|
|
|
../firmware/common/crc32.c ../uisimulator/common/io.c \
|
2007-02-13 21:51:18 +00:00
|
|
|
../firmware/mp3data.c ../firmware/logf.c ../firmware/replaygain.c \
|
|
|
|
../firmware/common/structec.c
|
2006-11-10 08:03:33 +00:00
|
|
|
$(SILENT)$(CC) -g -I../firmware/export -iquote ../firmware/include \
|
2006-11-10 11:48:23 +00:00
|
|
|
-D__PCTOOL__ -DHAVE_TAGCACHE -DROCKBOX_HAS_LOGF -DSIMULATOR \
|
|
|
|
-DCONFIG_CODEC=1 -ldl -I../apps $+ -o $@
|
2006-11-10 08:03:33 +00:00
|
|
|
|
2007-05-29 19:00:36 +00:00
|
|
|
checkwps: checkwps.c ../apps/gui/wps_parser.c ../apps/gui/wps_debug.c ../firmware/common/ctype.c
|
|
|
|
$(SILENT)$(CC) -g -I ../apps/gui -I../firmware/export \
|
|
|
|
-D__PCTOOL__ -DDEBUG -DROCKBOX_HAS_LOGF -DIPOD_COLOR -D ROCKBOX_DIR_LEN=255 -D WPS_DIR=\".\" \
|
|
|
|
-I../apps -I../firmware/target/arm/ipod -I../firmware/include $+ -o $@
|
|
|
|
|
2002-09-18 15:41:09 +00:00
|
|
|
convbdf: convbdf.c
|
2006-02-09 04:27:57 +00:00
|
|
|
$(SILENT)$(CC) -g $+ -o $@
|
2002-08-16 14:03:24 +00:00
|
|
|
|
2005-12-06 15:04:48 +00:00
|
|
|
codepages: codepages.c codepage_tables.c
|
2006-02-09 04:27:57 +00:00
|
|
|
$(SILENT)$(CC) -g $+ -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
|
|
|
|
$(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
|
|
|
|
$(SILENT)$(CC) -g $+ -o $@
|
|
|
|
|
|
|
|
voicefont: voicefont.c
|
|
|
|
$(SILENT)$(CC) -g $+ -o $@
|
|
|
|
|
2007-11-22 20:51:00 +00:00
|
|
|
usb_benchmark: usb_benchmark.c
|
|
|
|
$(SILENT)$(CC) -g -lusb $+ -o $@
|
|
|
|
|
2002-03-28 14:42:55 +00:00
|
|
|
clean:
|
2006-02-09 04:27:57 +00:00
|
|
|
@echo "Cleaning tools"
|
|
|
|
$(SILENT)rm -f $(CLEANALL) $(shell for f in $(CLEANALL) ; do echo $$f.exe $$f.o $$f.obj ; done) *.ajf *~
|
|
|
|
$(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
|
|
|
|