1LOCAL_PATH:= $(call my-dir) 2 3# ===================================================== 4# Static library: libmcldLD 5# ===================================================== 6 7mcld_ld_SRC_FILES := \ 8 ArchiveReader.cpp \ 9 BranchIsland.cpp \ 10 DynObjReader.cpp \ 11 DynObjWriter.cpp \ 12 ELFSegment.cpp \ 13 ELFSegmentFactory.cpp \ 14 Layout.cpp \ 15 LDContext.cpp \ 16 LDFileFormat.cpp \ 17 LDReader.cpp \ 18 LDSection.cpp \ 19 LDSectionFactory.cpp \ 20 LDSymbol.cpp \ 21 LDWriter.cpp \ 22 ObjectWriter.cpp \ 23 Relocation.cpp \ 24 RelocationFactory.cpp \ 25 ResolveInfo.cpp \ 26 ResolveInfoFactory.cpp \ 27 Resolver.cpp \ 28 SectionMap.cpp \ 29 SectionMerger.cpp \ 30 StaticResolver.cpp \ 31 StrSymPool.cpp 32 33# For the host 34# ===================================================== 35include $(CLEAR_VARS) 36 37LOCAL_SRC_FILES := $(mcld_ld_SRC_FILES) 38LOCAL_MODULE:= libmcldLD 39 40LOCAL_MODULE_TAGS := optional 41 42include $(MCLD_HOST_BUILD_MK) 43include $(BUILD_HOST_STATIC_LIBRARY) 44 45# For the device 46# ===================================================== 47include $(CLEAR_VARS) 48 49LOCAL_SRC_FILES := $(mcld_ld_SRC_FILES) 50LOCAL_MODULE:= libmcldLD 51 52LOCAL_MODULE_TAGS := optional 53 54include $(MCLD_DEVICE_BUILD_MK) 55include $(BUILD_STATIC_LIBRARY) 56 57# ===================================================== 58# Static library: libmcldLDVariant 59# ===================================================== 60 61mcld_ld_variant_SRC_FILES := \ 62 BSDArchiveReader.cpp \ 63 GNUArchiveReader.cpp \ 64 ELFDynObjFileFormat.cpp \ 65 ELFDynObjReader.cpp \ 66 ELFDynObjWriter.cpp \ 67 ELFExecFileFormat.cpp \ 68 ELFFileFormat.cpp \ 69 ELFObjectReader.cpp \ 70 ELFObjectWriter.cpp \ 71 ELFReader.cpp \ 72 ELFWriter.cpp 73 74# For the host 75# ===================================================== 76include $(CLEAR_VARS) 77 78LOCAL_SRC_FILES := $(mcld_ld_variant_SRC_FILES) 79LOCAL_MODULE:= libmcldLDVariant 80 81LOCAL_MODULE_TAGS := optional 82 83include $(MCLD_HOST_BUILD_MK) 84include $(BUILD_HOST_STATIC_LIBRARY) 85 86# For the device 87# ===================================================== 88include $(CLEAR_VARS) 89 90LOCAL_SRC_FILES := $(mcld_ld_variant_SRC_FILES) 91LOCAL_MODULE:= libmcldLDVariant 92 93LOCAL_MODULE_TAGS := optional 94 95include $(MCLD_DEVICE_BUILD_MK) 96include $(BUILD_STATIC_LIBRARY) 97