From 78d29f535ff14a5f213125baf63fa2961be17d79 Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Wed, 26 Mar 2008 23:35:34 +0000 Subject: Major cleanup of checkwps - fix all warnings and add a script to build versions for all supported targets (plus some unsupported ones). You now need to run the version of checkwps that matches the device your WPS is for. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16831 a1c6a512-1295-4272-9138-f99709370657 --- tools/checkwps/Makefile | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) (limited to 'tools/checkwps/Makefile') diff --git a/tools/checkwps/Makefile b/tools/checkwps/Makefile index 70b6e0a963..069b1e4334 100644 --- a/tools/checkwps/Makefile +++ b/tools/checkwps/Makefile @@ -7,12 +7,25 @@ # $Id$ # -all: checkwps +ROOT=../.. -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 \ --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 $@ +COMMON=$(ROOT)/apps/gui/wps_parser.c \ + $(ROOT)/apps/gui/wps_debug.c \ + $(ROOT)/apps/misc.c \ + $(ROOT)/apps/recorder/bmp.c + +INCLUDE=-I $(ROOT)/apps/gui \ + -I $(ROOT)/firmware/export \ + -I $(ROOT)/apps \ + -I . + +CFLAGS = -g -D__PCTOOL__ -DDEBUG -DROCKBOX_DIR_LEN=9 -DWPS_DIR=\".\" + +all: checkwps.$(MODEL) + +checkwps.$(MODEL): checkwps.c $(COMMON) + @echo CC [$(TARGET)] + @$(CC) $(INCLUDE) $(CFLAGS) $(COMMON) -D$(TARGET) checkwps.c -o $@ clean: - rm -f cleanwps + rm -f checkwps.$(MODEL) -- cgit v1.2.3