diff options
Diffstat (limited to 'tools/checkwps')
-rw-r--r-- | tools/checkwps/Makefile | 16 | ||||
-rwxr-xr-x | tools/checkwps/buildall.sh | 2 |
2 files changed, 14 insertions, 4 deletions
diff --git a/tools/checkwps/Makefile b/tools/checkwps/Makefile index 3da56f9d82..bf029716ec 100644 --- a/tools/checkwps/Makefile +++ b/tools/checkwps/Makefile | |||
@@ -9,6 +9,16 @@ | |||
9 | 9 | ||
10 | ROOT=../.. | 10 | ROOT=../.. |
11 | 11 | ||
12 | ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN) | ||
13 | CFLAGS+=-mno-cygwin | ||
14 | ext = .exe | ||
15 | else | ||
16 | ifeq ($(findstring MINGW,$(shell uname)),MINGW) | ||
17 | EXT = .exe | ||
18 | CC = mingw32-gcc | ||
19 | endif | ||
20 | endif | ||
21 | |||
12 | COMMON=$(ROOT)/apps/gui/wps_parser.c \ | 22 | COMMON=$(ROOT)/apps/gui/wps_parser.c \ |
13 | $(ROOT)/apps/gui/wps_debug.c \ | 23 | $(ROOT)/apps/gui/wps_debug.c \ |
14 | $(ROOT)/apps/misc.c \ | 24 | $(ROOT)/apps/misc.c \ |
@@ -24,9 +34,9 @@ CFLAGS = -g -D__PCTOOL__ -DDEBUG -DROCKBOX_DIR_LEN=9 -DWPS_DIR=\".\" | |||
24 | all: | 34 | all: |
25 | @echo To build, run the buildall.sh script | 35 | @echo To build, run the buildall.sh script |
26 | 36 | ||
27 | checkwps.$(MODEL): checkwps.c $(COMMON) | 37 | checkwps: checkwps.c $(COMMON) |
28 | @echo CC [$(TARGET)] | 38 | @echo CC [$(TARGET)] |
29 | @$(CC) $(INCLUDE) $(CFLAGS) $(COMMON) -D$(TARGET) checkwps.c -o $@ | 39 | @$(CC) $(INCLUDE) $(CFLAGS) $(COMMON) -D$(TARGET) checkwps.c -o $@.$(MODEL)$(EXT) |
30 | 40 | ||
31 | clean: | 41 | clean: |
32 | rm -f checkwps.$(MODEL) | 42 | rm -f checkwps.$(MODEL)$(EXT) |
diff --git a/tools/checkwps/buildall.sh b/tools/checkwps/buildall.sh index 732c11b2b3..23fc7ff7f4 100755 --- a/tools/checkwps/buildall.sh +++ b/tools/checkwps/buildall.sh | |||
@@ -3,6 +3,6 @@ cat targets.txt | ( | |||
3 | while read target model | 3 | while read target model |
4 | do | 4 | do |
5 | rm -f checkwps.$model | 5 | rm -f checkwps.$model |
6 | make MODEL=$model TARGET=$target checkwps.$model | 6 | make MODEL=$model TARGET=$target checkwps |
7 | done | 7 | done |
8 | ) | 8 | ) |