Make skin engine and tokens parser "struct mp3entry *id3=NULL" safe, so that skins...
[kugel-rb.git] / tools / Makefile
blob564293b1f04bd51b68a949a11441f158195f642f
1 # __________ __ ___.
2 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6 # \/ \/ \/ \/ \/
7 # $Id$
9 CFLAGS := -O -g -W -Wall -Wshadow -pedantic
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 \
16 lngdump telechips gigabeats creative hmac-sha1 mktccboot mknkboot rbspeexenc \
17 mkzenboot convttf
19 all: scramble descramble sh2d rdf2binary mkboot mktccboot mknkboot mkzenboot \
20 convbdf codepages uclpack rbspeexenc voicefont convttf
22 scramble: scramble.o iriver.o mi4.o gigabeat.o gigabeats.o telechips.o iaudio_bl_flash.o creative.o hmac-sha1.o
23 descramble: descramble.o iriver.o gigabeat.o
24 scramble.o: scramble.c iriver.h mi4.h gigabeat.h telechips.h iaudio_bl_flash.h creative.h
26 descramble.o: descramble.c iriver.h gigabeat.h
27 creative.o: creative.c creative.h
28 hmac-sha1.o: hmac-sha1.c hmac-sha1.h
29 iriver.o: iriver.c iriver.h
30 gigabeat.o: gigabeat.c gigabeat.h
31 gigabeats.o: gigabeats.c gigabeats.h
32 mi4.o: mi4.c mi4.h
33 telechips.o: telechips.c telechips.h
34 iaudio_bl_flash.o: iaudio_bl_flash.c iaudio_bl_flash.h
35 iaudio_bl_flash.c iaudio_bl_flash.h: iaudio_bl_flash.bmp bmp2rb
36 $(SILENT)./bmp2rb -f 7 -h . $< >iaudio_bl_flash.c
38 sh2d: sh2d.c
40 bmp2rb: bmp2rb.c
41 $(SILENT)$(CC) -DAPPLICATION_NAME=\"$@\" $(CFLAGS) $+ -o $@
43 rdf2binary: rdf2binary.c
44 $(SILENT)$(CC) $(CFLAGS) $+ -o $@
46 mkboot: mkboot.c
47 $(SILENT)$(CC) $(CFLAGS) $+ -o $@
49 mktccboot: mktccboot.c telechips.o
50 $(SILENT)$(CC) $(CFLAGS) $+ -o $@
52 mknkboot: mknkboot.c
53 $(SILENT)$(CC) $(CFLAGS) $+ -o $@
55 mkzenboot.o: mkzenboot.c
56 $(SILENT)$(CC) $(CFLAGS) -DSTANDALONE -c -o $@ $+
58 mkzenboot: mkzenboot.o hmac-sha1.o
59 $(SILENT)$(CC) $(LDFLAGS) -lz $+ -o $@
61 mkzenboot.exe: mkzenboot.o hmac-sha1.o
62 $(SILENT)$(CC) $(LDFLAGS) -lz $+ C:\MingW\lib\libz.a -o $@
64 lngdump: lngdump.c
65 $(SILENT)$(CC) $(CFLAGS) $+ -o $@
67 ipod_fw: ipod_fw.c
68 $(SILENT)$(CC) $(CFLAGS) $+ -o $@
70 checkwps: checkwps.c ../apps/gui/wps_parser.c ../apps/gui/wps_debug.c ../firmware/common/ctype.c ../apps/misc.c ../apps/recorder/bmp.c
71 $(SILENT)$(CC) $(CFLAGS) -I ../apps/gui -I../firmware/export \
72 -D__PCTOOL__ -DDEBUG -DROCKBOX_HAS_LOGF -DIPOD_COLOR -D ROCKBOX_DIR_LEN -D WPS_DIR=\".\" \
73 -I../apps -I../firmware/target/arm/ipod -I../firmware/include $+ -o $@
75 convbdf: convbdf.c
76 $(SILENT)$(CC) $(CFLAGS) $+ -o $@
78 codepages: codepages.c codepage_tables.c
79 $(SILENT)$(CC) $(CFLAGS) $+ -o $@
81 player_unifont: player_unifont.c ../firmware/drivers/lcd-charset-player.c
82 $(SILENT)$(CC) -DARCHOS_PLAYER -D__PCTOOL__ -I../firmware/export $+ -o $@
84 uclpack:
85 $(SILENT)$(MAKE) -C ucl
87 rbspeexenc:
88 $(SILENT)$(MAKE) -C rbspeex
90 wavtrim: wavtrim.c
91 $(SILENT)$(CC) $(CFLAGS) $+ -o $@
93 voicefont: voicefont.c
94 $(SILENT)$(CC) $(CFLAGS) $+ -o $@
96 usb_benchmark: usb_benchmark.c
97 $(SILENT)$(CC) $(CFLAGS) -lusb $+ -o $@
99 convttf: convttf.c
100 $(call PRINTS,CC $(@F))
101 $(SILENT)$(CC) $(CFLAGS) -std=gnu89 -O -Wall -g $+ -o $@ \
102 `freetype-config --libs` `freetype-config --cflags`
103 clean:
104 @echo "Cleaning tools"
105 $(SILENT)rm -f $(CLEANALL) $(shell for f in $(CLEANALL) ; do echo $$f.exe $$f.o $$f.obj ; done) *.ajf *~
106 $(SILENT)$(MAKE) -C ucl clean
107 $(SILENT)$(MAKE) -C rbspeex clean