summaryrefslogtreecommitdiffstatshomepage
path: root/makefile
diff options
context:
space:
mode:
author Ramiro Polla <ramiro.polla@gmail.com>2014-12-15 00:08:00 +0100
committer Ramiro Polla <ramiro.polla@gmail.com>2015-01-04 16:23:45 +0100
commitc26b76f6b731c7ef23c384eba66ce69a879e3446 (patch)
tree81a120f827a6daa2148a284a03115d6726cad401 /makefile
parent12e8e314affeb77feee695437f0cb8461b53f3ff (diff)
Run build tools based on build OS
Diffstat (limited to 'makefile')
-rw-r--r--makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/makefile b/makefile
index ad310ccb835..a690b680f6b 100644
--- a/makefile
+++ b/makefile
@@ -340,8 +340,14 @@ ifeq ($(TARGETOS),os2)
EXE = .exe
endif
-ifndef BUILD_EXE
-BUILD_EXE = $(EXE)
+# extension for build tools
+BUILD_EXE =
+
+ifeq ($(OS),Windows_NT)
+BUILD_EXE = .exe
+endif
+ifneq ($(OS2_SHELL),)
+BUILD_EXE = .exe
endif
# compiler, linker and utilities
@@ -350,7 +356,7 @@ AR = @ar
CC = @gcc
LD = @g++
endif
-MD = -mkdir$(EXE)
+MD = -mkdir$(BUILD_EXE)
RM = @rm -f
OBJDUMP = @objdump
PYTHON = @python