diff options
author | rdivacky <rdivacky@FreeBSD.org> | 2010-06-09 19:32:20 +0000 |
---|---|---|
committer | rdivacky <rdivacky@FreeBSD.org> | 2010-06-09 19:32:20 +0000 |
commit | b45271f609e8549582d20aeb42901fd1bb0de186 (patch) | |
tree | 807a6949d3dcd7e0705ad73bc45f2bcd39f9baf9 /usr.bin/clang | |
parent | aad55b23d0526ba56425551b7700ea1fbf2b1353 (diff) | |
download | FreeBSD-src-b45271f609e8549582d20aeb42901fd1bb0de186.zip FreeBSD-src-b45271f609e8549582d20aeb42901fd1bb0de186.tar.gz |
Import the build makefiles for clang/LLVM.
Approved by: ed (mentor)
Diffstat (limited to 'usr.bin/clang')
-rw-r--r-- | usr.bin/clang/Makefile | 5 | ||||
-rw-r--r-- | usr.bin/clang/clang.prog.mk | 14 | ||||
-rw-r--r-- | usr.bin/clang/clang/Makefile | 28 | ||||
-rw-r--r-- | usr.bin/clang/tblgen/Makefile | 23 |
4 files changed, 70 insertions, 0 deletions
diff --git a/usr.bin/clang/Makefile b/usr.bin/clang/Makefile new file mode 100644 index 0000000..37bd04e --- /dev/null +++ b/usr.bin/clang/Makefile @@ -0,0 +1,5 @@ +# $FreeBSD$ + +SUBDIR= clang + +.include <bsd.subdir.mk> diff --git a/usr.bin/clang/clang.prog.mk b/usr.bin/clang/clang.prog.mk new file mode 100644 index 0000000..bf64177 --- /dev/null +++ b/usr.bin/clang/clang.prog.mk @@ -0,0 +1,14 @@ +# $FreeBSD$ + +LLVM_SRCS=${.CURDIR}/../../../contrib/llvm + +.include "../../lib/clang/clang.build.mk" + +.for lib in ${LIBDEPS} +DPADD+= ${.OBJDIR}/../../../lib/clang/lib${lib}/lib${lib}.a +LDADD+= ${.OBJDIR}/../../../lib/clang/lib${lib}/lib${lib}.a +.endfor + +BINDIR?=/usr/bin + +.include <bsd.prog.mk> diff --git a/usr.bin/clang/clang/Makefile b/usr.bin/clang/clang/Makefile new file mode 100644 index 0000000..d1c2254 --- /dev/null +++ b/usr.bin/clang/clang/Makefile @@ -0,0 +1,28 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +PROG_CXX=clang + +SRCDIR= tools/clang/tools/driver +SRCS= cc1_main.cpp cc1as_main.cpp driver.cpp +MAN= + +LINKS= ${BINDIR}/clang ${BINDIR}/clang++ + +TGHDRS= CC1AsOptions CC1Options DiagnosticCommonKinds \ + DiagnosticDriverKinds DiagnosticFrontendKinds \ + DiagnosticLexKinds DiagnosticSemaKinds Options +LIBDEPS=clangfrontend clangdriver clangcodegen clangsema clangchecker \ + clanganalysis clangrewrite clangast clangparse clanglex clangbasic \ + \ + llvminstcombine llvmipo llvmbitwriter llvmbitreader \ + llvmpowerpccodegen llvmpowerpcasmprinter llvmpowerpcinfo \ + llvmx86asmparser llvmx86asmprinter llvmx86codegen llvmx86info \ + llvmmipsasmprinter llvmmipscodegen llvmmipsinfo \ + llvmarmasmparser llvmarmasmprinter llvmarmcodegen \ + llvmselectiondag llvmasmprinter llvmcodegen llvmscalaropts \ + llvmtransformutils llvmmc llvmmcparser llvmipa llvmanalysis \ + llvmtarget llvmmc llvmcore llvmarminfo llvmsupport llvmsystem + +.include "../clang.prog.mk" diff --git a/usr.bin/clang/tblgen/Makefile b/usr.bin/clang/tblgen/Makefile new file mode 100644 index 0000000..ea338bf --- /dev/null +++ b/usr.bin/clang/tblgen/Makefile @@ -0,0 +1,23 @@ +# $FreeBSD$ + +PROG_CXX=tblgen + +SRCDIR= utils/TableGen +SRCS= ARMDecoderEmitter.cpp AsmMatcherEmitter.cpp \ + AsmWriterEmitter.cpp AsmWriterInst.cpp CallingConvEmitter.cpp \ + ClangASTNodesEmitter.cpp ClangDiagnosticsEmitter.cpp \ + CodeEmitterGen.cpp CodeGenDAGPatterns.cpp \ + CodeGenInstruction.cpp CodeGenTarget.cpp DAGISelEmitter.cpp \ + DAGISelMatcher.cpp DAGISelMatcherEmitter.cpp \ + DAGISelMatcherGen.cpp DAGISelMatcherOpt.cpp \ + DisassemblerEmitter.cpp EDEmitter.cpp FastISelEmitter.cpp \ + InstrEnumEmitter.cpp InstrInfoEmitter.cpp IntrinsicEmitter.cpp \ + LLVMCConfigurationEmitter.cpp OptParserEmitter.cpp Record.cpp \ + RegisterInfoEmitter.cpp SubtargetEmitter.cpp TGLexer.cpp \ + TGParser.cpp TGValueTypes.cpp TableGen.cpp TableGenBackend.cpp \ + X86DisassemblerTables.cpp X86RecognizableInstr.cpp +MAN= + +LIBDEPS=llvmsupport llvmsystem + +.include "../clang.prog.mk" |