SAPIServer/speech2/build/arch.mk

27 lines
507 B
Makefile
Raw Normal View History

2024-07-17 21:38:27 -04:00
x86_Valid=yes
x86_TRIPLET=i686-pc-windows-msvc
2024-07-17 21:38:27 -04:00
# Only supported arch.
2024-07-17 21:38:27 -04:00
ifeq ($(ARCH),)
ARCH = x86
endif
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
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