2015-10-16 21:49:54 -05:00
|
|
|
# 16 october 2015
|
|
|
|
|
|
|
|
EXESUFFIX = .exe
|
|
|
|
LIBSUFFIX = .dll
|
|
|
|
|
2015-10-16 22:33:53 -05:00
|
|
|
# TODO only when cross-compiling?
|
2015-10-16 21:49:54 -05:00
|
|
|
ifeq ($(ARCH),amd64)
|
2015-10-16 22:33:53 -05:00
|
|
|
CC = x86_64-w64-mingw32-gcc
|
|
|
|
RC = x86_64-w64-mingw32-windres
|
2015-10-16 21:49:54 -05:00
|
|
|
else ifeq ($(ARCH),386)
|
2015-10-16 22:33:53 -05:00
|
|
|
CC = i686-w64-mingw32-gcc
|
|
|
|
RC = i686-w64-mingw32-windres
|
2015-10-16 21:49:54 -05:00
|
|
|
else ifneq ($(ARCH),default)
|
2015-10-17 09:22:43 -05:00
|
|
|
$(error [FAIL] unknown architecture $(ARCH) for Windows build; I need to know which compiler to invoke)
|
2015-10-16 21:49:54 -05:00
|
|
|
endif
|