# $NetBSD: Makefile,v 1.38 2019/04/03 15:21:58 joerg Exp $
PROG_CXX= clang
NOMAN= yes
.if !defined(HOSTPROG)
SYMLINKS+= clang ${BINDIR}/clang++
SYMLINKS+= clang ${BINDIR}/clang-cpp
.endif
.include <bsd.init.mk>
.PATH: ${CLANG_SRCDIR}/tools/driver
SRCS= driver.cpp \
cc1_main.cpp \
cc1as_main.cpp \
cc1gen_reproducer_main.cpp
CLANG_LIBS+= \
clangFrontendTool \
clangFrontend \
clangARCMigrate \
clangStaticAnalyzerFrontend \
clangStaticAnalyzerCheckers \
clangStaticAnalyzerCore \
clangCrossTU \
clangIndex \
clangASTMatchers \
clangCodeGen \
clangFrontendRewrite \
clangFrontend \
clangSerialization \
clangParse \
clangSema \
clangAnalysis \
clangEdit \
clangDriver \
clangRewrite \
clangAST \
clangLex \
clangBasic
LLVM_LIBS+= \
TransformsAggressiveInstCombine \
TransformsCoroutines \
ProfileDataCoverage \
LTO \
ObjCARC \
Passes \
ipo \
IRReader \
AsmParser \
BitReader \
BitWriter
.if !defined(HOSTPROG)
LLVM_LIBS+= \
AMDGPUCodeGen \
AMDGPUTargetInfo \
AMDGPUAsmParser \
AMDGPUMCTargetDesc \
AMDGPUAsmPrinter \
AMDGPUUtils
.endif
LLVM_LIBS+= \
AArch64CodeGen \
AArch64TargetInfo \
AArch64AsmParser \
AArch64MCTargetDesc \
AArch64AsmPrinter \
AArch64Utils \
ARMCodeGen \
ARMTargetInfo \
ARMMCTargetDesc \
ARMAsmParser \
ARMAsmPrinter \
ARMUtils \
MipsCodeGen \
MipsTargetInfo \
MipsAsmPrinter \
MipsAsmParser \
MipsMCTargetDesc \
PowerPCCodeGen \
PowerPCTargetInfo \
PowerPCMCTargetDesc \
PowerPCAsmParser \
PowerPCAsmPrinter \
SparcCodeGen \
SparcTargetInfo \
SparcMCTargetDesc \
SparcAsmParser \
SparcAsmPrinter \
X86CodeGen \
X86MCTargetDesc \
X86TargetInfo \
X86Utils \
X86AsmParser \
X86AsmPrinter \
GlobalISel \
SelectionDAG \
AsmPrinter \
DebugInfoCodeView \
DebugInfoMSF \
CodeGen \
Vectorize \
Target \
InstCombine \
Instrumentation \
ScalarOpts \
ProfileData \
MCDisassembler \
MCParser \
MC \
Analysis \
Object \
Linker \
TransformsUtils \
IR \
Option \
BinaryFormat \
Support \
Demangle
.include "${.PARSEDIR}/../../link.mk"
LDADD+= -lz
.if !defined(HOSTPROG)
DPADD+= ${LIBZ}
.endif
.include <bsd.prog.mk>