xref: /openbsd/gnu/usr.bin/clang/libLLVM/Makefile (revision d415bd75)
1.include "../Makefile.arch"
2
3.if "${LLVM_ARCH}" != ""
4
5.include "../libLLVMAggressiveInstCombine/Makefile"
6.include "../libLLVMAMDGPUAsmParser/Makefile"
7.include "../libLLVMAMDGPUCodeGen/Makefile"
8.include "../libLLVMAMDGPUDesc/Makefile"
9.include "../libLLVMAMDGPUDisassembler/Makefile"
10.include "../libLLVMAMDGPUInfo/Makefile"
11.include "../libLLVMAMDGPUUtils/Makefile"
12.include "../libLLVMAnalysis/Makefile"
13.include "../libLLVMAsmParser/Makefile"
14.include "../libLLVMAsmPrinter/Makefile"
15.include "../libLLVMBinaryFormat/Makefile"
16.include "../libLLVMBitReader/Makefile"
17.include "../libLLVMBitWriter/Makefile"
18.include "../libLLVMBitstreamReader/Makefile"
19.include "../libLLVMCFGuard/Makefile"
20.include "../libLLVMCodeGen/Makefile"
21.include "../libLLVMCore/Makefile"
22.include "../libLLVMCoroutines/Makefile"
23.include "../libLLVMCoverage/Makefile"
24.include "../libLLVMDebugInfoCodeView/Makefile"
25.include "../libLLVMDebugInfoDWARF/Makefile"
26.include "../libLLVMDebugInfoMSF/Makefile"
27.include "../libLLVMDebugInfoPDB/Makefile"
28.include "../libLLVMDemangle/Makefile"
29.include "../libLLVMExecutionEngine/Makefile"
30.include "../libLLVMFrontendOpenACC/Makefile"
31.include "../libLLVMFrontendOpenMP/Makefile"
32.include "../libLLVMGlobalISel/Makefile"
33.include "../libLLVMIRReader/Makefile"
34.include "../libLLVMInstCombine/Makefile"
35.include "../libLLVMInstrumentation/Makefile"
36.include "../libLLVMLTO/Makefile"
37.include "../libLLVMLinker/Makefile"
38.include "../libLLVMMC/Makefile"
39.include "../libLLVMMCDisassembler/Makefile"
40.include "../libLLVMMCParser/Makefile"
41.include "../libLLVMMIRParser/Makefile"
42.include "../libLLVMObjCARCOpts/Makefile"
43.include "../libLLVMObject/Makefile"
44.include "../libLLVMOption/Makefile"
45.include "../libLLVMPasses/Makefile"
46.include "../libLLVMProfileData/Makefile"
47.include "../libLLVMRemarks/Makefile"
48.include "../libLLVMScalarOpts/Makefile"
49.include "../libLLVMSelectionDAG/Makefile"
50.include "../libLLVMSupport/Makefile.shared"
51.include "../libLLVMSymbolize/Makefile"
52.include "../libLLVMTarget/Makefile"
53.include "../libLLVMTextAPI/Makefile"
54.include "../libLLVMTransformUtils/Makefile"
55.include "../libLLVMVectorize/Makefile"
56.include "../libLLVM${LLVM_ARCH}AsmParser/Makefile"
57.include "../libLLVM${LLVM_ARCH}CodeGen/Makefile"
58.include "../libLLVM${LLVM_ARCH}Desc/Makefile"
59.include "../libLLVM${LLVM_ARCH}Disassembler/Makefile"
60.include "../libLLVM${LLVM_ARCH}Info/Makefile"
61.if "${LLVM_ARCH}" == "AArch64" || "${LLVM_ARCH}" == "ARM"
62.include "../libLLVM${LLVM_ARCH}Utils/Makefile"
63.endif
64.include "../libLLVMipo/Makefile"
65
66.endif
67
68NOLIBSTATIC=	# do not install static version
69LIB=	LLVM
70
71includes:
72	cd ${LLVM_SRCS}/include; \
73	pax -rw -pa -L \
74	    `find llvm llvm-c -follow -type f \
75	    '(' -name '*.def' -or -name '*.h' -or -name '*.td' \
76	    -or -name '*.inc' ')' \
77	    -print` ${DESTDIR}/usr/include
78
79.include <bsd.lib.mk>
80
81# Enable return protectors for libLLVM.so
82PICFLAG+= -fret-protector
83