Home | History | Annotate | Download | only in LD
      1 LOCAL_PATH:= $(call my-dir)
      2 
      3 # =====================================================
      4 # Static library: libmcldLD
      5 # =====================================================
      6 
      7 mcld_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 # =====================================================
     35 include $(CLEAR_VARS)
     36 
     37 LOCAL_SRC_FILES := $(mcld_ld_SRC_FILES)
     38 LOCAL_MODULE:= libmcldLD
     39 
     40 LOCAL_MODULE_TAGS := optional
     41 
     42 include $(MCLD_HOST_BUILD_MK)
     43 include $(BUILD_HOST_STATIC_LIBRARY)
     44 
     45 # For the device
     46 # =====================================================
     47 include $(CLEAR_VARS)
     48 
     49 LOCAL_SRC_FILES := $(mcld_ld_SRC_FILES)
     50 LOCAL_MODULE:= libmcldLD
     51 
     52 LOCAL_MODULE_TAGS := optional
     53 
     54 include $(MCLD_DEVICE_BUILD_MK)
     55 include $(BUILD_STATIC_LIBRARY)
     56 
     57 # =====================================================
     58 # Static library: libmcldLDVariant
     59 # =====================================================
     60 
     61 mcld_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 # =====================================================
     76 include $(CLEAR_VARS)
     77 
     78 LOCAL_SRC_FILES := $(mcld_ld_variant_SRC_FILES)
     79 LOCAL_MODULE:= libmcldLDVariant
     80 
     81 LOCAL_MODULE_TAGS := optional
     82 
     83 include $(MCLD_HOST_BUILD_MK)
     84 include $(BUILD_HOST_STATIC_LIBRARY)
     85 
     86 # For the device
     87 # =====================================================
     88 include $(CLEAR_VARS)
     89 
     90 LOCAL_SRC_FILES := $(mcld_ld_variant_SRC_FILES)
     91 LOCAL_MODULE:= libmcldLDVariant
     92 
     93 LOCAL_MODULE_TAGS := optional
     94 
     95 include $(MCLD_DEVICE_BUILD_MK)
     96 include $(BUILD_STATIC_LIBRARY)
     97