Change "reboot" to "hard reset" in the Ipod installation as discussed on IRC.
[kugel-rb.git] / tools / Makefile
blob6351e5bec40e59d3963644d37f958fb601ecf925
1 # __________ __ ___.
2 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6 # \/ \/ \/ \/ \/
7 # $Id$
9 CFLAGS := -O -ansi -g
10 LDFLAGS := -g
12 .PHONY: rbspeexenc uclpack
14 CLEANALL := scramble descramble iriver sh2d bmp2rb rdf2binary convbdf \
15 generate_rocklatin mkboot ipod_fw codepages uclpack mi4 gigabeat database \
16 lngdump telechips gigabeats mktccboot mknkboot rbspeexenc
18 all:
19 @echo "Run make in your build directory!"
21 scramble: scramble.o iriver.o mi4.o gigabeat.o gigabeats.o telechips.o iaudio_bl_flash.o
22 descramble: descramble.o iriver.o gigabeat.o
24 scramble.o: scramble.c iriver.h mi4.h gigabeat.h telechips.h iaudio_bl_flash.h
25 descramble.o: descramble.c iriver.h gigabeat.h
26 iriver.o: iriver.c iriver.h
27 gigabeat.o: gigabeat.c gigabeat.h
28 gigabeats.o: gigabeats.c gigabeats.h
29 mi4.o: mi4.c mi4.h
30 telechips.o: telechips.c telechips.h
31 iaudio_bl_flash.o: iaudio_bl_flash.c iaudio_bl_flash.h
32 iaudio_bl_flash.c iaudio_bl_flash.h: iaudio_bl_flash.bmp bmp2rb
33 $(SILENT)./bmp2rb -f 7 -h . $< >iaudio_bl_flash.c
35 sh2d: sh2d.c
37 bmp2rb: bmp2rb.c
38 $(SILENT)$(CC) -DAPPLICATION_NAME=\"$@\" -g $+ -o $@
40 rdf2binary: rdf2binary.c
41 $(SILENT)$(CC) -g $+ -o $@
43 mkboot: mkboot.c
44 $(SILENT)$(CC) -g $+ -o $@
46 mktccboot: mktccboot.c telechips.o
47 $(SILENT)$(CC) -g $+ -o $@
49 mknkboot: mknkboot.c
50 $(SILENT)$(CC) -g $+ -o $@
52 lngdump: lngdump.c
53 $(SILENT)$(CC) -g $+ -o $@
55 ipod_fw: ipod_fw.c
56 $(SILENT)$(CC) -g $+ -o $@
58 database: database.c ../apps/tagcache.c ../apps/metadata.c \
59 ../firmware/id3.c ../firmware/common/unicode.c \
60 ../firmware/common/crc32.c ../uisimulator/common/io.c \
61 ../firmware/mp3data.c ../firmware/logf.c ../firmware/replaygain.c \
62 ../firmware/common/structec.c
63 $(SILENT)$(CC) -g -I../firmware/export -iquote ../firmware/include \
64 -D__PCTOOL__ -DHAVE_TAGCACHE -DROCKBOX_HAS_LOGF -DSIMULATOR \
65 -DCONFIG_CODEC=1 -ldl -I../apps $+ -o $@
67 checkwps: checkwps.c ../apps/gui/wps_parser.c ../apps/gui/wps_debug.c ../firmware/common/ctype.c
68 $(SILENT)$(CC) -g -I ../apps/gui -I../firmware/export \
69 -D__PCTOOL__ -DDEBUG -DROCKBOX_HAS_LOGF -DIPOD_COLOR -D ROCKBOX_DIR_LEN=255 -D WPS_DIR=\".\" \
70 -I../apps -I../firmware/target/arm/ipod -I../firmware/include $+ -o $@
72 convbdf: convbdf.c
73 $(SILENT)$(CC) -g $+ -o $@
75 codepages: codepages.c codepage_tables.c
76 $(SILENT)$(CC) -g $+ -o $@
78 player_unifont: player_unifont.c ../firmware/drivers/lcd-charset-player.c
79 $(SILENT)$(CC) -DARCHOS_PLAYER -D__PCTOOL__ -I../firmware/export $+ -o $@
81 uclpack:
82 $(SILENT)$(MAKE) -C ucl
84 rbspeexenc:
85 $(SILENT)$(MAKE) -C rbspeex
87 wavtrim: wavtrim.c
88 $(SILENT)$(CC) -g $+ -o $@
90 voicefont: voicefont.c
91 $(SILENT)$(CC) -g $+ -o $@
93 usb_benchmark: usb_benchmark.c
94 $(SILENT)$(CC) -g -lusb $+ -o $@
96 clean:
97 @echo "Cleaning tools"
98 $(SILENT)rm -f $(CLEANALL) $(shell for f in $(CLEANALL) ; do echo $$f.exe $$f.o $$f.obj ; done) *.ajf *~
99 $(SILENT)$(MAKE) -C ucl clean
100 $(SILENT)$(MAKE) -C rbspeex clean