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
|
|
|
|
2006-03-27 08:23:00 +00:00
|
|
|
CLEANALL := scramble descramble iriver sh2d bmp2rb rdf2binary convbdf \
|
2006-11-10 08:03:33 +00:00
|
|
|
generate_rocklatin mkboot ipod_fw codepages uclpack mi4 gigabeat database
|
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
|
|
|
|
2006-08-30 23:47:09 +00:00
|
|
|
scramble: scramble.o iriver.o mi4.o gigabeat.o
|
|
|
|
descramble: descramble.o iriver.o gigabeat.o
|
2002-03-28 14:34:13 +00:00
|
|
|
|
2006-08-30 23:47:09 +00:00
|
|
|
scramble.o: scramble.c iriver.h mi4.h gigabeat.h
|
|
|
|
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
|
2006-08-30 23:17:04 +00:00
|
|
|
mi4.o: mi4.c mi4.h
|
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
|
|
|
|
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
|
|
|
|
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
|
|
|
|
2006-11-03 21:47:52 +00:00
|
|
|
wavtrim: wavtrim.c
|
|
|
|
$(SILENT)$(CC) -g $+ -o $@
|
|
|
|
|
|
|
|
voicefont: voicefont.c
|
|
|
|
$(SILENT)$(CC) -g $+ -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
|
2002-08-11 09:17:47 +00:00
|
|
|
|