2 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
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
19 @echo
"Run make in your build directory!"
21 scramble
: scramble.o iriver.o mi4.o gigabeat.o gigabeats.o telechips.o
22 descramble
: descramble.o iriver.o gigabeat.o
24 scramble.o
: scramble.c iriver.h mi4.h gigabeat.h telechips.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
30 telechips.o
: telechips.c telechips.h
35 $(SILENT
)$(CC
) -DAPPLICATION_NAME
=\"$@
\" -g
$+ -o
$@
37 rdf2binary
: rdf2binary.c
38 $(SILENT
)$(CC
) -g
$+ -o
$@
41 $(SILENT
)$(CC
) -g
$+ -o
$@
43 mktccboot
: mktccboot.c telechips.o
44 $(SILENT
)$(CC
) -g
$+ -o
$@
47 $(SILENT
)$(CC
) -g
$+ -o
$@
50 $(SILENT
)$(CC
) -g
$+ -o
$@
53 $(SILENT
)$(CC
) -g
$+ -o
$@
55 database
: database.c ..
/apps
/tagcache.c ..
/apps
/metadata.c \
56 ..
/firmware
/id3.c ..
/firmware
/common
/unicode.c \
57 ..
/firmware
/common
/crc32.c ..
/uisimulator
/common
/io.c \
58 ..
/firmware
/mp3data.c ..
/firmware
/logf.c ..
/firmware
/replaygain.c \
59 ..
/firmware
/common
/structec.c
60 $(SILENT
)$(CC
) -g
-I..
/firmware
/export -iquote ..
/firmware
/include \
61 -D__PCTOOL__
-DHAVE_TAGCACHE
-DROCKBOX_HAS_LOGF
-DSIMULATOR \
62 -DCONFIG_CODEC
=1 -ldl
-I..
/apps
$+ -o
$@
64 checkwps
: checkwps.c ..
/apps
/gui
/wps_parser.c ..
/apps
/gui
/wps_debug.c ..
/firmware
/common
/ctype.c
65 $(SILENT
)$(CC
) -g
-I ..
/apps
/gui
-I..
/firmware
/export \
66 -D__PCTOOL__
-DDEBUG
-DROCKBOX_HAS_LOGF
-DIPOD_COLOR
-D ROCKBOX_DIR_LEN
=255 -D WPS_DIR
=\".
\" \
67 -I..
/apps
-I..
/firmware
/target
/arm
/ipod
-I..
/firmware
/include $+ -o
$@
70 $(SILENT
)$(CC
) -g
$+ -o
$@
72 codepages
: codepages.c codepage_tables.c
73 $(SILENT
)$(CC
) -g
$+ -o
$@
75 player_unifont
: player_unifont.c ..
/firmware
/drivers
/lcd-charset-player.c
76 $(SILENT
)$(CC
) -DARCHOS_PLAYER
-D__PCTOOL__
-I..
/firmware
/export $+ -o
$@
79 $(SILENT
)$(MAKE
) -C ucl
82 $(SILENT
)$(MAKE
) -C rbspeex
85 $(SILENT
)$(CC
) -g
$+ -o
$@
87 voicefont
: voicefont.c
88 $(SILENT
)$(CC
) -g
$+ -o
$@
90 usb_benchmark
: usb_benchmark.c
91 $(SILENT
)$(CC
) -g
-lusb
$+ -o
$@
94 @echo
"Cleaning tools"
95 $(SILENT
)rm -f
$(CLEANALL
) $(shell for f in
$(CLEANALL
) ; do echo
$$f.exe
$$f.o
$$f.obj
; done
) *.ajf
*~
96 $(SILENT
)$(MAKE
) -C ucl
clean
97 $(SILENT
)$(MAKE
) -C rbspeex
clean