Blame libcpu/Makefile.am

Packit 032894
## Process this file with automake to create Makefile.in
Packit 032894
##
Packit 032894
## Copyright (C) 2002-2012 Red Hat, Inc.
Packit 032894
## This file is part of elfutils.
Packit 032894
##
Packit 032894
## This file is free software; you can redistribute it and/or modify
Packit 032894
## it under the terms of either
Packit 032894
##
Packit 032894
##   * the GNU Lesser General Public License as published by the Free
Packit 032894
##     Software Foundation; either version 3 of the License, or (at
Packit 032894
##     your option) any later version
Packit 032894
##
Packit 032894
## or
Packit 032894
##
Packit 032894
##   * the GNU General Public License as published by the Free
Packit 032894
##     Software Foundation; either version 2 of the License, or (at
Packit 032894
##     your option) any later version
Packit 032894
##
Packit 032894
## or both in parallel, as here.
Packit 032894
##
Packit 032894
## elfutils is distributed in the hope that it will be useful, but
Packit 032894
## WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 032894
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 032894
## General Public License for more details.
Packit 032894
##
Packit 032894
## You should have received copies of the GNU General Public License and
Packit 032894
## the GNU Lesser General Public License along with this program.  If
Packit 032894
## not, see <http://www.gnu.org/licenses/>.
Packit 032894
##
Packit 032894
include $(top_srcdir)/config/eu.am
Packit 032894
AM_CPPFLAGS += -I$(srcdir)/../libelf -I$(srcdir)/../libebl \
Packit 032894
	    -I$(srcdir)/../libdw -I$(srcdir)/../libasm
Packit 032894
if BUILD_STATIC
Packit 032894
AM_CFLAGS += $(fpic_CFLAGS)
Packit 032894
endif
Packit 032894
AM_CFLAGS += -fdollars-in-identifiers
Packit 032894
LEXCOMPILE = $(LEX) $(LFLAGS) $(AM_LFLAGS) -P$(
Packit 032894
LEX_OUTPUT_ROOT = lex.$(
Packit 032894
AM_YFLAGS = -p$(
Packit 032894
Packit 032894
noinst_LIBRARIES = libcpu.a libcpu_pic.a
Packit 032894
Packit 032894
noinst_HEADERS = i386_dis.h x86_64_dis.h
Packit 032894
Packit 032894
libcpu_a_SOURCES = i386_disasm.c x86_64_disasm.c bpf_disasm.c riscv_disasm.c
Packit 032894
Packit 032894
libcpu_pic_a_SOURCES =
Packit 032894
am_libcpu_pic_a_OBJECTS = $(libcpu_a_SOURCES:.c=.os)
Packit 032894
Packit 032894
i386_gendis_SOURCES = i386_gendis.c i386_lex.l i386_parse.y
Packit 032894
Packit 032894
i386_disasm.o: i386.mnemonics $(srcdir)/i386_dis.h
Packit 032894
x86_64_disasm.o: x86_64.mnemonics $(srcdir)/x86_64_dis.h
Packit 032894
Packit 032894
%_defs: $(srcdir)/defs/i386
Packit 032894
	$(AM_V_GEN)m4 -D$* -DDISASSEMBLER $< > $@T
Packit 032894
	$(AM_V_at)mv -f $@T $@
Packit 032894
Packit 032894
if MAINTAINER_MODE
Packit 032894
noinst_HEADERS += memory-access.h i386_parse.h i386_data.h
Packit 032894
Packit 032894
noinst_PROGRAMS = i386_gendis$(EXEEXT)
Packit 032894
Packit 032894
$(srcdir)/%_dis.h: %_defs i386_gendis$(EXEEXT)
Packit 032894
	$(AM_V_GEN)./i386_gendis$(EXEEXT) $< > $@T
Packit 032894
	$(AM_V_at)mv -f $@T $@
Packit 032894
Packit 032894
else
Packit 032894
Packit 032894
$(srcdir)/%_dis.h:
Packit 032894
	@echo '*** missing $@; configure with --enable-maintainer-mode'
Packit 032894
	@false
Packit 032894
Packit 032894
endif
Packit 032894
Packit 032894
%.mnemonics: %_defs
Packit 032894
	$(AM_V_GEN)sed '1,/^%%/d;/^#/d;/^[[:space:]]*$$/d;s/[^:]*:\([^[:space:]]*\).*/MNE(\1)/;s/{[^}]*}//g;/INVALID/d' \
Packit 032894
	  $< | sort -u > $@
Packit 032894
Packit 032894
i386_lex_no_Werror = yes
Packit 032894
Packit 032894
libeu = ../lib/libeu.a
Packit 032894
Packit Service 35cfd5
i386_lex_CFLAGS = -Wno-unused-label -Wno-unused-function -Wno-sign-compare \
Packit Service 35cfd5
		  -Wno-implicit-fallthrough
Packit 032894
i386_parse.o: i386_parse.c i386.mnemonics
Packit 032894
i386_parse_CFLAGS = -DNMNES="`wc -l < i386.mnemonics`"
Packit 032894
i386_lex.o: i386_parse.h
Packit 032894
i386_gendis_LDADD = $(libeu) -lm
Packit 032894
Packit 032894
i386_parse.h: i386_parse.c ;
Packit 032894
Packit 032894
bpf_disasm_CFLAGS = -Wno-format-nonliteral
Packit 032894
Packit 032894
EXTRA_DIST = defs/i386
Packit 032894
Packit 032894
MOSTLYCLEANFILES = $(am_libcpu_pic_a_OBJECTS)
Packit 032894
CLEANFILES += $(foreach P,i386 x86_64,$P_defs $P.mnemonics)
Packit 032894
MAINTAINERCLEANFILES = $(foreach P,i386 x86_64, $P_dis.h)