1*7304104dSAndroid Build Coastguard Worker## Process this file with automake to create Makefile.in 2*7304104dSAndroid Build Coastguard Worker## 3*7304104dSAndroid Build Coastguard Worker## Copyright (C) 2000-2010, 2013, 2014 Red Hat, Inc. 4*7304104dSAndroid Build Coastguard Worker## Copyright (C) 2012 Tilera Corporation 5*7304104dSAndroid Build Coastguard Worker## This file is part of elfutils. 6*7304104dSAndroid Build Coastguard Worker## 7*7304104dSAndroid Build Coastguard Worker## This file is free software; you can redistribute it and/or modify 8*7304104dSAndroid Build Coastguard Worker## it under the terms of either 9*7304104dSAndroid Build Coastguard Worker## 10*7304104dSAndroid Build Coastguard Worker## * the GNU Lesser General Public License as published by the Free 11*7304104dSAndroid Build Coastguard Worker## Software Foundation; either version 3 of the License, or (at 12*7304104dSAndroid Build Coastguard Worker## your option) any later version 13*7304104dSAndroid Build Coastguard Worker## 14*7304104dSAndroid Build Coastguard Worker## or 15*7304104dSAndroid Build Coastguard Worker## 16*7304104dSAndroid Build Coastguard Worker## * the GNU General Public License as published by the Free 17*7304104dSAndroid Build Coastguard Worker## Software Foundation; either version 2 of the License, or (at 18*7304104dSAndroid Build Coastguard Worker## your option) any later version 19*7304104dSAndroid Build Coastguard Worker## 20*7304104dSAndroid Build Coastguard Worker## or both in parallel, as here. 21*7304104dSAndroid Build Coastguard Worker## 22*7304104dSAndroid Build Coastguard Worker## elfutils is distributed in the hope that it will be useful, but 23*7304104dSAndroid Build Coastguard Worker## WITHOUT ANY WARRANTY; without even the implied warranty of 24*7304104dSAndroid Build Coastguard Worker## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 25*7304104dSAndroid Build Coastguard Worker## General Public License for more details. 26*7304104dSAndroid Build Coastguard Worker## 27*7304104dSAndroid Build Coastguard Worker## You should have received copies of the GNU General Public License and 28*7304104dSAndroid Build Coastguard Worker## the GNU Lesser General Public License along with this program. If 29*7304104dSAndroid Build Coastguard Worker## not, see <http://www.gnu.org/licenses/>. 30*7304104dSAndroid Build Coastguard Workerinclude $(top_srcdir)/config/eu.am 31*7304104dSAndroid Build Coastguard Workerif BUILD_STATIC 32*7304104dSAndroid Build Coastguard WorkerAM_CFLAGS += $(fpic_CFLAGS) 33*7304104dSAndroid Build Coastguard Workerendif 34*7304104dSAndroid Build Coastguard WorkerAM_CPPFLAGS += -I$(top_srcdir)/libebl -I$(top_srcdir)/libasm \ 35*7304104dSAndroid Build Coastguard Worker -I$(top_srcdir)/libelf -I$(top_srcdir)/libdw 36*7304104dSAndroid Build Coastguard Worker 37*7304104dSAndroid Build Coastguard Workernoinst_LIBRARIES = libebl_backends.a libebl_backends_pic.a 38*7304104dSAndroid Build Coastguard Worker 39*7304104dSAndroid Build Coastguard Workermodules = i386 sh x86_64 ia64 alpha arm aarch64 sparc ppc ppc64 s390 \ 40*7304104dSAndroid Build Coastguard Worker m68k bpf riscv csky loongarch arc 41*7304104dSAndroid Build Coastguard Worker 42*7304104dSAndroid Build Coastguard Workeri386_SRCS = i386_init.c i386_symbol.c i386_corenote.c i386_cfi.c \ 43*7304104dSAndroid Build Coastguard Worker i386_retval.c i386_regs.c i386_auxv.c \ 44*7304104dSAndroid Build Coastguard Worker i386_initreg.c i386_unwind.c 45*7304104dSAndroid Build Coastguard Worker 46*7304104dSAndroid Build Coastguard Workersh_SRCS = sh_init.c sh_symbol.c sh_corenote.c sh_regs.c sh_retval.c 47*7304104dSAndroid Build Coastguard Worker 48*7304104dSAndroid Build Coastguard Workerx86_64_SRCS = x86_64_init.c x86_64_symbol.c x86_64_corenote.c x86_64_cfi.c \ 49*7304104dSAndroid Build Coastguard Worker x86_64_retval.c x86_64_regs.c x86_64_initreg.c \ 50*7304104dSAndroid Build Coastguard Worker x86_64_unwind.c x32_corenote.c 51*7304104dSAndroid Build Coastguard Worker 52*7304104dSAndroid Build Coastguard Worker 53*7304104dSAndroid Build Coastguard Workeria64_SRCS = ia64_init.c ia64_symbol.c ia64_regs.c ia64_retval.c 54*7304104dSAndroid Build Coastguard Worker 55*7304104dSAndroid Build Coastguard Workeralpha_SRCS = alpha_init.c alpha_symbol.c alpha_retval.c alpha_regs.c \ 56*7304104dSAndroid Build Coastguard Worker alpha_corenote.c alpha_auxv.c 57*7304104dSAndroid Build Coastguard Worker 58*7304104dSAndroid Build Coastguard Workerarm_SRCS = arm_init.c arm_symbol.c arm_regs.c arm_corenote.c \ 59*7304104dSAndroid Build Coastguard Worker arm_auxv.c arm_attrs.c arm_retval.c arm_cfi.c arm_initreg.c \ 60*7304104dSAndroid Build Coastguard Worker arm_machineflagname.c 61*7304104dSAndroid Build Coastguard Worker 62*7304104dSAndroid Build Coastguard Workeraarch64_SRCS = aarch64_init.c aarch64_regs.c aarch64_symbol.c \ 63*7304104dSAndroid Build Coastguard Worker aarch64_corenote.c aarch64_retval.c aarch64_cfi.c \ 64*7304104dSAndroid Build Coastguard Worker aarch64_initreg.c aarch64_unwind.c 65*7304104dSAndroid Build Coastguard Worker 66*7304104dSAndroid Build Coastguard Workersparc_SRCS = sparc_init.c sparc_symbol.c sparc_regs.c sparc_retval.c \ 67*7304104dSAndroid Build Coastguard Worker sparc_corenote.c sparc64_corenote.c sparc_auxv.c sparc_attrs.c \ 68*7304104dSAndroid Build Coastguard Worker sparc_cfi.c sparc_initreg.c 69*7304104dSAndroid Build Coastguard Worker 70*7304104dSAndroid Build Coastguard Workerppc_SRCS = ppc_init.c ppc_symbol.c ppc_retval.c ppc_regs.c \ 71*7304104dSAndroid Build Coastguard Worker ppc_corenote.c ppc_auxv.c ppc_attrs.c \ 72*7304104dSAndroid Build Coastguard Worker ppc_cfi.c ppc_initreg.c 73*7304104dSAndroid Build Coastguard Worker 74*7304104dSAndroid Build Coastguard Workerppc64_SRCS = ppc64_init.c ppc64_symbol.c ppc64_retval.c ppc64_corenote.c \ 75*7304104dSAndroid Build Coastguard Worker ppc64_unwind.c ppc64_resolve_sym.c 76*7304104dSAndroid Build Coastguard Worker 77*7304104dSAndroid Build Coastguard Workers390_SRCS = s390_init.c s390_symbol.c s390_regs.c s390_retval.c \ 78*7304104dSAndroid Build Coastguard Worker s390_corenote.c s390x_corenote.c s390_cfi.c s390_initreg.c \ 79*7304104dSAndroid Build Coastguard Worker s390_unwind.c 80*7304104dSAndroid Build Coastguard Worker 81*7304104dSAndroid Build Coastguard Workerm68k_SRCS = m68k_init.c m68k_symbol.c m68k_regs.c \ 82*7304104dSAndroid Build Coastguard Worker m68k_retval.c m68k_corenote.c m68k_cfi.c m68k_initreg.c 83*7304104dSAndroid Build Coastguard Worker 84*7304104dSAndroid Build Coastguard Worker# m68k prstatus core notes are described by a packed structure 85*7304104dSAndroid Build Coastguard Worker# which has not naturally aligned fields. Since we don't access 86*7304104dSAndroid Build Coastguard Worker# these fields directly, but take their offset to be used later 87*7304104dSAndroid Build Coastguard Worker# to extract the data through elfxx_xlatetom/memmove, this isn't 88*7304104dSAndroid Build Coastguard Worker# an issue. 89*7304104dSAndroid Build Coastguard Workerm68k_corenote_no_Wpacked_not_aligned = yes 90*7304104dSAndroid Build Coastguard Worker 91*7304104dSAndroid Build Coastguard Workerbpf_SRCS = bpf_init.c bpf_regs.c bpf_symbol.c 92*7304104dSAndroid Build Coastguard Worker 93*7304104dSAndroid Build Coastguard Workerriscv_SRCS = riscv_init.c riscv_symbol.c riscv_cfi.c riscv_regs.c \ 94*7304104dSAndroid Build Coastguard Worker riscv_initreg.c riscv_corenote.c riscv64_corenote.c riscv_retval.c 95*7304104dSAndroid Build Coastguard Worker 96*7304104dSAndroid Build Coastguard Workercsky_SRCS = csky_attrs.c csky_init.c csky_symbol.c csky_cfi.c \ 97*7304104dSAndroid Build Coastguard Worker csky_regs.c csky_initreg.c csky_corenote.c 98*7304104dSAndroid Build Coastguard Worker 99*7304104dSAndroid Build Coastguard Workerloongarch_SRCS = loongarch_init.c loongarch_symbol.c loongarch_cfi.c \ 100*7304104dSAndroid Build Coastguard Worker loongarch_regs.c loongarch_retval.c loongarch_initreg.c \ 101*7304104dSAndroid Build Coastguard Worker loongarch_unwind.c loongarch_corenote.c 102*7304104dSAndroid Build Coastguard Worker 103*7304104dSAndroid Build Coastguard Workerarc_SRCS = arc_init.c arc_symbol.c 104*7304104dSAndroid Build Coastguard Worker 105*7304104dSAndroid Build Coastguard Workerlibebl_backends_a_SOURCES = $(i386_SRCS) $(sh_SRCS) $(x86_64_SRCS) \ 106*7304104dSAndroid Build Coastguard Worker $(ia64_SRCS) $(alpha_SRCS) $(arm_SRCS) \ 107*7304104dSAndroid Build Coastguard Worker $(aarch64_SRCS) $(sparc_SRCS) $(ppc_SRCS) \ 108*7304104dSAndroid Build Coastguard Worker $(ppc64_SRCS) $(s390_SRCS) \ 109*7304104dSAndroid Build Coastguard Worker $(m68k_SRCS) $(bpf_SRCS) $(riscv_SRCS) $(csky_SRCS) \ 110*7304104dSAndroid Build Coastguard Worker $(loongarch_SRCS) $(arc_SRCS) 111*7304104dSAndroid Build Coastguard Worker 112*7304104dSAndroid Build Coastguard Workerlibebl_backends_pic_a_SOURCES = 113*7304104dSAndroid Build Coastguard Workeram_libebl_backends_pic_a_OBJECTS = $(libebl_backends_a_SOURCES:.c=.os) 114*7304104dSAndroid Build Coastguard Worker 115*7304104dSAndroid Build Coastguard Workernoinst_HEADERS = libebl_CPU.h common-reloc.c linux-core-note.c x86_corenote.c 116*7304104dSAndroid Build Coastguard WorkerEXTRA_DIST = $(modules:=_reloc.def) 117*7304104dSAndroid Build Coastguard Worker 118*7304104dSAndroid Build Coastguard WorkerMOSTLYCLEANFILES = $(am_libebl_backends_pic_a_OBJECTS) 119