xref: /netbsd-src/external/apache2/llvm/lib/libLLVMSupport/Makefile (revision 53d1339bf7f9c7367b35a9e1ebe693f9b047a47b)
1#	$NetBSD: Makefile,v 1.2 2021/05/30 01:56:54 joerg Exp $
2
3LIB=	LLVMSupport
4
5.include <bsd.init.mk>
6
7.PATH: ${LLVM_SRCDIR}/lib/Support
8
9SRCS+=	AArch64TargetParser.cpp \
10	ABIBreak.cpp \
11	Allocator.cpp \
12	AMDGPUMetadata.cpp \
13	APFixedPoint.cpp \
14	APFloat.cpp \
15	APInt.cpp \
16	APSInt.cpp \
17	ARMAttributeParser.cpp \
18	ARMBuildAttrs.cpp \
19	ARMTargetParser.cpp \
20	ARMWinEH.cpp \
21	AutoConvert.cpp \
22	BinaryStreamError.cpp \
23	BinaryStreamReader.cpp \
24	BinaryStreamRef.cpp \
25	BinaryStreamWriter.cpp \
26	BlockFrequency.cpp \
27	BranchProbability.cpp \
28	BuryPointer.cpp \
29	CachePruning.cpp \
30	Chrono.cpp \
31	circular_raw_ostream.cpp \
32	CodeGenCoverage.cpp \
33	COM.cpp \
34	CommandLine.cpp \
35	Compression.cpp \
36	ConvertUTF.cpp \
37	ConvertUTFWrapper.cpp \
38	CrashRecoveryContext.cpp \
39	CRC.cpp \
40	DAGDeltaAlgorithm.cpp \
41	DataExtractor.cpp \
42	DebugCounter.cpp \
43	Debug.cpp \
44	DeltaAlgorithm.cpp \
45	DJB.cpp \
46	ELFAttributeParser.cpp \
47	ELFAttributes.cpp \
48	Error.cpp \
49	ErrorHandling.cpp \
50	ExtensibleRTTI.cpp \
51	FileCollector.cpp \
52	FileOutputBuffer.cpp \
53	FileUtilities.cpp \
54	FoldingSet.cpp \
55	FormattedStream.cpp \
56	GlobPattern.cpp \
57	GraphWriter.cpp \
58	Hashing.cpp \
59	InitLLVM.cpp \
60	InstructionCost.cpp \
61	IntEqClasses.cpp \
62	IntervalMap.cpp \
63	ItaniumManglingCanonicalizer.cpp \
64	JSON.cpp \
65	KnownBits.cpp \
66	LEB128.cpp \
67	LineIterator.cpp \
68	Locale.cpp \
69	LockFileManager.cpp \
70	LowLevelType.cpp \
71	ManagedStatic.cpp \
72	MathExtras.cpp \
73	MD5.cpp \
74	MemAlloc.cpp \
75	MemoryBuffer.cpp \
76	MemoryBufferRef.cpp \
77	NativeFormatting.cpp \
78	OptimizedStructLayout.cpp \
79	Optional.cpp \
80	Parallel.cpp \
81	PluginLoader.cpp \
82	PrettyStackTrace.cpp \
83	raw_os_ostream.cpp \
84	raw_ostream.cpp \
85	regcomp.c \
86	regerror.c \
87	Regex.cpp \
88	regexec.c \
89	regfree.c \
90	regstrlcpy.c \
91	RISCVAttributeParser.cpp \
92	RISCVAttributes.cpp \
93	ScopedPrinter.cpp \
94	SHA1.cpp \
95	SHA256.cpp \
96	Signposts.cpp \
97	SmallPtrSet.cpp \
98	SmallVector.cpp \
99	SourceMgr.cpp \
100	SpecialCaseList.cpp \
101	Statistic.cpp \
102	StringExtras.cpp \
103	StringMap.cpp \
104	StringRef.cpp \
105	StringSaver.cpp \
106	SuffixTree.cpp \
107	SymbolRemappingReader.cpp \
108	SystemUtils.cpp \
109	TargetParser.cpp \
110	TargetRegistry.cpp \
111	TarWriter.cpp \
112	TimeProfiler.cpp \
113	Timer.cpp \
114	ToolOutputFile.cpp \
115	TrigramIndex.cpp \
116	Triple.cpp \
117	Twine.cpp \
118	TypeSize.cpp \
119	UnicodeCaseFold.cpp \
120	Unicode.cpp \
121	VersionTuple.cpp \
122	VirtualFileSystem.cpp \
123	Watchdog.cpp \
124	WithColor.cpp \
125	X86TargetParser.cpp \
126	xxhash.cpp \
127	YAMLParser.cpp \
128	YAMLTraits.cpp \
129	Z3Solver.cpp
130
131SRCS+=	Atomic.cpp \
132	DynamicLibrary.cpp \
133	Errno.cpp \
134	FormatVariadic.cpp \
135	Host.cpp \
136	Memory.cpp \
137	Path.cpp \
138	Process.cpp \
139	Program.cpp \
140	RWMutex.cpp \
141	RandomNumberGenerator.cpp \
142	ScaledNumber.cpp \
143	Signals.cpp \
144	ThreadLocal.cpp \
145	ThreadPool.cpp \
146	Threading.cpp \
147	Valgrind.cpp
148
149.PATH: ${LLVM_SRCDIR}/lib/Support/Unix
150
151SRCS+=	Host.inc \
152	Memory.inc \
153	Path.inc \
154	Process.inc \
155	Program.inc \
156	Signals.inc \
157	Watchdog.inc \
158	ThreadLocal.inc
159
160.for src in ${SRCS:M*.c}
161CPPFLAGS.${src}+=	-std=gnu99
162.endfor
163
164.if defined(HOSTLIB)
165.include <bsd.hostlib.mk>
166.else
167.include <bsd.lib.mk>
168.endif
169