xref: /minix3/external/bsd/llvm/bin/clang/Makefile (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc#	$NetBSD: Makefile,v 1.33 2015/01/29 20:41:33 joerg Exp $
2f4a2713aSLionel Sambuc
3f4a2713aSLionel SambucPROG_CXX=	clang
4f4a2713aSLionel SambucNOMAN=		yes
5f4a2713aSLionel Sambuc
6f4a2713aSLionel Sambuc.if !defined(HOSTPROG)
7f4a2713aSLionel SambucSYMLINKS+=	clang ${BINDIR}/clang++
8f4a2713aSLionel SambucSYMLINKS+=	clang ${BINDIR}/clang-cpp
94359ff87SLionel Sambuc
104359ff87SLionel Sambuc# if defined(__MINIX)
114359ff87SLionel SambucSYMLINKS+=	clang ${BINDIR}/cc
124359ff87SLionel SambucSYMLINKS+=	clang ${BINDIR}/c++
134359ff87SLionel SambucSYMLINKS+=	clang ${BINDIR}/cpp
144359ff87SLionel Sambuc# endif # defined(__MINIX)
15f4a2713aSLionel Sambuc.endif
16f4a2713aSLionel Sambuc
17f4a2713aSLionel Sambuc.include <bsd.init.mk>
18f4a2713aSLionel Sambuc
19f4a2713aSLionel Sambuc.PATH: ${CLANG_SRCDIR}/tools/driver
20f4a2713aSLionel Sambuc
21f4a2713aSLionel SambucSRCS=	driver.cpp \
22f4a2713aSLionel Sambuc	cc1_main.cpp \
23f4a2713aSLionel Sambuc	cc1as_main.cpp
24f4a2713aSLionel Sambuc
25f4a2713aSLionel SambucCLANG_LIBS+= \
26f4a2713aSLionel Sambuc	clangFrontendTool \
27f4a2713aSLionel Sambuc	clangFrontend \
28f4a2713aSLionel Sambuc	clangARCMigrate \
29f4a2713aSLionel Sambuc	clangStaticAnalyzerFrontend \
30f4a2713aSLionel Sambuc	clangStaticAnalyzerCheckers \
31f4a2713aSLionel Sambuc	clangStaticAnalyzerCore \
32f4a2713aSLionel Sambuc	clangDriver \
33f4a2713aSLionel Sambuc	clangSerialization \
34f4a2713aSLionel Sambuc	clangCodeGen \
35f4a2713aSLionel Sambuc	clangParse \
36f4a2713aSLionel Sambuc	clangSema \
37f4a2713aSLionel Sambuc	clangEdit \
38f4a2713aSLionel Sambuc	clangAnalysis \
39*0a6a1f1dSLionel Sambuc	clangFrontendRewrite \
40*0a6a1f1dSLionel Sambuc	clangRewrite \
41f4a2713aSLionel Sambuc	clangAST \
42f4a2713aSLionel Sambuc	clangLex \
43f4a2713aSLionel Sambuc	clangBasic
44f4a2713aSLionel Sambuc
45f4a2713aSLionel SambucLLVM_LIBS+= \
46f4a2713aSLionel Sambuc	ObjCARC \
47f4a2713aSLionel Sambuc	ipo \
48f4a2713aSLionel Sambuc	IRReader \
49f4a2713aSLionel Sambuc	AsmParser \
50f4a2713aSLionel Sambuc	BitReader \
51f4a2713aSLionel Sambuc	BitWriter \
52f4a2713aSLionel Sambuc	AArch64CodeGen \
53f4a2713aSLionel Sambuc	AArch64TargetInfo \
54f4a2713aSLionel Sambuc	AArch64AsmParser \
55*0a6a1f1dSLionel Sambuc	AArch64MCTargetDesc \
56f4a2713aSLionel Sambuc	AArch64AsmPrinter \
57f4a2713aSLionel Sambuc	AArch64Utils \
58f4a2713aSLionel Sambuc	ARMCodeGen \
59f4a2713aSLionel Sambuc	ARMTargetInfo \
60f4a2713aSLionel Sambuc	ARMMCTargetDesc \
61f4a2713aSLionel Sambuc	ARMAsmParser \
62f4a2713aSLionel Sambuc	ARMAsmPrinter \
63f4a2713aSLionel Sambuc	MipsCodeGen \
64f4a2713aSLionel Sambuc	MipsTargetInfo \
65f4a2713aSLionel Sambuc	MipsAsmPrinter \
66f4a2713aSLionel Sambuc	MipsAsmParser \
67*0a6a1f1dSLionel Sambuc	MipsMCTargetDesc \
68f4a2713aSLionel Sambuc	PowerPCCodeGen \
69f4a2713aSLionel Sambuc	PowerPCTargetInfo \
70f4a2713aSLionel Sambuc	PowerPCMCTargetDesc \
71f4a2713aSLionel Sambuc	PowerPCAsmParser \
72f4a2713aSLionel Sambuc	PowerPCAsmPrinter \
73f4a2713aSLionel Sambuc	SparcCodeGen \
74f4a2713aSLionel Sambuc	SparcTargetInfo \
75f4a2713aSLionel Sambuc	SparcMCTargetDesc \
76*0a6a1f1dSLionel Sambuc	SparcAsmParser \
77*0a6a1f1dSLionel Sambuc	SparcAsmPrinter \
78f4a2713aSLionel Sambuc	X86CodeGen \
79f4a2713aSLionel Sambuc	X86MCTargetDesc \
80f4a2713aSLionel Sambuc	X86TargetInfo \
81f4a2713aSLionel Sambuc	X86Utils \
82f4a2713aSLionel Sambuc	X86AsmParser \
83f4a2713aSLionel Sambuc	X86AsmPrinter \
84f4a2713aSLionel Sambuc	SelectionDAG \
85f4a2713aSLionel Sambuc	AsmPrinter \
86f4a2713aSLionel Sambuc	CodeGen \
87f4a2713aSLionel Sambuc	Vectorize \
88f4a2713aSLionel Sambuc	Target \
89f4a2713aSLionel Sambuc	InstCombine \
90f4a2713aSLionel Sambuc	Instrumentation \
91f4a2713aSLionel Sambuc	ScalarOpts \
92*0a6a1f1dSLionel Sambuc	ProfileData \
93f4a2713aSLionel Sambuc	Analysis \
94f4a2713aSLionel Sambuc	MCDisassembler \
95f4a2713aSLionel Sambuc	MCParser \
96f4a2713aSLionel Sambuc	MC \
97*0a6a1f1dSLionel Sambuc	Object \
98f4a2713aSLionel Sambuc	Linker \
99f4a2713aSLionel Sambuc	TransformsUtils \
100f4a2713aSLionel Sambuc	ipa \
101f4a2713aSLionel Sambuc	IR \
102f4a2713aSLionel Sambuc	Option \
103f4a2713aSLionel Sambuc	Support
104f4a2713aSLionel Sambuc
105f4a2713aSLionel Sambuc.include "${.PARSEDIR}/../../link.mk"
106f4a2713aSLionel Sambuc
107*0a6a1f1dSLionel SambucLDADD+=	-lz
108*0a6a1f1dSLionel Sambuc.if !defined(HOSTPROG)
109*0a6a1f1dSLionel SambucDPADD+=	${LIBZ}
110*0a6a1f1dSLionel Sambuc.endif
111*0a6a1f1dSLionel Sambuc
112f4a2713aSLionel Sambuc.include <bsd.prog.mk>
113