MinGW: Compile resource file and link with it. 



git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3346 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/win/vncviewer/Makefile.am b/win/vncviewer/Makefile.am
index ff6a6d6..6a03593 100644
--- a/win/vncviewer/Makefile.am
+++ b/win/vncviewer/Makefile.am
@@ -42,9 +42,14 @@
 
 vncviewer_CPPFLAGS = -I$(COMMON_DIR) -I$(top_srcdir)
 
-vncviewer_LDADD = $(COMMON_DIR)/rfb/librfb.la $(top_srcdir)/rfb_win32/librfb_win32.la $(COMMON_DIR)/Xregion/libXregion.la \
-	$(COMMON_DIR)/network/libnetwork.la $(COMMON_DIR)/rdr/librdr.la -lws2_32 -lgdi32 -luser32 -lcomctl32 -lversion -lcomdlg32
+vncviewer_LDADD = $(COMMON_DIR)/rfb/librfb.la \
+    $(top_srcdir)/rfb_win32/librfb_win32.la \
+    $(COMMON_DIR)/Xregion/libXregion.la \
+    $(COMMON_DIR)/network/libnetwork.la \
+    $(COMMON_DIR)/rdr/librdr.la \
+    resources.o -lws2_32 -lgdi32 -luser32 -lcomctl32 -lversion -lcomdlg32
 
 vncviewer_LDFLAGS = -I$(top_srcdir)/win 
 
-
+resources.o: vncviewer.rc
+	i386-mingw32msvc-windres $^ -o $@