x86_Valid=yes x86_TRIPLET=i686-w64-mingw32 #x64_Valid=yes #x64_TRIPLET=x86_64-w64-mingw32 ifeq ($(ARCH),) ARCH = x86 endif ifneq ($($(ARCH)_Valid),yes) $(error Please select a valid target) endif # if we really need C CC = $($(ARCH)_TRIPLET)-gcc CXX = $($(ARCH)_TRIPLET)-g++ WINDRES = $($(ARCH)_TRIPLET)-windres