Merge pull request #79 from ramiropolla/cross-compile

Make cross-compilation easier [Ramiro Polla]
This commit is contained in:
Miodrag Milanović 2015-01-05 08:32:22 +01:00
commit fe21a14a50
2 changed files with 10 additions and 4 deletions

View File

@ -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

View File

@ -31,7 +31,7 @@ PNG2BDC = $(PNG2BDC_TARGET)
VERINFO = $(VERINFO_TARGET)
ifneq ($(TERM),cygwin)
ifeq ($(TARGETOS),win32)
ifeq ($(OS),Windows_NT)
MAKEDEP = $(subst /,\,$(MAKEDEP_TARGET))
MAKEMAK = $(subst /,\,$(MAKEMAK_TARGET))
MAKELIST = $(subst /,\,$(MAKELIST_TARGET))