1# $NetBSD: Makefile,v 1.30 2015/01/29 20:41:36 joerg Exp $ 2 3LIB= LLVMSupport 4 5NOGCCERROR= yes 6 7.include <bsd.init.mk> 8 9.PATH: ${LLVM_SRCDIR}/lib/Support 10 11SRCS+= APFloat.cpp \ 12 APInt.cpp \ 13 APSInt.cpp \ 14 ARMBuildAttrs.cpp \ 15 ARMWinEH.cpp \ 16 Allocator.cpp \ 17 BlockFrequency.cpp \ 18 BranchProbability.cpp \ 19 circular_raw_ostream.cpp \ 20 CommandLine.cpp \ 21 Compression.cpp \ 22 ConvertUTF.c \ 23 ConvertUTFWrapper.cpp \ 24 CrashRecoveryContext.cpp \ 25 DataExtractor.cpp \ 26 DataStream.cpp \ 27 Debug.cpp \ 28 DeltaAlgorithm.cpp \ 29 DAGDeltaAlgorithm.cpp \ 30 Dwarf.cpp \ 31 ErrorHandling.cpp \ 32 FileOutputBuffer.cpp \ 33 FileUtilities.cpp \ 34 FoldingSet.cpp \ 35 FormattedStream.cpp \ 36 GraphWriter.cpp \ 37 Hashing.cpp \ 38 IntEqClasses.cpp \ 39 IntervalMap.cpp \ 40 IntrusiveRefCntPtr.cpp \ 41 IsInf.cpp \ 42 IsNAN.cpp \ 43 LEB128.cpp \ 44 LineIterator.cpp \ 45 Locale.cpp \ 46 LockFileManager.cpp \ 47 MD5.cpp \ 48 ManagedStatic.cpp \ 49 MathExtras.cpp \ 50 MemoryBuffer.cpp \ 51 MemoryObject.cpp \ 52 Options.cpp \ 53 PluginLoader.cpp \ 54 PrettyStackTrace.cpp \ 55 Regex.cpp \ 56 SmallPtrSet.cpp \ 57 SmallVector.cpp \ 58 SourceMgr.cpp \ 59 SpecialCaseList.cpp \ 60 Statistic.cpp \ 61 StreamingMemoryObject.cpp \ 62 StringExtras.cpp \ 63 StringMap.cpp \ 64 StringPool.cpp \ 65 StringRef.cpp \ 66 SystemUtils.cpp \ 67 TargetRegistry.cpp \ 68 Timer.cpp \ 69 ToolOutputFile.cpp \ 70 Triple.cpp \ 71 Twine.cpp \ 72 Unicode.cpp \ 73 Watchdog.cpp \ 74 YAMLParser.cpp \ 75 YAMLTraits.cpp \ 76 raw_os_ostream.cpp \ 77 raw_ostream.cpp \ 78 regcomp.c \ 79 regerror.c \ 80 regexec.c \ 81 regfree.c \ 82 regstrlcpy.c 83 84SRCS+= Atomic.cpp \ 85 DynamicLibrary.cpp \ 86 Errno.cpp \ 87 Host.cpp \ 88 Memory.cpp \ 89 Mutex.cpp \ 90 Path.cpp \ 91 Process.cpp \ 92 Program.cpp \ 93 RWMutex.cpp \ 94 RandomNumberGenerator.cpp \ 95 ScaledNumber.cpp \ 96 SearchForAddressOfSpecialSymbol.cpp \ 97 Signals.cpp \ 98 ThreadLocal.cpp \ 99 Threading.cpp \ 100 TimeValue.cpp \ 101 Valgrind.cpp 102 103.PATH: ${LLVM_SRCDIR}/lib/Support/Unix 104 105SRCS+= Host.inc \ 106 Memory.inc \ 107 Mutex.inc \ 108 Path.inc \ 109 Process.inc \ 110 Program.inc \ 111 RWMutex.inc \ 112 Signals.inc \ 113 Watchdog.inc \ 114 ThreadLocal.inc \ 115 TimeValue.inc 116 117.for src in ${SRCS:M*.c} 118CPPFLAGS.${src}+= -std=gnu99 119.endfor 120 121.if defined(HOSTLIB) 122.include <bsd.hostlib.mk> 123.else 124.include <bsd.lib.mk> 125.endif 126