Accept both 0x0b and 0x0c as valid FAT32 partition types in the partition table
[Rockbox.git] / tools / Makefile
blobb7f445ebf6947a8e87df074705559ffcfabdc069
1 # __________ __ ___.
2 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6 # \/ \/ \/ \/ \/
7 # $Id$
9 CFLAGS := -O -ansi -g
10 LDFLAGS := -g
12 CLEANALL := scramble descramble iriver sh2d bmp2rb rdf2binary convbdf \
13 generate_rocklatin mkboot ipod_fw codepages uclpack mi4 gigabeat database \
14 lngdump
16 all:
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
26 mi4.o: mi4.c mi4.h
28 sh2d: sh2d.c
30 bmp2rb: bmp2rb.c
31 $(SILENT)$(CC) -DAPPLICATION_NAME=\"$@\" -g $+ -o $@
33 rdf2binary: rdf2binary.c
34 $(SILENT)$(CC) -g $+ -o $@
36 mkboot: mkboot.c
37 $(SILENT)$(CC) -g $+ -o $@
39 lngdump: lngdump.c
40 $(SILENT)$(CC) -g $+ -o $@
42 ipod_fw: ipod_fw.c
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 $@
59 convbdf: convbdf.c
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 $@
68 uclpack:
69 $(SILENT)$(MAKE) -C ucl
71 wavtrim: wavtrim.c
72 $(SILENT)$(CC) -g $+ -o $@
74 voicefont: voicefont.c
75 $(SILENT)$(CC) -g $+ -o $@
77 clean:
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