1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5LIB= llvmsupport 6 7SRCDIR= lib/Support 8SRCS= 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 LEB128.cpp \ 38 LineIterator.cpp \ 39 Locale.cpp \ 40 LockFileManager.cpp \ 41 MD5.cpp \ 42 ManagedStatic.cpp \ 43 MathExtras.cpp \ 44 MemoryBuffer.cpp \ 45 MemoryObject.cpp \ 46 Mutex.cpp \ 47 Options.cpp \ 48 Path.cpp \ 49 PluginLoader.cpp \ 50 PrettyStackTrace.cpp \ 51 Process.cpp \ 52 Program.cpp \ 53 RWMutex.cpp \ 54 RandomNumberGenerator.cpp \ 55 Regex.cpp \ 56 ScaledNumber.cpp \ 57 SearchForAddressOfSpecialSymbol.cpp \ 58 Signals.cpp \ 59 SmallPtrSet.cpp \ 60 SmallVector.cpp \ 61 SourceMgr.cpp \ 62 SpecialCaseList.cpp \ 63 Statistic.cpp \ 64 StreamingMemoryObject.cpp \ 65 StringExtras.cpp \ 66 StringMap.cpp \ 67 StringPool.cpp \ 68 StringRef.cpp \ 69 StringSaver.cpp \ 70 TargetParser.cpp \ 71 TargetRegistry.cpp \ 72 ThreadLocal.cpp \ 73 Threading.cpp \ 74 TimeValue.cpp \ 75 Timer.cpp \ 76 ToolOutputFile.cpp \ 77 Triple.cpp \ 78 Twine.cpp \ 79 Unicode.cpp \ 80 Valgrind.cpp \ 81 YAMLParser.cpp \ 82 YAMLTraits.cpp \ 83 circular_raw_ostream.cpp \ 84 raw_os_ostream.cpp \ 85 raw_ostream.cpp \ 86 regcomp.c \ 87 regerror.c \ 88 regexec.c \ 89 regfree.c \ 90 regstrlcpy.c 91 92.if ${MK_CLANG_EXTRAS} != "no" 93SRCS+= ARMWinEH.cpp \ 94 COM.cpp \ 95 DataStream.cpp \ 96 FileOutputBuffer.cpp \ 97 FileUtilities.cpp \ 98 SystemUtils.cpp \ 99 Watchdog.cpp 100.endif 101 102.if ${MK_CLANG_EXTRAS} != "no" || ${MK_LLDB} != "no" 103SRCS+= Memory.cpp 104.endif 105 106.include "../clang.lib.mk" 107 108# Ugly hack to work around CLOCK_PROCESS_CPUTIME_ID not being properly defined 109# between r239347 and r245428. 110CXXFLAGS.Process.cpp= -DCLOCK_PROCESS_CPUTIME_ID=15 111CXXFLAGS+= ${CXXFLAGS.${.IMPSRC:T}} 112