summaryrefslogtreecommitdiffstatshomepage
path: root/makefile
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2010-01-16 04:40:55 +0000
committer Aaron Giles <aaron@aarongiles.com>2010-01-16 04:40:55 +0000
commitf373246c42143a920dba20b1f95f0b29018d4efb (patch)
tree452cfe2879085b9aa3d86f9cf56afc50cd0de16e /makefile
parentaebc07a8971238b115210e89eca8e7824eca8dbc (diff)
Fix PTR64 autodetect for Windows
Diffstat (limited to 'makefile')
-rw-r--r--makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/makefile b/makefile
index 7443a25e01b..caa79f2ba8a 100644
--- a/makefile
+++ b/makefile
@@ -61,9 +61,11 @@ endif
#-------------------------------------------------
ifndef TARGETOS
+
ifeq ($(OS),Windows_NT)
TARGETOS = win32
else
+
ifneq ($(CROSSBUILD),1)
UNAME = $(shell uname -a)
@@ -93,8 +95,23 @@ endif
endif # CROSS_BUILD
endif # Windows_NT
+
endif # TARGET_OS
+
+ifeq ($(TARGETOS),win32)
+
+# Autodetect PTR64
+ifndef PTR64
+ifneq (,$(findstring mingw64-w64,$(PATH)))
+PTR64=1
+endif
+endif
+
+endif
+
+
+
#-------------------------------------------------
# configure name of final executable
#-------------------------------------------------