diff options
author | Dave Chapman <dave@dchapman.com> | 2008-03-26 23:35:34 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2008-03-26 23:35:34 +0000 |
commit | 78d29f535ff14a5f213125baf63fa2961be17d79 (patch) | |
tree | a3d0992ab3a87ab073ed5aafa0529821dcedd31e /tools/checkwps/Makefile | |
parent | d75bb78fdad9f3252df21e469c6f07346e250de4 (diff) | |
download | rockbox-78d29f535ff14a5f213125baf63fa2961be17d79.tar.gz rockbox-78d29f535ff14a5f213125baf63fa2961be17d79.zip |
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
Diffstat (limited to 'tools/checkwps/Makefile')
-rw-r--r-- | tools/checkwps/Makefile | 25 |
1 files changed, 19 insertions, 6 deletions
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 @@ | |||
7 | # $Id$ | 7 | # $Id$ |
8 | # | 8 | # |
9 | 9 | ||
10 | all: checkwps | 10 | ROOT=../.. |
11 | 11 | ||
12 | checkwps: checkwps.c ../../apps/gui/wps_parser.c ../../apps/gui/wps_debug.c ../../firmware/common/ctype.c ../../apps/misc.c ../../apps/recorder/bmp.c | 12 | COMMON=$(ROOT)/apps/gui/wps_parser.c \ |
13 | $(SILENT)$(CC) -g -I ../../apps/gui -I../../firmware/export \ | 13 | $(ROOT)/apps/gui/wps_debug.c \ |
14 | -D__PCTOOL__ -DDEBUG -DROCKBOX_HAS_LOGF -DIPOD_COLOR -D ROCKBOX_DIR_LEN -D WPS_DIR=\".\" \ | 14 | $(ROOT)/apps/misc.c \ |
15 | -I../../apps -I../../firmware/target/arm/ipod -I../../firmware/include $+ -o $@ | 15 | $(ROOT)/apps/recorder/bmp.c |
16 | |||
17 | INCLUDE=-I $(ROOT)/apps/gui \ | ||
18 | -I $(ROOT)/firmware/export \ | ||
19 | -I $(ROOT)/apps \ | ||
20 | -I . | ||
21 | |||
22 | CFLAGS = -g -D__PCTOOL__ -DDEBUG -DROCKBOX_DIR_LEN=9 -DWPS_DIR=\".\" | ||
23 | |||
24 | all: checkwps.$(MODEL) | ||
25 | |||
26 | checkwps.$(MODEL): checkwps.c $(COMMON) | ||
27 | @echo CC [$(TARGET)] | ||
28 | @$(CC) $(INCLUDE) $(CFLAGS) $(COMMON) -D$(TARGET) checkwps.c -o $@ | ||
16 | 29 | ||
17 | clean: | 30 | clean: |
18 | rm -f cleanwps | 31 | rm -f checkwps.$(MODEL) |