x86_Valid=yes x86_TRIPLET=i686-pc-windows-msvc # Only supported arch. ifeq ($(ARCH),) ARCH = x86 endif ifeq ($(VCDIR),) $(error Please set VCDIR in your environment to an appropiate path) endif ifneq ($($(ARCH)_Valid),yes) $(error Please select a valid target) endif CC = clang -target $($(ARCH)_TRIPLET) CXX = clang -target $($(ARCH)_TRIPLET) LD = lld-link # This is $(WINDRES) thanks to the fact I # depended on the (relatively low quality) # MinGW toolchain. Thank God For LLVM. WINDRES = llvm-rc