2002-04-11 08:53:12 +00:00
|
|
|
# __________ __ ___.
|
|
|
|
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
# \/ \/ \/ \/ \/
|
|
|
|
#
|
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
|
|
|
|
|
2020-07-15 23:40:55 +00:00
|
|
|
CLEANALL := scramble descramble iriver bmp2rb rdf2binary convbdf \
|
2009-10-29 05:06:13 +00:00
|
|
|
generate_rocklatin mkboot ipod_fw codepages uclpack mi4 gigabeat lngdump \
|
2021-02-27 22:08:58 +00:00
|
|
|
telechips gigabeats creative hmac-sha1 rbspeexenc mkzenboot mk500boot \
|
|
|
|
convttf mkspl-x1000
|
2002-03-28 14:42:55 +00:00
|
|
|
|
2020-07-15 23:40:55 +00:00
|
|
|
all: scramble descramble rdf2binary mkboot mkzenboot convbdf codepages \
|
2021-02-27 22:08:58 +00:00
|
|
|
uclpack rbspeexenc voicefont mk500boot mkspl-x1000
|
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 \
|
2012-02-28 22:36:13 +00:00
|
|
|
iaudio_bl_flash.o creative.o hmac-sha1.o rkw.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 \
|
2012-02-28 22:36:13 +00:00
|
|
|
creative.h rkw.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
|
2012-02-28 22:36:13 +00:00
|
|
|
rkw.o: rkw.c rkw.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
|
|
|
|
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 $@
|
2011-03-08 22:54:38 +00:00
|
|
|
|
2008-08-27 20:32:12 +00:00
|
|
|
mkzenboot.o: mkzenboot.c
|
2013-10-21 22:17:06 +00:00
|
|
|
$(SILENT)$(CC) $(CFLAGS) -std=c99 -DSTANDALONE -c -o $@ $+
|
2008-08-27 20:32:12 +00:00
|
|
|
|
|
|
|
mkzenboot: mkzenboot.o hmac-sha1.o
|
2012-06-19 18:12:51 +00:00
|
|
|
$(SILENT)$(CC) $(LDFLAGS) $+ -lz -o $@
|
2008-08-27 20:32:12 +00:00
|
|
|
|
2021-02-27 22:08:58 +00:00
|
|
|
mkspl-x1000: mkspl-x1000.c
|
|
|
|
$(SILENT)$(CC) $(LDFLAGS) $+ -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
|
|
|
|
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
|
2012-06-19 18:12:51 +00:00
|
|
|
$(SILENT)$(CC) $(CFLAGS) $+ -lusb -o $@
|
2007-11-22 20:51:00 +00:00
|
|
|
|
2011-03-05 18:36:51 +00:00
|
|
|
convttf: convttf.c
|
|
|
|
$(call PRINTS,CC $(@F))
|
|
|
|
$(SILENT)$(CC) $(CFLAGS) -lm -std=c99 -O2 -Wall -g $+ -o $@ \
|
2021-02-21 03:55:32 +00:00
|
|
|
`pkg-config --cflags --libs freetype2`
|
2011-03-05 18:36:51 +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
|
|
|
|