1LOCAL_PATH:= $(call my-dir) 2 3# ===================================================== 4# Static library: libmcldLD 5# ===================================================== 6 7mcld_ld_SRC_FILES := \ 8 Archive.cpp \ 9 ArchiveReader.cpp \ 10 BranchIsland.cpp \ 11 BranchIslandFactory.cpp \ 12 BinaryReader.cpp \ 13 DWARFLineInfo.cpp \ 14 Diagnostic.cpp \ 15 DiagnosticEngine.cpp \ 16 DiagnosticInfos.cpp \ 17 DiagnosticLineInfo.cpp \ 18 DiagnosticPrinter.cpp \ 19 DebugString.cpp \ 20 DynObjReader.cpp \ 21 ELFBinaryReader.cpp \ 22 ELFSegment.cpp \ 23 ELFSegmentFactory.cpp \ 24 EhFrame.cpp \ 25 EhFrameHdr.cpp \ 26 EhFrameReader.cpp \ 27 GarbageCollection.cpp \ 28 GroupReader.cpp \ 29 IdenticalCodeFolding.cpp \ 30 LDContext.cpp \ 31 LDFileFormat.cpp \ 32 LDReader.cpp \ 33 LDSection.cpp \ 34 LDSymbol.cpp \ 35 MergedStringTable.cpp \ 36 MsgHandler.cpp \ 37 NamePool.cpp \ 38 ObjectWriter.cpp \ 39 RelocData.cpp \ 40 RelocationFactory.cpp \ 41 Relocator.cpp \ 42 ResolveInfo.cpp \ 43 Resolver.cpp \ 44 SectionData.cpp \ 45 SectionSymbolSet.cpp \ 46 StaticResolver.cpp \ 47 StubFactory.cpp \ 48 TextDiagnosticPrinter.cpp 49 50# For the host 51# ===================================================== 52include $(CLEAR_VARS) 53 54LOCAL_C_INCLUDES += external/zlib 55LOCAL_SRC_FILES := $(mcld_ld_SRC_FILES) 56LOCAL_MODULE:= libmcldLD 57 58LOCAL_MODULE_TAGS := optional 59 60include $(MCLD_HOST_BUILD_MK) 61include $(BUILD_HOST_STATIC_LIBRARY) 62 63# For the device 64# ===================================================== 65include $(CLEAR_VARS) 66 67LOCAL_C_INCLUDES += external/zlib 68LOCAL_SRC_FILES := $(mcld_ld_SRC_FILES) 69LOCAL_MODULE:= libmcldLD 70 71LOCAL_MODULE_TAGS := optional 72 73include $(MCLD_DEVICE_BUILD_MK) 74include $(BUILD_STATIC_LIBRARY) 75 76# ===================================================== 77# Static library: libmcldLDVariant 78# ===================================================== 79 80mcld_ld_variant_SRC_FILES := \ 81 BSDArchiveReader.cpp \ 82 GNUArchiveReader.cpp \ 83 ELFDynObjFileFormat.cpp \ 84 ELFDynObjReader.cpp \ 85 ELFExecFileFormat.cpp \ 86 ELFFileFormat.cpp \ 87 ELFObjectReader.cpp \ 88 ELFObjectWriter.cpp \ 89 ELFReader.cpp \ 90 ELFReaderIf.cpp 91 92# For the host 93# ===================================================== 94include $(CLEAR_VARS) 95 96LOCAL_SRC_FILES := $(mcld_ld_variant_SRC_FILES) 97LOCAL_MODULE:= libmcldLDVariant 98 99LOCAL_MODULE_TAGS := optional 100 101include $(MCLD_HOST_BUILD_MK) 102include $(BUILD_HOST_STATIC_LIBRARY) 103 104# For the device 105# ===================================================== 106include $(CLEAR_VARS) 107 108LOCAL_SRC_FILES := $(mcld_ld_variant_SRC_FILES) 109LOCAL_MODULE:= libmcldLDVariant 110 111LOCAL_MODULE_TAGS := optional 112 113include $(MCLD_DEVICE_BUILD_MK) 114include $(BUILD_STATIC_LIBRARY) 115