Index: Daodan/makefile
===================================================================
--- Daodan/makefile	(revision 684)
+++ Daodan/makefile	(revision 685)
@@ -2,12 +2,12 @@
 ifeq ("Linux","$(UNAME)")
     GCC := i686-w64-mingw32-gcc
-    DLLTOOL := i686-w64-mingw32-dlltool
+    WINDRES := i686-w64-mingw32-windres
 else
     GCC := gcc
-    DLLTOOL := dlltool
+    WINDRES := windres
 endif
 
 GCCFLAGS = -O0 -Wall -fomit-frame-pointer -fpack-struct
-LINKFLAGS = -O0 -Wall -fomit-frame-pointer -fpack-struct -s -mdll -mthread -Xlinker --major-image-version -Xlinker 1
+LINKFLAGS = -O0 -Wall -fomit-frame-pointer -fpack-struct -s -mdll -mthread
 
 #LIBS = -lwinmm -lopengl32 -lgdi32
@@ -16,6 +16,6 @@
 OUT = build/binkw32.dll
 
-SRC = src/Daodan.c src/Daodan_BSL.c src/Daodan_Character.c src/Daodan_Cheater.c src/Daodan_Console.c src/Daodan_DLLStubs.c src/daodan_gl.c src/Daodan_Patch.c src/Daodan_Persistence.c src/Daodan_Utility.c src/Daodan_Win32.c src/Daodan_WindowHack.c src/inifile_reader.c src/Oni_Symbols.c
-DEST = $(patsubst src/%.c,build/%.o,$(SRC))
+SRC = src/Daodan.c src/Daodan_BSL.c src/Daodan_Character.c src/Daodan_Cheater.c src/Daodan_Console.c src/Daodan_DLLStubs.c src/daodan_gl.c src/Daodan_Patch.c src/Daodan_Persistence.c src/Daodan_Utility.c src/Daodan_Win32.c src/Daodan_WindowHack.c src/inifile_reader.c src/Oni_Symbols.c src/_DLLInfo.rc
+DEST = $(patsubst src/%.rc,build/%.o,$(patsubst src/%.c,build/%.o,$(SRC)))
 
 ALL: $(DEST) $(OBJS)
@@ -32,2 +32,6 @@
 	echo
 
+build/%.o: src/%.rc
+	echo "Assembling resource $<"
+	$(WINDRES) -i $< -o $@
+
Index: Daodan/src/Daodan_Cheater.c
===================================================================
--- Daodan/src/Daodan_Cheater.c	(revision 684)
+++ Daodan/src/Daodan_Cheater.c	(revision 685)
@@ -4,4 +4,6 @@
 #include "Oni.h"
 #include "Oni_Character.h"
+
+#include "_Version.h"
 
 #include "Daodan.h"
@@ -47,5 +49,5 @@
 	{ "x",                "Developer Access Enabled",        "Developer Access Disabled",  cheat_x                },
 	{ "testcheat",        "Testing...",                      "",                           cheat_testcheat        },
-	{ "tellmetheversion", "Daodan v.3.0",                    "",                           cheat_tellmetheversion },
+	{ "tellmetheversion", "Daodan v."DAODAN_VERSION_STRING"",                    "",                           cheat_tellmetheversion },
 	{0}
 };
Index: Daodan/src/_DLLInfo.rc
===================================================================
--- Daodan/src/_DLLInfo.rc	(revision 685)
+++ Daodan/src/_DLLInfo.rc	(revision 685)
@@ -0,0 +1,30 @@
+#include "_Version.h"
+1 VERSIONINFO
+ FILEVERSION DAODAN_VERSION_MAJOR,DAODAN_VERSION_MINOR,0,0
+ PRODUCTVERSION DAODAN_VERSION_MAJOR,DAODAN_VERSION_MINOR,0,0
+ FILEFLAGSMASK 0x17L
+ FILEFLAGS 0x0L
+ FILEOS 0x4L
+ FILETYPE 0x1L
+ FILESUBTYPE 0x0L
+BEGIN
+    BLOCK "StringFileInfo"
+    BEGIN
+        BLOCK "080904b0"
+        BEGIN
+            VALUE "Comments", "Enhances the engine of Oni."
+            VALUE "CompanyName", "oni2.net"
+            VALUE "FileDescription", "Enhances the engine of Oni."
+            VALUE "FileVersion", DAODAN_VERSION_STRING
+            VALUE "InternalName", "Daodan"
+            VALUE "LegalCopyright", "©2013 oni2.net"
+            VALUE "OriginalFilename", "binkw32.dll"
+            VALUE "ProductName", "Oni Daodan Library"
+            VALUE "ProductVersion", DAODAN_VERSION_STRING
+        END
+    END
+    BLOCK "VarFileInfo"
+    BEGIN
+        VALUE "Translation", 0x809, 1200
+    END
+END
Index: Daodan/src/_Version.h
===================================================================
--- Daodan/src/_Version.h	(revision 685)
+++ Daodan/src/_Version.h	(revision 685)
@@ -0,0 +1,11 @@
+#ifndef _VERSION_H 
+#define _VERSION_H
+
+#define STRINGIZE2(s) #s
+#define STRINGIZE(s) STRINGIZE2(s)
+
+#define DAODAN_VERSION_MAJOR 3
+#define DAODAN_VERSION_MINOR 1
+#define DAODAN_VERSION_STRING STRINGIZE(DAODAN_VERSION_MAJOR) "." STRINGIZE(DAODAN_VERSION_MINOR)
+
+#endif
