diff options
Diffstat (limited to 'win32')
-rw-r--r-- | win32/Makefile.sub | 3 | ||||
-rw-r--r-- | win32/setup.mak | 18 |
2 files changed, 11 insertions, 10 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub index 5387d032fc..8ce9cf736e 100644 --- a/win32/Makefile.sub +++ b/win32/Makefile.sub @@ -272,6 +272,7 @@ rubyw: $(WPROGRAM) $(MKFILES): $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub $(win_srcdir)/configure.bat $(win_srcdir)/setup.mak $(COMSPEC) /C $(win_srcdir:/=\)\configure.bat $(configure_args) @echo $(MKFILES) should be updated, re-run $(MAKE). + @exit 1 CONFIG_H = ./.config.h.time @@ -292,7 +293,7 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub #error MSC version unmatch: _MSC_VER: $(MSC_VER) is expected. #endif !if defined(USE_WINSOCK2) -#define USE_WINSOCK2 1 +#define USE_WINSOCK2 $(USE_WINSOCK2) !endif #define STDC_HEADERS 1 #define HAVE_SYS_TYPES_H 1 diff --git a/win32/setup.mak b/win32/setup.mak index 86f6f6ae55..e87d1dbf39 100644 --- a/win32/setup.mak +++ b/win32/setup.mak @@ -14,7 +14,7 @@ prefix = /usr !endif OS = mswin32 BANG = ! -APPEND = echo>>$(MAKEFILE) +APPEND = echo.>>$(MAKEFILE) !ifdef MAKEFILE MAKE = $(MAKE) -f $(MAKEFILE) !else @@ -41,8 +41,8 @@ MAKE = nmake srcdir = $(srcdir:\=/) prefix = $(prefix:\=/) EXTSTATIC = $(EXTSTATIC) -!if defined(USE_WINSOCK2) -USE_WINSOCK2 = $(USE_WINSOCK2) +!if "$(USE_WINSOCK2)" != "0" +USE_WINSOCK2 = 1 !endif !if defined(RDOCTARGET) RDOCTARGET = $(RDOCTARGET) @@ -151,18 +151,18 @@ $(CPU) = $(PROCESSOR_LEVEL) !endif -alpha-: nul - @$(APPEND) $(ARCH) = alpha + @echo $(ARCH) = alpha>>$(MAKEFILE) -ix86-: nul - @$(APPEND) $(ARCH) = x86 + @echo $(ARCH) = x86>>$(MAKEFILE) -i386-: -ix86- - @$(APPEND) $(CPU) = 3 + @echo $(CPU) = 3>>$(MAKEFILE) -i486-: -ix86- - @$(APPEND) $(CPU) = 4 + @echo $(CPU) = 4>>$(MAKEFILE) -i586-: -ix86- - @$(APPEND) $(CPU) = 5 + @echo $(CPU) = 5>>$(MAKEFILE) -i686-: -ix86- - @$(APPEND) $(CPU) = 6 + @echo $(CPU) = 6>>$(MAKEFILE) -epilogue-: nul @type << >>$(MAKEFILE) |