xref: /netbsd-src/external/apache2/llvm/lib/libclangBasic/Makefile (revision 53d1339bf7f9c7367b35a9e1ebe693f9b047a47b)
1#	$NetBSD: Makefile,v 1.2 2021/05/30 01:56:56 joerg Exp $
2
3LIB=	clangBasic
4
5.include <bsd.init.mk>
6
7.PATH: ${CLANG_SRCDIR}/lib/Basic
8
9SRCS+=	Attributes.cpp \
10	Builtins.cpp \
11	CharInfo.cpp \
12	CodeGenOptions.cpp \
13	Cuda.cpp \
14	Diagnostic.cpp \
15	DiagnosticIDs.cpp \
16	DiagnosticOptions.cpp \
17	ExpressionTraits.cpp \
18	FileEntry.cpp \
19	FileManager.cpp \
20	FileSystemStatCache.cpp \
21	IdentifierTable.cpp \
22	LangOptions.cpp \
23	LangStandards.cpp \
24	Module.cpp \
25	NoSanitizeList.cpp \
26	ObjCRuntime.cpp \
27	OpenCLOptions.cpp \
28	OpenMPKinds.cpp \
29	OperatorPrecedence.cpp \
30	ProfileList.cpp \
31	Sanitizers.cpp \
32	SanitizerSpecialCaseList.cpp \
33	SourceLocation.cpp \
34	SourceManager.cpp \
35	Stack.cpp \
36	TargetID.cpp \
37	TargetInfo.cpp \
38	Targets.cpp \
39	TokenKinds.cpp \
40	TypeTraits.cpp \
41	VE.cpp \
42	Version.cpp \
43	Warnings.cpp \
44	XRayInstr.cpp \
45	XRayLists.cpp
46
47.PATH: ${CLANG_SRCDIR}/lib/Basic/Targets
48
49SRCS+=	AArch64.cpp \
50	AMDGPU.cpp \
51	ARC.cpp \
52	ARM.cpp \
53	AVR.cpp \
54	BPF.cpp \
55	Hexagon.cpp \
56	Lanai.cpp \
57	Le64.cpp \
58	M68k.cpp \
59	MSP430.cpp \
60	Mips.cpp \
61	NVPTX.cpp \
62	OSTargets.cpp \
63	PNaCl.cpp \
64	PPC.cpp \
65	RISCV.cpp \
66	SPIR.cpp \
67	Sparc.cpp \
68	SystemZ.cpp \
69	TCE.cpp \
70	WebAssembly.cpp \
71	X86.cpp \
72	XCore.cpp
73
74CPPFLAGS+=	-I${CLANG_SRCDIR}/lib/Basic -I.
75
76VCSVersion.inc: ${LLVM_TOPLEVEL}/Makefile.inc
77	echo '#define LLVM_REVISION "${LLVM_REVISION}"' > VCSVersion.inc.tmp
78	echo '#define LLVM_REPOSITORY "git@github.com:llvm/llvm-project.git"' >> VCSVersion.inc.tmp
79	echo '#define CLANG_REVISION "${CLANG_REVISION}"' >> VCSVersion.inc.tmp
80	echo '#define CLANG_REPOSITORY "git@github.com:llvm/llvm-project.git"' >> VCSVersion.inc.tmp
81	mv VCSVersion.inc.tmp VCSVersion.inc
82
83DPSRCS+=	VCSVersion.inc
84CLEANFILES+=	VCSVersion.inc
85
86.if defined(HOSTLIB)
87.include <bsd.hostlib.mk>
88.else
89.include <bsd.lib.mk>
90.endif
91