Make skin engine and tokens parser "struct mp3entry *id3=NULL" safe, so that skins...
[kugel-rb.git] / tools / tools.make
blobd17212756ea9e4ca79a1fa21bb3d10faf18dd1cd
1 # __________ __ ___.
2 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6 # \/ \/ \/ \/ \/
7 # $Id$
10 TOOLSCFLAGS := -O -g -W -Wall -Wshadow -pedantic -I$(ROOTDIR)/tools
12 $(TOOLSDIR)/scramble: $(TOOLSDIR)/scramble.c $(TOOLSDIR)/iriver.c \
13 $(TOOLSDIR)/mi4.c $(TOOLSDIR)/gigabeat.c \
14 $(TOOLSDIR)/gigabeats.c $(TOOLSDIR)/telechips.c \
15 $(TOOLSDIR)/iaudio_bl_flash.c \
16 $(TOOLSDIR)/creative.c $(TOOLSDIR)/hmac-sha1.c
17 $(TOOLSDIR)/rdf2binary: $(TOOLSDIR)/rdf2binary.c
18 $(TOOLSDIR)/convbdf: $(TOOLSDIR)/convbdf.c
19 $(TOOLSDIR)/codepages: $(TOOLSDIR)/codepages.c $(TOOLSDIR)/codepage_tables.c
20 $(TOOLSDIR)/mkboot: $(TOOLSDIR)/mkboot.c
21 $(TOOLSDIR)/mktccboot: $(TOOLSDIR)/mktccboot.c $(TOOLSDIR)/telechips.c
22 $(TOOLSDIR)/wavtrim: $(TOOLSDIR)/wavtrim.c
23 $(TOOLSDIR)/voicefont: $(TOOLSDIR)/voicefont.c
25 $(TOOLSDIR)/iaudio_bl_flash.c $(TOOLSDIR)/iaudio_bl_flash.h: $(TOOLSDIR)/iaudio_bl_flash.bmp $(TOOLSDIR)/bmp2rb
26 $(call PRINTS,BMP2RB $(@F))
27 $(SILENT)$(TOOLSDIR)/bmp2rb -f 7 -h $(TOOLSDIR) $< >$(TOOLSDIR)/iaudio_bl_flash.c
29 $(TOOLSDIR)/bmp2rb: $(TOOLSDIR)/bmp2rb.c
30 $(call PRINTS,CC $(@F))
31 $(SILENT)$(HOSTCC) -DAPPLICATION_NAME=\"$@\" $(TOOLSCFLAGS) $+ -o $@
33 $(TOOLSDIR)/uclpack: $(TOOLSDIR)/ucl/uclpack.c $(wildcard $(TOOLSDIR)/ucl/src/*.c)
34 $(call PRINTS,CC $(@F))$(HOSTCC) $(TOOLSCFLAGS) -I$(TOOLSDIR)/ucl \
35 -I$(TOOLSDIR)/ucl/include -o $@ $^
37 $(TOOLSDIR)/convttf: $(TOOLSDIR)/convttf.c
38 $(call PRINTS,CC $(@F))
39 $(SILENT)$(HOSTCC) $(TOOLSFLAGS) -std=gnu89 -O -Wall -g $+ -o $@ \
40 `freetype-config --libs` `freetype-config --cflags`
42 # implicit rule for simple tools
43 $(TOOLSDIR)/%: $(TOOLSDIR)/%.c
44 $(call PRINTS,CC $(subst $(ROOTDIR)/,,$@))
45 $(SILENT)$(HOSTCC) $(TOOLSCFLAGS) -o $@ $^