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
16 @echo
"Run make in your build directory!"
18 scramble
: scramble.o iriver.o mi4.o gigabeat.o
19 descramble
: descramble.o iriver.o gigabeat.o
21 scramble.o
: scramble.c iriver.h mi4.h gigabeat.h
22 descramble.o
: descramble.c iriver.h gigabeat.h
23 iriver.o
: iriver.c iriver.h
24 gigabeat.o
: gigabeat.c gigabeat.h
30 $(SILENT
)$(CC
) -DAPPLICATION_NAME
=\"$@
\" -g
$+ -o
$@
32 rdf2binary
: rdf2binary.c
33 $(SILENT
)$(CC
) -g
$+ -o
$@
36 $(SILENT
)$(CC
) -g
$+ -o
$@
39 $(SILENT
)$(CC
) -g
$+ -o
$@
41 database
: database.c ..
/apps
/tagcache.c ..
/apps
/metadata.c \
42 ..
/firmware
/id3.c ..
/firmware
/common
/unicode.c \
43 ..
/firmware
/common
/crc32.c ..
/uisimulator
/common
/io.c \
44 ..
/firmware
/mp3data.c ..
/firmware
/logf.c ..
/firmware
/replaygain.c \
45 ..
/firmware
/common
/structec.c
46 $(SILENT
)$(CC
) -g
-I..
/firmware
/export -iquote ..
/firmware
/include \
47 -D__PCTOOL__
-DHAVE_TAGCACHE
-DROCKBOX_HAS_LOGF
-DSIMULATOR \
48 -DCONFIG_CODEC
=1 -ldl
-I..
/apps
$+ -o
$@
50 checkwps
: checkwps.c ..
/apps
/gui
/wps_parser.c ..
/apps
/gui
/wps_debug.c ..
/firmware
/common
/ctype.c
51 $(SILENT
)$(CC
) -g
-I ..
/apps
/gui
-I..
/firmware
/export \
52 -D__PCTOOL__
-DDEBUG
-DROCKBOX_HAS_LOGF
-DIPOD_COLOR
-D ROCKBOX_DIR_LEN
=255 -D WPS_DIR
=\".
\" \
53 -I..
/apps
-I..
/firmware
/target
/arm
/ipod
-I..
/firmware
/include $+ -o
$@
56 $(SILENT
)$(CC
) -g
$+ -o
$@
58 codepages
: codepages.c codepage_tables.c
59 $(SILENT
)$(CC
) -g
$+ -o
$@
61 player_unifont
: player_unifont.c ..
/firmware
/drivers
/lcd-charset-player.c
62 $(SILENT
)$(CC
) -DARCHOS_PLAYER
-D__PCTOOL__
-I..
/firmware
/export $+ -o
$@
65 $(SILENT
)$(MAKE
) -C ucl
68 $(SILENT
)$(CC
) -g
$+ -o
$@
70 voicefont
: voicefont.c
71 $(SILENT
)$(CC
) -g
$+ -o
$@
74 @echo
"Cleaning tools"
75 $(SILENT
)rm -f
$(CLEANALL
) $(shell for f in
$(CLEANALL
) ; do echo
$$f.exe
$$f.o
$$f.obj
; done
) *.ajf
*~
76 $(SILENT
)$(MAKE
) -C ucl
clean