projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ed09e4
)
detect windows instead of assuming it
author
Royce Mitchell III
<royce3@ev1.net>
Sat, 12 Mar 2005 04:20:35 +0000
(
04:20
+0000)
committer
Royce Mitchell III
<royce3@ev1.net>
Sat, 12 Mar 2005 04:20:35 +0000
(
04:20
+0000)
svn path=/trunk/; revision=13953
reactos/rules.mak
patch
|
blob
|
history
diff --git
a/reactos/rules.mak
b/reactos/rules.mak
index
df2eb80
..
e6d3d3a
100644
(file)
--- a/
reactos/rules.mak
+++ b/
reactos/rules.mak
@@
-35,9
+35,13
@@
export MAKE := @$(MAKE)
ifeq ($(VERBOSE),no)
endif
-#
Windows is default
host environment
+#
detect Windows
host environment
ifeq ($(HOST),)
-export HOST = mingw32-windows
+ifeq ($(word 1,$(shell gcc -dumpmachine)),mingw32)
+HOST=mingw32-windows
+else
+HOST=mingw32-linux
+endif
endif
# Default to building map files which includes source and asm code