Lily Tsuru
cc59c0c6db
It's less painful than mingw. I'll next get the DLL going like this, though it'll be pretty easy.
27 lines
507 B
Makefile
27 lines
507 B
Makefile
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
|
|
|