blob: 85deb95ac92334da82e496f5c815b701815a7d68 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# $OpenBSD: Makefile.arch,v 1.7 2020/05/30 19:22:00 drahn Exp $
LLVM_ARCHS=AArch64 AMDGPU ARM Mips PowerPC Sparc X86
LLVM_ARCH?=
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
LLVM_ARCH= X86
.elif ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "powerpc64"
LLVM_ARCH= PowerPC
.elif ${MACHINE_ARCH} == "sparc64"
LLVM_ARCH= Sparc
.elif ${MACHINE_ARCH} == "aarch64"
LLVM_ARCH= AArch64
.elif ${MACHINE_ARCH} == "arm"
LLVM_ARCH= ARM
.elif ${MACHINE_ARCH} == "mips64" || ${MACHINE_ARCH} == "mips64el"
LLVM_ARCH= Mips
.endif
BACKEND_ASMPARSER?=
BACKEND_ASMPRINTER?=
BACKEND_CODEGEN?=
BACKEND_DESC?=
BACKEND_DISASSEMBLER?=
BACKEND_INFO?=
BACKEND_UTILS?=
.for arch in ${LLVM_ARCHS}
.if "${arch}" == ${LLVM_ARCH} || "${arch}" == "AMDGPU" || make(obj)
BACKEND_ASMPARSER+= LLVM${arch}AsmParser
BACKEND_ASMPRINTER+= LLVM${arch}AsmPrinter
BACKEND_CODEGEN+= LLVM${arch}CodeGen
BACKEND_DESC+= LLVM${arch}Desc
BACKEND_DISASSEMBLER+= LLVM${arch}Disassembler
BACKEND_INFO+= LLVM${arch}Info
.if "${arch}" == "X86" || "${arch}" == "AArch64" || "${arch}" == "ARM" \
|| "${arch}" == "AMDGPU"
BACKEND_UTILS+= LLVM${arch}Utils
.endif
.endif
.endfor
BACKEND_LIBS+= ${BACKEND_ASMPARSER}
BACKEND_LIBS+= ${BACKEND_ASMPRINTER}
BACKEND_LIBS+= ${BACKEND_CODEGEN}
BACKEND_LIBS+= ${BACKEND_DESC}
BACKEND_LIBS+= ${BACKEND_DISASSEMBLER}
BACKEND_LIBS+= ${BACKEND_INFO}
BACKEND_LIBS+= ${BACKEND_UTILS}
|