summaryrefslogtreecommitdiff
path: root/tools/checkwps/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/checkwps/Makefile')
-rw-r--r--tools/checkwps/Makefile16
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
10ROOT=../.. 10ROOT=../..
11 11
12ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN)
13CFLAGS+=-mno-cygwin
14ext = .exe
15else
16ifeq ($(findstring MINGW,$(shell uname)),MINGW)
17EXT = .exe
18CC = mingw32-gcc
19endif
20endif
21
12COMMON=$(ROOT)/apps/gui/wps_parser.c \ 22COMMON=$(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=\".\"
24all: 34all:
25 @echo To build, run the buildall.sh script 35 @echo To build, run the buildall.sh script
26 36
27checkwps.$(MODEL): checkwps.c $(COMMON) 37checkwps: 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
31clean: 41clean:
32 rm -f checkwps.$(MODEL) 42 rm -f checkwps.$(MODEL)$(EXT)