2008-11-20 11:27:31 +00:00
|
|
|
# __________ __ ___.
|
|
|
|
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
# \/ \/ \/ \/ \/
|
2008-11-25 19:54:23 +00:00
|
|
|
# $Id$
|
2008-11-20 11:27:31 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
TOOLSCFLAGS := -O -g -W -Wall -Wshadow -pedantic -I$(ROOTDIR)/tools
|
|
|
|
|
|
|
|
$(TOOLSDIR)/scramble: $(TOOLSDIR)/scramble.c $(TOOLSDIR)/iriver.c \
|
|
|
|
$(TOOLSDIR)/mi4.c $(TOOLSDIR)/gigabeat.c \
|
|
|
|
$(TOOLSDIR)/gigabeats.c $(TOOLSDIR)/telechips.c \
|
|
|
|
$(TOOLSDIR)/iaudio_bl_flash.c \
|
2012-02-28 22:36:13 +00:00
|
|
|
$(TOOLSDIR)/creative.c $(TOOLSDIR)/hmac-sha1.c \
|
|
|
|
$(TOOLSDIR)/rkw.c
|
|
|
|
|
2008-11-20 11:27:31 +00:00
|
|
|
$(TOOLSDIR)/rdf2binary: $(TOOLSDIR)/rdf2binary.c
|
|
|
|
$(TOOLSDIR)/convbdf: $(TOOLSDIR)/convbdf.c
|
|
|
|
$(TOOLSDIR)/codepages: $(TOOLSDIR)/codepages.c $(TOOLSDIR)/codepage_tables.c
|
|
|
|
$(TOOLSDIR)/mkboot: $(TOOLSDIR)/mkboot.c
|
|
|
|
$(TOOLSDIR)/wavtrim: $(TOOLSDIR)/wavtrim.c
|
|
|
|
$(TOOLSDIR)/voicefont: $(TOOLSDIR)/voicefont.c
|
|
|
|
|
|
|
|
$(TOOLSDIR)/iaudio_bl_flash.c $(TOOLSDIR)/iaudio_bl_flash.h: $(TOOLSDIR)/iaudio_bl_flash.bmp $(TOOLSDIR)/bmp2rb
|
|
|
|
$(call PRINTS,BMP2RB $(@F))
|
|
|
|
$(SILENT)$(TOOLSDIR)/bmp2rb -f 7 -h $(TOOLSDIR) $< >$(TOOLSDIR)/iaudio_bl_flash.c
|
|
|
|
|
|
|
|
$(TOOLSDIR)/bmp2rb: $(TOOLSDIR)/bmp2rb.c
|
|
|
|
$(call PRINTS,CC $(@F))
|
|
|
|
$(SILENT)$(HOSTCC) -DAPPLICATION_NAME=\"$@\" $(TOOLSCFLAGS) $+ -o $@
|
|
|
|
|
|
|
|
$(TOOLSDIR)/uclpack: $(TOOLSDIR)/ucl/uclpack.c $(wildcard $(TOOLSDIR)/ucl/src/*.c)
|
|
|
|
$(call PRINTS,CC $(@F))$(HOSTCC) $(TOOLSCFLAGS) -I$(TOOLSDIR)/ucl \
|
|
|
|
-I$(TOOLSDIR)/ucl/include -o $@ $^
|
|
|
|
|
2011-03-05 18:36:51 +00:00
|
|
|
$(TOOLSDIR)/convttf: $(TOOLSDIR)/convttf.c
|
|
|
|
$(call PRINTS,CC $(@F))
|
|
|
|
$(SILENT)$(HOSTCC) $(TOOLSFLAGS) -lm -O2 -Wall -g $+ -o $@ \
|
|
|
|
`freetype-config --libs` `freetype-config --cflags`
|
|
|
|
|
2012-05-18 21:24:57 +00:00
|
|
|
$(TOOLSDIR)/player_unifont: $(TOOLSDIR)/player_unifont.c $(ROOTDIR)/firmware/drivers/lcd-charset-player.c
|
|
|
|
$(call PRINTS,CC $(@F))
|
|
|
|
$(SILENT)$(HOSTCC) $(TOOLSFLAGS) -DARCHOS_PLAYER -D__PCTOOL__ -I$(ROOTDIR)/firmware/export -I. $+ -o $@
|
|
|
|
|
2008-11-20 11:27:31 +00:00
|
|
|
# implicit rule for simple tools
|
|
|
|
$(TOOLSDIR)/%: $(TOOLSDIR)/%.c
|
|
|
|
$(call PRINTS,CC $(subst $(ROOTDIR)/,,$@))
|
|
|
|
$(SILENT)$(HOSTCC) $(TOOLSCFLAGS) -o $@ $^
|