Index: Daodan/makefile
===================================================================
--- Daodan/makefile	(revision 678)
+++ Daodan/makefile	(revision 683)
@@ -1,4 +1,19 @@
-GCC = i686-w64-mingw32-gcc
-DLLTOOL = i686-w64-mingw32-dlltool
+ifneq (,$(findstring /cygdrive/,$(PATH)))
+    UNAME := Cygwin
+else
+ifneq (,$(findstring WINDOWS,$(PATH)))
+    UNAME := Windows
+else
+    UNAME := $(shell uname -s)
+endif
+endif
+
+ifeq ("Linux","$(UNAME)")
+    GCC := i686-w64-mingw32-gcc
+    DLLTOOL := i686-w64-mingw32-dlltool
+else
+    GCC := gcc
+    DLLTOOL := dlltool
+endif
 
 GCCFLAGS = -O0 -Wall -fomit-frame-pointer -fpack-struct
