blob: a25447c20ee21fc0988fd3cc33afca839bb1a53a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# __________ __ ___.
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
# \/ \/ \/ \/ \/
# $Id$
#
CFLAGS := -O -ansi -g
LDFLAGS := -g
CLEANALL := scramble descramble iriver sh2d bmp2rb rdf2binary convbdf \
generate_rocklatin mkboot ipod_fw codepages uclpack mi4 gigabeat database
all:
@echo "Run make in your build directory!"
scramble: scramble.o iriver.o mi4.o gigabeat.o
descramble: descramble.o iriver.o gigabeat.o
scramble.o: scramble.c iriver.h mi4.h gigabeat.h
descramble.o: descramble.c iriver.h gigabeat.h
iriver.o: iriver.c iriver.h
gigabeat.o: gigabeat.c gigabeat.h
mi4.o: mi4.c mi4.h
sh2d: sh2d.c
bmp2rb: bmp2rb.c
$(SILENT)$(CC) -DAPPLICATION_NAME=\"$@\" -g $+ -o $@
rdf2binary: rdf2binary.c
$(SILENT)$(CC) -g $+ -o $@
mkboot: mkboot.c
$(SILENT)$(CC) -g $+ -o $@
ipod_fw: ipod_fw.c
$(SILENT)$(CC) -g $+ -o $@
database: database.c ../apps/tagcache.c ../apps/metadata.c \
../firmware/id3.c ../firmware/common/unicode.c \
../firmware/common/crc32.c ../uisimulator/common/io.c \
../firmware/mp3data.c ../firmware/logf.c ../firmware/replaygain.c \
../firmware/common/structec.c
$(SILENT)$(CC) -g -I../firmware/export -iquote ../firmware/include \
-D__PCTOOL__ -DHAVE_TAGCACHE -DROCKBOX_HAS_LOGF -DSIMULATOR \
-DCONFIG_CODEC=1 -ldl -I../apps $+ -o $@
convbdf: convbdf.c
$(SILENT)$(CC) -g $+ -o $@
codepages: codepages.c codepage_tables.c
$(SILENT)$(CC) -g $+ -o $@
player_unifont: player_unifont.c ../firmware/drivers/lcd-charset-player.c
$(SILENT)$(CC) -DARCHOS_PLAYER -D__PCTOOL__ -I../firmware/export $+ -o $@
uclpack:
$(SILENT)$(MAKE) -C ucl
wavtrim: wavtrim.c
$(SILENT)$(CC) -g $+ -o $@
voicefont: voicefont.c
$(SILENT)$(CC) -g $+ -o $@
clean:
@echo "Cleaning tools"
$(SILENT)rm -f $(CLEANALL) $(shell for f in $(CLEANALL) ; do echo $$f.exe $$f.o $$f.obj ; done) *.ajf *~
$(SILENT)$(MAKE) -C ucl clean
|