# JOYSTICK = -DNO_JOYSTICK
# path for cross-compiling (only needed for non-native Windows build)
-CROSS_PATH_WIN32 = /usr/local/cross-tools/i386-mingw32msvc
+CROSS_PATH_WIN32 = /usr/local/cross-tools/i686-w64-mingw32
+CROSS_PATH_WIN64 = /usr/local/cross-tools/x86_64-w64-mingw32
# -----------------------------------------------------------------------------
cross-win32:
@PATH=$(CROSS_PATH_WIN32)/bin:${PATH} $(MAKE_CMD) PLATFORM=cross-win32
+cross-win64:
+ @PATH=$(CROSS_PATH_WIN64)/bin:${PATH} $(MAKE_CMD) PLATFORM=cross-win64
+
android-compile:
@$(MAKE_CMD_ANDROID) compile
dist-build-win32:
@BUILD_DIST=TRUE $(MAKE) cross-win32
+dist-build-win64:
+ @BUILD_DIST=TRUE $(MAKE) cross-win64
+
dist-build-macosx:
@BUILD_DIST=TRUE $(MAKE)
$(MAKE_DIST) package unix
dist-package-win32:
- $(MAKE_DIST) package win
+ $(MAKE_DIST) package win32
+
+dist-package-win64:
+ $(MAKE_DIST) package win64
dist-package-macosx:
$(MAKE_DIST) package mac
$(MAKE_DIST) copy-package unix
dist-copy-package-win32:
- $(MAKE_DIST) copy-package win
+ $(MAKE_DIST) copy-package win32
+
+dist-copy-package-win64:
+ $(MAKE_DIST) copy-package win64
dist-copy-package-macosx:
$(MAKE_DIST) copy-package mac
$(MAKE_DIST) upload unix
dist-upload-win32:
- $(MAKE_DIST) upload win
+ $(MAKE_DIST) upload win32
+
+dist-upload-win64:
+ $(MAKE_DIST) upload win64
dist-upload-macosx:
$(MAKE_DIST) upload mac
dist-package-all:
$(MAKE) dist-package-unix
$(MAKE) dist-package-win32
+ $(MAKE) dist-package-win64
$(MAKE) dist-package-macosx
$(MAKE) dist-package-android
dist-copy-package-all:
$(MAKE) dist-copy-package-unix
$(MAKE) dist-copy-package-win32
+ $(MAKE) dist-copy-package-win64
$(MAKE) dist-copy-package-macosx
$(MAKE) dist-copy-package-android
dist-upload-all:
$(MAKE) dist-upload-unix
$(MAKE) dist-upload-win32
+ $(MAKE) dist-upload-win64
$(MAKE) dist-upload-macosx
$(MAKE) dist-upload-android
PLATFORM = unix
endif
+PLATFORM_BASE = $(PLATFORM)
+
+ifeq ($(PLATFORM),cross-win32)
+PLATFORM_BASE = cross-win
+endif
+ifeq ($(PLATFORM),cross-win64)
+PLATFORM_BASE = cross-win
+endif
+
AR = ar
RANLIB = ranlib
ETAGS = etags
PROFILING_FLAGS = -pg
endif
-ifeq ($(PLATFORM),cross-win32) # cross-compiling to Windows
+ifeq ($(PLATFORM_BASE),cross-win) # cross-compiling to Windows
PROGNAME = ../$(PROGBASE).exe
EXTRA_LDFLAGS = -lshfolder -lwsock32
endif
ICONBASE = windows_icon
ICON_BASEPATH = ../Special/Icons/windows_icons
-ifeq ($(PLATFORM),cross-win32)
+ifeq ($(PLATFORM_BASE),cross-win)
ICON_PATH = $(ICON_BASEPATH)/$(EDITION)
ICON = $(ICONBASE).o
endif