Home | History | Annotate | Download | only in libebl
      1 # Copyright (C) 2013 The Android Open Source Project
      2 #
      3 # Licensed under the Apache License, Version 2.0 (the "License");
      4 # you may not use this file except in compliance with the License.
      5 # You may obtain a copy of the License at
      6 #
      7 #      http://www.apache.org/licenses/LICENSE-2.0
      8 #
      9 # Unless required by applicable law or agreed to in writing, software
     10 # distributed under the License is distributed on an "AS IS" BASIS,
     11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     12 # See the License for the specific language governing permissions and
     13 # limitations under the License.
     14 
     15 LOCAL_PATH := $(call my-dir)
     16 
     17 LIBEBL_SRC_FILES := \
     18 eblabicfi.c \
     19 eblauxvinfo.c \
     20 eblbackendname.c \
     21 eblbsspltp.c \
     22 eblcheckobjattr.c \
     23 eblcheckreloctargettype.c \
     24 ebl_check_special_section.c \
     25 ebl_check_special_symbol.c \
     26 eblclosebackend.c \
     27 eblcopyrelocp.c \
     28 eblcorenote.c \
     29 eblcorenotetypename.c \
     30 ebldebugscnp.c \
     31 ebldwarftoregno.c \
     32 ebldynamictagcheck.c \
     33 ebldynamictagname.c \
     34 eblelfclass.c \
     35 eblelfdata.c \
     36 eblelfmachine.c \
     37 eblgotpcreloccheck.c \
     38 eblgstrtab.c \
     39 eblinitreg.c \
     40 eblmachineflagcheck.c \
     41 eblmachineflagname.c \
     42 eblmachinesectionflagcheck.c \
     43 eblnonerelocp.c \
     44 eblnormalizepc.c \
     45 eblobjecttypename.c \
     46 eblobjnote.c \
     47 eblobjnotetypename.c \
     48 eblopenbackend.c \
     49 eblosabiname.c \
     50 eblreginfo.c \
     51 eblrelativerelocp.c \
     52 eblrelocsimpletype.c \
     53 eblreloctypecheck.c \
     54 eblreloctypename.c \
     55 eblrelocvaliduse.c \
     56 eblresolvesym.c \
     57 eblretval.c \
     58 eblsectionname.c \
     59 eblsectionstripp.c \
     60 eblsectiontypename.c \
     61 eblsegmenttypename.c \
     62 eblshflagscombine.c \
     63 eblstother.c \
     64 eblstrtab.c \
     65 eblsymbolbindingname.c \
     66 eblsymboltypename.c \
     67 ebl_syscall_abi.c \
     68 eblsysvhashentrysize.c \
     69 eblunwind.c \
     70 eblwstrtab.c \
     71 
     72 
     73 ifeq ($(HOST_OS),linux)
     74 
     75 #
     76 # host libebl
     77 #
     78 #
     79 include $(CLEAR_VARS)
     80 
     81 LOCAL_SRC_FILES := $(LIBEBL_SRC_FILES)
     82 
     83 LOCAL_C_INCLUDES := \
     84 	$(LOCAL_PATH)/.. \
     85 	$(LOCAL_PATH)/../lib \
     86 	$(LOCAL_PATH)/../libebl \
     87 	$(LOCAL_PATH)/../libasm \
     88 	$(LOCAL_PATH)/../libelf \
     89 	$(LOCAL_PATH)/../libdw
     90 
     91 LOCAL_CFLAGS += -DHAVE_CONFIG_H -std=gnu99 -D_GNU_SOURCE
     92 
     93 LOCAL_MODULE:= libebl
     94 
     95 LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
     96 
     97 include $(BUILD_HOST_STATIC_LIBRARY)
     98 
     99 endif # linux
    100 
    101 #
    102 # target libebl
    103 #
    104 
    105 include $(CLEAR_VARS)
    106 
    107 LOCAL_SRC_FILES := $(LIBEBL_SRC_FILES)
    108 
    109 LOCAL_C_INCLUDES := \
    110 	$(LOCAL_PATH)/.. \
    111 	$(LOCAL_PATH)/../lib \
    112 	$(LOCAL_PATH)/../libebl \
    113 	$(LOCAL_PATH)/../libasm \
    114 	$(LOCAL_PATH)/../libelf \
    115 	$(LOCAL_PATH)/../libdw
    116 
    117 LOCAL_C_INCLUDES += $(LOCAL_PATH)/../bionic-fixup
    118 
    119 LOCAL_CFLAGS += -include $(LOCAL_PATH)/../bionic-fixup/AndroidFixup.h
    120 
    121 LOCAL_CFLAGS += -DHAVE_CONFIG_H -std=gnu99 -D_GNU_SOURCE -Werror -Wno-error=pointer-arith
    122 
    123 LOCAL_MODULE:= libebl
    124 
    125 LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
    126 
    127 include $(BUILD_STATIC_LIBRARY)
    128