diff options
-rw-r--r-- | gnu/usr.bin/clang/Makefile | 10 | ||||
-rw-r--r-- | gnu/usr.bin/clang/include/lld/Config/Version.inc | 5 | ||||
-rw-r--r-- | gnu/usr.bin/clang/libLLVMLTO/Makefile | 24 | ||||
-rw-r--r-- | gnu/usr.bin/clang/libLLVMPasses/Makefile | 20 | ||||
-rw-r--r-- | gnu/usr.bin/clang/liblldConfig/Makefile | 19 | ||||
-rw-r--r-- | gnu/usr.bin/clang/liblldCore/Makefile | 26 | ||||
-rw-r--r-- | gnu/usr.bin/clang/liblldELF/Makefile | 45 | ||||
-rw-r--r-- | gnu/usr.bin/clang/lld/Makefile | 59 |
8 files changed, 207 insertions, 1 deletions
diff --git a/gnu/usr.bin/clang/Makefile b/gnu/usr.bin/clang/Makefile index f55f1135f7f..dafa0797dc8 100644 --- a/gnu/usr.bin/clang/Makefile +++ b/gnu/usr.bin/clang/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.2 2017/01/14 20:12:41 patrick Exp $ +# $OpenBSD: Makefile,v 1.3 2017/01/22 03:13:07 patrick Exp $ .include <bsd.own.mk> @@ -41,6 +41,8 @@ SUBDIR+=libLLVMProfileData SUBDIR+=libLLVMCoverage SUBDIR+=libLLVMDebugInfoCodeView SUBDIR+=libLLVMGlobalISel +SUBDIR+=libLLVMLTO +SUBDIR+=libLLVMPasses SUBDIR+=include/llvm/${LLVM_ARCH} @@ -68,5 +70,11 @@ SUBDIR+=libclangFrontendTool SUBDIR+=clang +SUBDIR+=liblldConfig +SUBDIR+=liblldCore +SUBDIR+=liblldELF + +SUBDIR+=lld + .include <bsd.obj.mk> .include <bsd.subdir.mk> diff --git a/gnu/usr.bin/clang/include/lld/Config/Version.inc b/gnu/usr.bin/clang/include/lld/Config/Version.inc new file mode 100644 index 00000000000..40755394025 --- /dev/null +++ b/gnu/usr.bin/clang/include/lld/Config/Version.inc @@ -0,0 +1,5 @@ +/* $OpenBSD: Version.inc,v 1.1 2017/01/22 03:13:07 patrick Exp $ */ + +#define LLD_VERSION 3.9.1 +#define LLD_VERSION_MAJOR 3 +#define LLD_VERSION_MINOR 9 diff --git a/gnu/usr.bin/clang/libLLVMLTO/Makefile b/gnu/usr.bin/clang/libLLVMLTO/Makefile new file mode 100644 index 00000000000..0daaf403492 --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMLTO/Makefile @@ -0,0 +1,24 @@ +# $OpenBSD: Makefile,v 1.1 2017/01/22 03:13:07 patrick Exp $ + +LIB= LLVMLTO +NOPIC= +NOPROFILE= + +CPPFLAGS+= -I${LLVM_SRCS}/include/llvm/LTO + +.include <bsd.own.mk> +SRCS= LTO.cpp \ + LTOModule.cpp \ + LTOCodeGenerator.cpp \ + UpdateCompilerUsed.cpp \ + ThinLTOCodeGenerator.cpp + +.PATH: ${.CURDIR}/../../../llvm/lib/LTO + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libLLVMPasses/Makefile b/gnu/usr.bin/clang/libLLVMPasses/Makefile new file mode 100644 index 00000000000..7e36b6a32fb --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMPasses/Makefile @@ -0,0 +1,20 @@ +# $OpenBSD: Makefile,v 1.1 2017/01/22 03:13:07 patrick Exp $ + +LIB= LLVMPasses +NOPIC= +NOPROFILE= + +CPPFLAGS+= -I${LLVM_SRCS}/include/llvm/Passes + +.include <bsd.own.mk> +SRCS= PassBuilder.cpp + +.PATH: ${.CURDIR}/../../../llvm/lib/Passes + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/liblldConfig/Makefile b/gnu/usr.bin/clang/liblldConfig/Makefile new file mode 100644 index 00000000000..de5aab0238b --- /dev/null +++ b/gnu/usr.bin/clang/liblldConfig/Makefile @@ -0,0 +1,19 @@ +# $OpenBSD: Makefile,v 1.1 2017/01/22 03:13:07 patrick Exp $ + +LIB= lldConfig +NOPROFILE= + +CPPFLAGS+= -I${LLVM_SRCS}/tools/lld/include + +.include <bsd.own.mk> +SRCS= Version.cpp + +.PATH: ${.CURDIR}/../../../llvm/tools/lld/lib/Config + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/liblldCore/Makefile b/gnu/usr.bin/clang/liblldCore/Makefile new file mode 100644 index 00000000000..7d9c99d1ede --- /dev/null +++ b/gnu/usr.bin/clang/liblldCore/Makefile @@ -0,0 +1,26 @@ +# $OpenBSD: Makefile,v 1.1 2017/01/22 03:13:07 patrick Exp $ + +LIB= lldCore +NOPROFILE= + +CPPFLAGS+= -I${LLVM_SRCS}/tools/lld/include + +.include <bsd.own.mk> +SRCS= DefinedAtom.cpp \ + Error.cpp \ + File.cpp \ + LinkingContext.cpp \ + Reader.cpp \ + Resolver.cpp \ + SymbolTable.cpp \ + Writer.cpp + +.PATH: ${.CURDIR}/../../../llvm/tools/lld/lib/Core + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/liblldELF/Makefile b/gnu/usr.bin/clang/liblldELF/Makefile new file mode 100644 index 00000000000..5a90718cabf --- /dev/null +++ b/gnu/usr.bin/clang/liblldELF/Makefile @@ -0,0 +1,45 @@ +# $OpenBSD: Makefile,v 1.1 2017/01/22 03:13:07 patrick Exp $ + +LIB= lldELF +NOPROFILE= + +CPPFLAGS+= -I${LLVM_SRCS}/tools/lld/include + +.include <bsd.own.mk> +SRCS= Driver.cpp \ + DriverUtils.cpp \ + EhFrame.cpp \ + Error.cpp \ + ICF.cpp \ + InputFiles.cpp \ + InputSection.cpp \ + LinkerScript.cpp \ + LTO.cpp \ + MarkLive.cpp \ + OutputSections.cpp \ + Relocations.cpp \ + ScriptParser.cpp \ + Strings.cpp \ + SymbolListFile.cpp \ + SymbolTable.cpp \ + Symbols.cpp \ + Target.cpp \ + Thunks.cpp \ + Writer.cpp + +.PATH: ${.CURDIR}/../../../llvm/tools/lld/ELF + +Driver.o: Options.inc + +Options.inc: Options.td + ${.OBJDIR}/../llvm-tblgen/llvm-tblgen -gen-opt-parser-defs \ + -I ${LLVM_SRCS}/include \ + -o ${.TARGET} ${.ALLSRC} + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/lld/Makefile b/gnu/usr.bin/clang/lld/Makefile new file mode 100644 index 00000000000..ae43c25ff6e --- /dev/null +++ b/gnu/usr.bin/clang/lld/Makefile @@ -0,0 +1,59 @@ +# $OpenBSD: Makefile,v 1.1 2017/01/22 03:13:07 patrick Exp $ + +PROG= lld +BINDIR= /usr/bin +SRCS= lld.cpp +NOMAN= + +LDADD+= -ltermlib +DPADD+= ${LIBTERMLIB} + +CPPFLAGS+= ${CLANG_INCLUDES} +CPPFLAGS+= -I${.CURDIR}/../../../llvm/tools/lld/include + +.PATH: ${.CURDIR}/../../../llvm/tools/lld/tools/lld + +depend: + # Nothing here so far ... + +LLVM_LIBDEPS= lldCore \ + lldELF \ + lldConfig \ + LLVMLTO \ + LLVMPasses \ + LLVMOption \ + LLVMObjCARCOpts \ + LLVMipo \ + LLVMVectorize \ + LLVMLinker \ + LLVMIRReader \ + LLVMAsmParser \ + ${BACKEND_ASMPARSER} \ + ${BACKEND_CODEGEN} \ + LLVMSelectionDAG \ + LLVMAsmPrinter \ + LLVMCodeGen \ + LLVMTarget \ + LLVMScalarOpts \ + LLVMInstCombine \ + LLVMInstrumentation \ + LLVMProfileData \ + LLVMCoverage \ + LLVMDebugInfoCodeView \ + LLVMGlobalISel \ + LLVMTransformUtils \ + LLVMBitWriter \ + LLVMAnalysis \ + ${BACKEND_DESC} \ + LLVMObject \ + LLVMMCParser \ + LLVMBitReader \ + LLVMMCDisassembler \ + ${BACKEND_INFO} \ + ${BACKEND_ASMPRINTER} \ + LLVMMC \ + ${BACKEND_UTILS} \ + LLVMCore \ + LLVMSupport + +.include <bsd.prog.mk> |