2 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
12 CLEANALL
:= scramble descramble iriver sh2d bmp2rb rdf2binary convbdf \
13 generate_rocklatin mkboot ipod_fw codepages uclpack mi4 gigabeat database \
17 @echo
"Run make in your build directory!"
19 scramble
: scramble.o iriver.o mi4.o gigabeat.o
20 descramble
: descramble.o iriver.o gigabeat.o
22 scramble.o
: scramble.c iriver.h mi4.h gigabeat.h
23 descramble.o
: descramble.c iriver.h gigabeat.h
24 iriver.o
: iriver.c iriver.h
25 gigabeat.o
: gigabeat.c gigabeat.h
31 $(SILENT
)$(CC
) -DAPPLICATION_NAME
=\"$@
\" -g
$+ -o
$@
33 rdf2binary
: rdf2binary.c
34 $(SILENT
)$(CC
) -g
$+ -o
$@
37 $(SILENT
)$(CC
) -g
$+ -o
$@
40 $(SILENT
)$(CC
) -g
$+ -o
$@
43 $(SILENT
)$(CC
) -g
$+ -o
$@
45 database
: database.c ..
/apps
/tagcache.c ..
/apps
/metadata.c \
46 ..
/firmware
/id3.c ..
/firmware
/common
/unicode.c \
47 ..
/firmware
/common
/crc32.c ..
/uisimulator
/common
/io.c \
48 ..
/firmware
/mp3data.c ..
/firmware
/logf.c ..
/firmware
/replaygain.c \
49 ..
/firmware
/common
/structec.c
50 $(SILENT
)$(CC
) -g
-I..
/firmware
/export -iquote ..
/firmware
/include \
51 -D__PCTOOL__
-DHAVE_TAGCACHE
-DROCKBOX_HAS_LOGF
-DSIMULATOR \
52 -DCONFIG_CODEC
=1 -ldl
-I..
/apps
$+ -o
$@
54 checkwps
: checkwps.c ..
/apps
/gui
/wps_parser.c ..
/apps
/gui
/wps_debug.c ..
/firmware
/common
/ctype.c
55 $(SILENT
)$(CC
) -g
-I ..
/apps
/gui
-I..
/firmware
/export \
56 -D__PCTOOL__
-DDEBUG
-DROCKBOX_HAS_LOGF
-DIPOD_COLOR
-D ROCKBOX_DIR_LEN
=255 -D WPS_DIR
=\".
\" \
57 -I..
/apps
-I..
/firmware
/target
/arm
/ipod
-I..
/firmware
/include $+ -o
$@
60 $(SILENT
)$(CC
) -g
$+ -o
$@
62 codepages
: codepages.c codepage_tables.c
63 $(SILENT
)$(CC
) -g
$+ -o
$@
65 player_unifont
: player_unifont.c ..
/firmware
/drivers
/lcd-charset-player.c
66 $(SILENT
)$(CC
) -DARCHOS_PLAYER
-D__PCTOOL__
-I..
/firmware
/export $+ -o
$@
69 $(SILENT
)$(MAKE
) -C ucl
72 $(SILENT
)$(CC
) -g
$+ -o
$@
74 voicefont
: voicefont.c
75 $(SILENT
)$(CC
) -g
$+ -o
$@
78 @echo
"Cleaning tools"
79 $(SILENT
)rm -f
$(CLEANALL
) $(shell for f in
$(CLEANALL
) ; do echo
$$f.exe
$$f.o
$$f.obj
; done
) *.ajf
*~
80 $(SILENT
)$(MAKE
) -C ucl
clean