diff options
Diffstat (limited to 'tools/checkwps/Makefile')
-rw-r--r-- | tools/checkwps/Makefile | 16 |
1 files changed, 13 insertions, 3 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) |