summaryrefslogtreecommitdiff
path: root/win32/setup.mak
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-12-25 01:49:27 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-12-25 01:49:27 +0000
commit8b79dd5e82ea3bc54611811b16b65edc9d7b5822 (patch)
treef6b14afc840fffc2d996bdb81290cfa658b3191d /win32/setup.mak
parente08fca8bc0d390454826ed03840e6b1c14c6dc10 (diff)
* bcc32/Makefile.sub, win32/Makefile.sub (RUBY_SO_NAME, config.h):
use $(MAJOR) and $(MINOR). based on Nobu's patch. [ruby-win32:413] * bcc32/setup.mak, win32/setup.mak (-prologue-): define MAJOR, MINOR and TEENY from version.h. based on Nobu's patch. [ruby-win32:413] * win32/Makefile.sub (config.h): add HAVE_FLOAT_H. * win32/Makefile.sub (parse.obj): depend on win32/win32.h. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/setup.mak')
-rw-r--r--win32/setup.mak16
1 files changed, 10 insertions, 6 deletions
diff --git a/win32/setup.mak b/win32/setup.mak
index 328afa0..1f2c7af 100644
--- a/win32/setup.mak
+++ b/win32/setup.mak
@@ -29,11 +29,15 @@ i686-$(OS): -prologue- -i686- -epilogue-
alpha-$(OS): -prologue- -alpha- -epilogue-
-prologue-: nul
- @echo Creating <<$(MAKEFILE)
-### Makefile for ruby $(OS) ###
-srcdir = $(srcdir:\=/)
-
-<<KEEP
+ @cl -nologo -EP -I$(srcdir) <<"Creating $(MAKEFILE)" > $(MAKEFILE)
+#define COMMENT #
+COMMENT Makefile for ruby $(OS)
+#include "version.h"
+MAJOR = RUBY_VERSION_MAJOR
+MINOR = RUBY_VERSION_MINOR
+TEENY = RUBY_VERSION_TEENY
+<<
+ @$(APPEND) srcdir = $(srcdir:\=/)
-generic-: nul
!if defined($(ARCH)) || defined($(CPU))
@@ -67,7 +71,7 @@ $(CPU) = $(PROCESSOR_LEVEL)
# OS = $(OS)
# RT = $(RT)
# RUBY_INSTALL_NAME = ruby
-# RUBY_SO_NAME = $$(RT)-$$(RUBY_INSTALL_NAME)17
+# RUBY_SO_NAME = $$(RT)-$$(RUBY_INSTALL_NAME)$$(MAJOR)$$(MINOR)
# prefix = /usr
# CFLAGS = -nologo -MD $$(DEBUGFLAGS) $$(OPTFLAGS) $$(PROCESSOR_FLAG)
# CPPFLAGS = -I. -I$$(srcdir) -I$$(srcdir)/missing -DLIBRUBY_SO=\"$$(LIBRUBY_SO)\"