2024-07-17 21:38:27 -04:00
|
|
|
x86_Valid=yes
|
2024-07-19 05:10:10 -04:00
|
|
|
x86_TRIPLET=i686-pc-windows-msvc
|
2024-07-17 21:38:27 -04:00
|
|
|
|
2024-07-19 05:10:10 -04:00
|
|
|
# Only supported arch.
|
2024-07-17 21:38:27 -04:00
|
|
|
ifeq ($(ARCH),)
|
|
|
|
ARCH = x86
|
|
|
|
endif
|
|
|
|
|
2024-07-19 05:10:10 -04:00
|
|
|
ifeq ($(VCDIR),)
|
|
|
|
$(error Please set VCDIR in your environment to an appropiate path)
|
|
|
|
endif
|
|
|
|
|
2024-07-17 21:38:27 -04:00
|
|
|
ifneq ($($(ARCH)_Valid),yes)
|
|
|
|
$(error Please select a valid target)
|
|
|
|
endif
|
|
|
|
|
2024-07-19 05:10:10 -04:00
|
|
|
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
|
|
|
|
|