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
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
$@
42 $(SILENT
)$(CC
) -g
$+ -o
$@
44 codepages
: codepages.c codepage_tables.c
45 $(SILENT
)$(CC
) -g
$+ -o
$@
47 generate_rocklatin
: generate_rocklatin.c ..
/firmware
/drivers
/lcd-player-charset.c
48 $(SILENT
)$(CC
) -DHAVE_LCD_CHARCELLS
-D__CONFIG_H__
-I..
/firmware
/export $+ -o
$@
51 $(SILENT
)$(MAKE
) -C ucl
54 @echo
"Cleaning tools"
55 $(SILENT
)rm -f
$(CLEANALL
) $(shell for f in
$(CLEANALL
) ; do echo
$$f.exe
$$f.o
$$f.obj
; done
) *.ajf
*~
56 $(SILENT
)$(MAKE
) -C ucl
clean