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-01 23:40:55 +00:00
|
|
|
CLEANALL := scramble descramble iriver iaudio sh2d bmp2rb rdf2binary convbdf \
|
2005-12-06 13:27:15 +00:00
|
|
|
generate_rocklatin mkboot ipod_fw codepages uclpack
|
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
|
|
|
|
2005-01-24 09:01:48 +00:00
|
|
|
scramble: scramble.o iriver.o
|
|
|
|
descramble: descramble.o iriver.o
|
2005-07-15 16:37:50 +00:00
|
|
|
iaudio: iaudio.o
|
2002-03-28 14:34:13 +00:00
|
|
|
|
2005-01-24 09:01:48 +00:00
|
|
|
scramble.o: scramble.c iriver.h
|
|
|
|
descramble.o: descramble.c iriver.h
|
|
|
|
iriver.o: iriver.c iriver.h
|
2005-07-15 16:37:50 +00:00
|
|
|
iaudio.o: iaudio.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
|
|
|
|
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
|
|
|
|
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
|
|
|
|
2003-01-10 10:05:32 +00:00
|
|
|
generate_rocklatin: generate_rocklatin.c ../firmware/drivers/lcd-player-charset.c
|
2006-02-09 04:27:57 +00:00
|
|
|
$(SILENT)$(CC) -DHAVE_LCD_CHARCELLS -D__CONFIG_H__ -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
|
|
|
|
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
|
|
|
|