]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/clang/libllvmsupport/Makefile
As submitted upstream in a review, avoid using undefined behavior in
[FreeBSD/FreeBSD.git] / lib / clang / libllvmsupport / Makefile
1 # $FreeBSD$
2
3 .include <src.opts.mk>
4
5 LIB=    llvmsupport
6
7 SRCDIR= lib/Support
8 SRCS=   APFloat.cpp \
9         APInt.cpp \
10         APSInt.cpp \
11         ARMBuildAttrs.cpp \
12         Allocator.cpp \
13         Atomic.cpp \
14         BlockFrequency.cpp \
15         BranchProbability.cpp \
16         CommandLine.cpp \
17         Compression.cpp \
18         ConvertUTF.c \
19         ConvertUTFWrapper.cpp \
20         CrashRecoveryContext.cpp \
21         DAGDeltaAlgorithm.cpp \
22         DataExtractor.cpp \
23         Debug.cpp \
24         DeltaAlgorithm.cpp \
25         Dwarf.cpp \
26         DynamicLibrary.cpp \
27         Errno.cpp \
28         ErrorHandling.cpp \
29         FoldingSet.cpp \
30         FormattedStream.cpp \
31         GraphWriter.cpp \
32         Hashing.cpp \
33         Host.cpp \
34         IntEqClasses.cpp \
35         IntervalMap.cpp \
36         IntrusiveRefCntPtr.cpp \
37         JamCRC.cpp \
38         LEB128.cpp \
39         LineIterator.cpp \
40         Locale.cpp \
41         LockFileManager.cpp \
42         MD5.cpp \
43         ManagedStatic.cpp \
44         MathExtras.cpp \
45         MemoryBuffer.cpp \
46         MemoryObject.cpp \
47         Mutex.cpp \
48         Options.cpp \
49         Path.cpp \
50         PluginLoader.cpp \
51         PrettyStackTrace.cpp \
52         Process.cpp \
53         Program.cpp \
54         RWMutex.cpp \
55         RandomNumberGenerator.cpp \
56         Regex.cpp \
57         ScaledNumber.cpp \
58         SearchForAddressOfSpecialSymbol.cpp \
59         Signals.cpp \
60         SmallPtrSet.cpp \
61         SmallVector.cpp \
62         SourceMgr.cpp \
63         SpecialCaseList.cpp \
64         Statistic.cpp \
65         StreamingMemoryObject.cpp \
66         StringExtras.cpp \
67         StringMap.cpp \
68         StringPool.cpp \
69         StringRef.cpp \
70         StringSaver.cpp \
71         TargetParser.cpp \
72         TargetRegistry.cpp \
73         ThreadLocal.cpp \
74         Threading.cpp \
75         TimeValue.cpp \
76         Timer.cpp \
77         ToolOutputFile.cpp \
78         Triple.cpp \
79         Twine.cpp \
80         Unicode.cpp \
81         Valgrind.cpp \
82         YAMLParser.cpp \
83         YAMLTraits.cpp \
84         circular_raw_ostream.cpp \
85         raw_os_ostream.cpp \
86         raw_ostream.cpp \
87         regcomp.c \
88         regerror.c \
89         regexec.c \
90         regfree.c \
91         regstrlcpy.c
92
93 .if ${MK_CLANG_EXTRAS} != "no"
94 SRCS+=  ARMWinEH.cpp \
95         COM.cpp \
96         DataStream.cpp \
97         FileOutputBuffer.cpp \
98         FileUtilities.cpp \
99         SystemUtils.cpp \
100         ThreadPool.cpp \
101         Watchdog.cpp
102 .endif
103
104 .if ${MK_CLANG_EXTRAS} != "no" || ${MK_LLDB} != "no"
105 SRCS+=  Memory.cpp
106 .endif
107
108 .include "../clang.lib.mk"
109
110 # Ugly hack to work around CLOCK_PROCESS_CPUTIME_ID not being properly defined
111 # between r239347 and r245428.
112 CXXFLAGS.Process.cpp=   -DCLOCK_PROCESS_CPUTIME_ID=15
113 CXXFLAGS+=              ${CXXFLAGS.${.IMPSRC:T}}