summaryrefslogtreecommitdiffstats
path: root/tools/checkwps
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2012-03-26 23:16:48 +0200
committerThomas Martitz <kugel@rockbox.org>2012-03-26 23:16:48 +0200
commit54e00c18a3520cda1c5c459ed9e0c1eae2eb4490 (patch)
tree5c2188e3e190648555c28e2d002f4f7a21e90090 /tools/checkwps
parentf269aa0060950f7b9c42216267c639a2fb556196 (diff)
downloadrockbox-54e00c18a3520cda1c5c459ed9e0c1eae2eb4490.tar.gz
rockbox-54e00c18a3520cda1c5c459ed9e0c1eae2eb4490.tar.bz2
rockbox-54e00c18a3520cda1c5c459ed9e0c1eae2eb4490.zip
Fix sim/checkwps build failure.
Change-Id: Iefd533fe26495a29f8e79113b38748b504d94213
Diffstat (limited to 'tools/checkwps')
-rw-r--r--tools/checkwps/checkwps.make15
1 files changed, 9 insertions, 6 deletions
diff --git a/tools/checkwps/checkwps.make b/tools/checkwps/checkwps.make
index 36a9bb4a30..646b59ef5d 100644
--- a/tools/checkwps/checkwps.make
+++ b/tools/checkwps/checkwps.make
@@ -7,9 +7,12 @@
# $Id$
#
-FLAGS=-g -D__PCTOOL__ $(TARGET) -Wall
+GCCOPTS=-g -D__PCTOOL__ -DCHECKWPS $(TARGET)
-SRC= $(call preprocess, $(TOOLSDIR)/checkwps/SOURCES)
+CHECKWPS_SRC = $(call preprocess, $(TOOLSDIR)/checkwps/SOURCES)
+CHECKWPS_OBJ = $(call c2obj,$(CHECKWPS_SRC))
+
+OTHER_SRC += $(CHECKWPS_SRC)
INCLUDES = -I$(ROOTDIR)/apps/gui \
-I$(ROOTDIR)/apps/gui/skin_engine \
@@ -24,11 +27,11 @@ INCLUDES = -I$(ROOTDIR)/apps/gui \
-I$(APPSDIR) \
-I$(BUILDDIR)
-# Makes mkdepfile happy
-GCCOPTS+=-D__PCTOOL__ -DCHECKWPS -g
+include $(ROOTDIR)/lib/skin_parser/skin_parser.make
.SECONDEXPANSION: # $$(OBJ) is not populated until after this
-$(BUILDDIR)/$(BINARY): $$(OBJ) $$(SKINLIB)
+$(BUILDDIR)/$(BINARY): $$(CHECKWPS_OBJ) $(CORE_LIBS)
@echo LD $(BINARY)
- $(SILENT)$(HOSTCC) $(INCLUDE) $(FLAGS) -L$(BUILDDIR)/lib -lskin_parser -o $@ $+
+ $(SILENT)$(HOSTCC) -o $@ $+ $(INCLUDE) $(GCCOPTS) \
+ -L$(BUILDDIR)/lib $(call a2lnk,$(CORE_LIBS))