From 76a83ce1cc2851f2a3326adbfc85e27d382ecc2d Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Thu, 5 May 2005 11:26:32 +0000 Subject: [PATCH] - Detect msys on windows as a linux system. - Creating of the bootcd will not work. There is somewhere a path with 'c:/'. svn path=/trunk/; revision=14992 --- reactos/rules.mak | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/reactos/rules.mak b/reactos/rules.mak index f5a1af417b0..4af9a2a6424 100644 --- a/reactos/rules.mak +++ b/reactos/rules.mak @@ -35,6 +35,11 @@ export MAKE := @$(MAKE) ifeq ($(VERBOSE),no) endif +# detect msys on a Windows host as linux +ifeq ($(OSTYPE),msys) +export HOST=mingw32-linux +endif + # detect Windows host environment ifeq ($(HOST),) ifeq ($(word 1,$(shell gcc -dumpmachine)),mingw32) @@ -94,8 +99,13 @@ endif ifeq ($(HOST),mingw32-linux) export HOST_TYPE = unix export NASM_FORMAT = win32 +ifeq ($(OSTYPE),msys) +export PREFIX := +export EXE_POSTFIX := .exe +else export PREFIX = mingw32- export EXE_POSTFIX := +endif export EXE_PREFIX := ./ export DLLTOOL = $(PREFIX)dlltool --as=$(PREFIX)as #