summaryrefslogtreecommitdiffstats
path: root/tools/Makefile
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-04-10 21:17:57 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-04-10 21:17:57 +0000
commit1031a5731c49a24151f5f50dbe69a52ff5b08446 (patch)
treea92e5235ba5d7466a993eab99257bdd2e1b694cc /tools/Makefile
parentafecfe46f314e9b5ba1d5d1d98d3e521be5f00b0 (diff)
downloadrockbox-1031a5731c49a24151f5f50dbe69a52ff5b08446.tar.gz
rockbox-1031a5731c49a24151f5f50dbe69a52ff5b08446.tar.bz2
rockbox-1031a5731c49a24151f5f50dbe69a52ff5b08446.zip
make the compiles A LOT more picky and pedantic
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17061 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/Makefile')
-rw-r--r--tools/Makefile30
1 files changed, 15 insertions, 15 deletions
diff --git a/tools/Makefile b/tools/Makefile
index e43bf98f22..f2497291d9 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -6,7 +6,7 @@
# \/ \/ \/ \/ \/
# $Id$
#
-CFLAGS := -O -ansi -g
+CFLAGS := -O -g -W -Wall -Wshadow -pedantic
LDFLAGS := -g
.PHONY: rbspeexenc uclpack
@@ -37,45 +37,45 @@ iaudio_bl_flash.c iaudio_bl_flash.h: iaudio_bl_flash.bmp bmp2rb
sh2d: sh2d.c
bmp2rb: bmp2rb.c
- $(SILENT)$(CC) -DAPPLICATION_NAME=\"$@\" -g $+ -o $@
+ $(SILENT)$(CC) -DAPPLICATION_NAME=\"$@\" $(CFLAGS) $+ -o $@
rdf2binary: rdf2binary.c
- $(SILENT)$(CC) -g $+ -o $@
+ $(SILENT)$(CC) $(CFLAGS) $+ -o $@
mkboot: mkboot.c
- $(SILENT)$(CC) -g $+ -o $@
+ $(SILENT)$(CC) $(CFLAGS) $+ -o $@
mktccboot: mktccboot.c telechips.o
- $(SILENT)$(CC) -g $+ -o $@
+ $(SILENT)$(CC) $(CFLAGS) $+ -o $@
mknkboot: mknkboot.c
- $(SILENT)$(CC) -g $+ -o $@
+ $(SILENT)$(CC) $(CFLAGS) $+ -o $@
lngdump: lngdump.c
- $(SILENT)$(CC) -g $+ -o $@
+ $(SILENT)$(CC) $(CFLAGS) $+ -o $@
ipod_fw: ipod_fw.c
- $(SILENT)$(CC) -g $+ -o $@
+ $(SILENT)$(CC) $(CFLAGS) $+ -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 \
+ $(SILENT)$(CC) $(CFLAGS) -I../firmware/export -iquote ../firmware/include \
-D__PCTOOL__ -DHAVE_TAGCACHE -DROCKBOX_HAS_LOGF -DSIMULATOR \
-DCONFIG_CODEC=1 -ldl -I../apps $+ -o $@
checkwps: checkwps.c ../apps/gui/wps_parser.c ../apps/gui/wps_debug.c ../firmware/common/ctype.c ../apps/misc.c ../apps/recorder/bmp.c
- $(SILENT)$(CC) -g -I ../apps/gui -I../firmware/export \
+ $(SILENT)$(CC) $(CFLAGS) -I ../apps/gui -I../firmware/export \
-D__PCTOOL__ -DDEBUG -DROCKBOX_HAS_LOGF -DIPOD_COLOR -D ROCKBOX_DIR_LEN -D WPS_DIR=\".\" \
-I../apps -I../firmware/target/arm/ipod -I../firmware/include $+ -o $@
convbdf: convbdf.c
- $(SILENT)$(CC) -g $+ -o $@
+ $(SILENT)$(CC) $(CFLAGS) $+ -o $@
codepages: codepages.c codepage_tables.c
- $(SILENT)$(CC) -g $+ -o $@
+ $(SILENT)$(CC) $(CFLAGS) $+ -o $@
player_unifont: player_unifont.c ../firmware/drivers/lcd-charset-player.c
$(SILENT)$(CC) -DARCHOS_PLAYER -D__PCTOOL__ -I../firmware/export $+ -o $@
@@ -87,13 +87,13 @@ rbspeexenc:
$(SILENT)$(MAKE) -C rbspeex
wavtrim: wavtrim.c
- $(SILENT)$(CC) -g $+ -o $@
+ $(SILENT)$(CC) $(CFLAGS) $+ -o $@
voicefont: voicefont.c
- $(SILENT)$(CC) -g $+ -o $@
+ $(SILENT)$(CC) $(CFLAGS) $+ -o $@
usb_benchmark: usb_benchmark.c
- $(SILENT)$(CC) -g -lusb $+ -o $@
+ $(SILENT)$(CC) $(CFLAGS) -lusb $+ -o $@
clean:
@echo "Cleaning tools"