Index: /applications/editors/josm/plugins/wmsplugin/Makefile
===================================================================
--- /applications/editors/josm/plugins/wmsplugin/Makefile	(revision 12608)
+++ /applications/editors/josm/plugins/wmsplugin/Makefile	(revision 12609)
@@ -1,4 +1,7 @@
+#!/usr/bin/make
+LDFLAGS = `pkg-config --libs --cflags QtCore QtGui QtWebKit`
+
 compile: webkit-image.cpp webkit-image.h
-	g++ -o webkit-image -I/usr/include/qt4  -O2 $(pkg-config --libs --cflags QtGui QtWebKit) webkit-image.cpp
+	g++ -W -o webkit-image -I/usr/include/qt4/ -O2 $(LDFLAGS) webkit-image.cpp
 
 webkit-image.h: webkit-image.cpp
