summaryrefslogtreecommitdiff
path: root/ext/win32ole/extconf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/win32ole/extconf.rb')
-rw-r--r--ext/win32ole/extconf.rb26
1 files changed, 26 insertions, 0 deletions
diff --git a/ext/win32ole/extconf.rb b/ext/win32ole/extconf.rb
new file mode 100644
index 0000000000..4abfd3c62f
--- /dev/null
+++ b/ext/win32ole/extconf.rb
@@ -0,0 +1,26 @@
+#----------------------------------
+# extconf.rb
+# $Revision$
+# $Date$
+#----------------------------------
+require 'mkmf'
+
+def create_win32ole_makefile
+ if have_library("ole32") and
+ have_library("oleaut32") and
+ have_library("uuid") and
+ have_library("user32") and
+ have_library("advapi32")
+ create_makefile("win32ole")
+ end
+end
+
+case PLATFORM
+when /mswin32/
+ $CFLAGS='/W3'
+when /mingw/
+ $CFLAGS='-DNONAMELESSUNION'
+when /cygwin/
+ $CFLAGS='-DNONAMELESSUNION'
+end
+create_win32ole_makefile