mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:51:15 +08:00
sim: igen: merge build into top level
This simplifies the build a bit (especially for deps in port subdirs), and avoids recursive make. This in turn speeds up the build, and sets us up for multi-target.
This commit is contained in:
parent
c2783492b6
commit
b6b1c79084
@ -1,3 +1,10 @@
|
||||
2021-04-02 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* Makefile.am [SIM_ENABLE_IGEN]: Include igen/local.mk.
|
||||
* configure.ac: Delete AC_CONFIG_SUBDIRS(igen) call.
|
||||
(SIM_ENABLE_IGEN): Define.
|
||||
* configure, Makefile.in: Regenerate.
|
||||
|
||||
2021-04-02 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* Makefile.am (ACLOCAL_AMFLAGS): Add -Im4.
|
||||
|
@ -22,6 +22,11 @@ srcroot = $(srcdir)/..
|
||||
|
||||
SUBDIRS = @subdirs@
|
||||
|
||||
# We don't set some of these vars here, but we need to define them so they may
|
||||
# be used consistently in local.mk files we include below.
|
||||
noinst_LIBRARIES =
|
||||
EXTRA_PROGRAMS =
|
||||
|
||||
MOSTLYCLEANFILES = core
|
||||
|
||||
COMPILE_FOR_BUILD = $(CC_FOR_BUILD) $(AM_CPPFLAGS) $(CFLAGS_FOR_BUILD)
|
||||
@ -38,4 +43,7 @@ nltvals:
|
||||
$(abs_srcdir)/common/gennltvals.py --cpp "$(CPP)" --output nltvals.def --srcroot $(srcroot)
|
||||
$(SHELL) $(srcroot)/move-if-change nltvals.def $(abs_srcdir)/common/nltvals.def
|
||||
|
||||
if SIM_ENABLE_IGEN
|
||||
include igen/local.mk
|
||||
endif
|
||||
include testsuite/local.mk
|
||||
|
330
sim/Makefile.in
330
sim/Makefile.in
@ -30,6 +30,27 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
# The IGEN simulator generator for GDB, the GNU Debugger.
|
||||
#
|
||||
# Copyright 2002-2021 Free Software Foundation, Inc.
|
||||
#
|
||||
# Contributed by Andrew Cagney.
|
||||
#
|
||||
# This file is part of GDB.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#
|
||||
# Copyright (C) 1997-2021 Free Software Foundation, Inc.
|
||||
#
|
||||
@ -45,6 +66,7 @@
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
VPATH = @srcdir@
|
||||
am__is_gnu_make = { \
|
||||
if test -z '$(MAKELEVEL)'; then \
|
||||
@ -120,6 +142,10 @@ POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
target_triplet = @target@
|
||||
EXTRA_PROGRAMS = $(am__EXEEXT_2)
|
||||
@SIM_ENABLE_IGEN_TRUE@am__append_1 = igen/libigen.a
|
||||
@SIM_ENABLE_IGEN_TRUE@am__append_2 = $(igen_IGEN_TOOLS)
|
||||
@SIM_ENABLE_IGEN_TRUE@am__append_3 = $(igen_IGEN_TOOLS)
|
||||
subdir = .
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/../config/depstand.m4 \
|
||||
@ -136,6 +162,66 @@ am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs
|
||||
CONFIG_CLEAN_FILES =
|
||||
CONFIG_CLEAN_VPATH_FILES =
|
||||
LIBRARIES = $(noinst_LIBRARIES)
|
||||
ARFLAGS = cru
|
||||
AM_V_AR = $(am__v_AR_@AM_V@)
|
||||
am__v_AR_ = $(am__v_AR_@AM_DEFAULT_V@)
|
||||
am__v_AR_0 = @echo " AR " $@;
|
||||
am__v_AR_1 =
|
||||
igen_libigen_a_AR = $(AR) $(ARFLAGS)
|
||||
igen_libigen_a_LIBADD =
|
||||
am__dirstamp = $(am__leading_dot)dirstamp
|
||||
@SIM_ENABLE_IGEN_TRUE@am_igen_libigen_a_OBJECTS = \
|
||||
@SIM_ENABLE_IGEN_TRUE@ igen/table.$(OBJEXT) igen/lf.$(OBJEXT) \
|
||||
@SIM_ENABLE_IGEN_TRUE@ igen/misc.$(OBJEXT) \
|
||||
@SIM_ENABLE_IGEN_TRUE@ igen/filter_host.$(OBJEXT) \
|
||||
@SIM_ENABLE_IGEN_TRUE@ igen/ld-decode.$(OBJEXT) \
|
||||
@SIM_ENABLE_IGEN_TRUE@ igen/ld-cache.$(OBJEXT) \
|
||||
@SIM_ENABLE_IGEN_TRUE@ igen/filter.$(OBJEXT) \
|
||||
@SIM_ENABLE_IGEN_TRUE@ igen/ld-insn.$(OBJEXT) \
|
||||
@SIM_ENABLE_IGEN_TRUE@ igen/gen-model.$(OBJEXT) \
|
||||
@SIM_ENABLE_IGEN_TRUE@ igen/gen-itable.$(OBJEXT) \
|
||||
@SIM_ENABLE_IGEN_TRUE@ igen/gen-icache.$(OBJEXT) \
|
||||
@SIM_ENABLE_IGEN_TRUE@ igen/gen-semantics.$(OBJEXT) \
|
||||
@SIM_ENABLE_IGEN_TRUE@ igen/gen-idecode.$(OBJEXT) \
|
||||
@SIM_ENABLE_IGEN_TRUE@ igen/gen-support.$(OBJEXT) \
|
||||
@SIM_ENABLE_IGEN_TRUE@ igen/gen-engine.$(OBJEXT) \
|
||||
@SIM_ENABLE_IGEN_TRUE@ igen/gen.$(OBJEXT)
|
||||
igen_libigen_a_OBJECTS = $(am_igen_libigen_a_OBJECTS)
|
||||
@SIM_ENABLE_IGEN_TRUE@am__EXEEXT_1 = igen/igen$(EXEEXT) \
|
||||
@SIM_ENABLE_IGEN_TRUE@ igen/filter$(EXEEXT) igen/gen$(EXEEXT) \
|
||||
@SIM_ENABLE_IGEN_TRUE@ igen/ld-cache$(EXEEXT) \
|
||||
@SIM_ENABLE_IGEN_TRUE@ igen/ld-decode$(EXEEXT) \
|
||||
@SIM_ENABLE_IGEN_TRUE@ igen/ld-insn$(EXEEXT) \
|
||||
@SIM_ENABLE_IGEN_TRUE@ igen/table$(EXEEXT)
|
||||
@SIM_ENABLE_IGEN_TRUE@am__EXEEXT_2 = $(am__EXEEXT_1)
|
||||
am_igen_filter_OBJECTS =
|
||||
igen_filter_OBJECTS = $(am_igen_filter_OBJECTS)
|
||||
@SIM_ENABLE_IGEN_TRUE@igen_filter_DEPENDENCIES = igen/filter-main.o \
|
||||
@SIM_ENABLE_IGEN_TRUE@ igen/libigen.a
|
||||
am_igen_gen_OBJECTS =
|
||||
igen_gen_OBJECTS = $(am_igen_gen_OBJECTS)
|
||||
@SIM_ENABLE_IGEN_TRUE@igen_gen_DEPENDENCIES = igen/gen-main.o \
|
||||
@SIM_ENABLE_IGEN_TRUE@ igen/libigen.a
|
||||
@SIM_ENABLE_IGEN_TRUE@am_igen_igen_OBJECTS = igen/igen.$(OBJEXT)
|
||||
igen_igen_OBJECTS = $(am_igen_igen_OBJECTS)
|
||||
@SIM_ENABLE_IGEN_TRUE@igen_igen_DEPENDENCIES = igen/libigen.a
|
||||
am_igen_ld_cache_OBJECTS =
|
||||
igen_ld_cache_OBJECTS = $(am_igen_ld_cache_OBJECTS)
|
||||
@SIM_ENABLE_IGEN_TRUE@igen_ld_cache_DEPENDENCIES = \
|
||||
@SIM_ENABLE_IGEN_TRUE@ igen/ld-cache-main.o igen/libigen.a
|
||||
am_igen_ld_decode_OBJECTS =
|
||||
igen_ld_decode_OBJECTS = $(am_igen_ld_decode_OBJECTS)
|
||||
@SIM_ENABLE_IGEN_TRUE@igen_ld_decode_DEPENDENCIES = \
|
||||
@SIM_ENABLE_IGEN_TRUE@ igen/ld-decode-main.o igen/libigen.a
|
||||
am_igen_ld_insn_OBJECTS =
|
||||
igen_ld_insn_OBJECTS = $(am_igen_ld_insn_OBJECTS)
|
||||
@SIM_ENABLE_IGEN_TRUE@igen_ld_insn_DEPENDENCIES = igen/ld-insn-main.o \
|
||||
@SIM_ENABLE_IGEN_TRUE@ igen/libigen.a
|
||||
am_igen_table_OBJECTS =
|
||||
igen_table_OBJECTS = $(am_igen_table_OBJECTS)
|
||||
@SIM_ENABLE_IGEN_TRUE@igen_table_DEPENDENCIES = igen/table-main.o \
|
||||
@SIM_ENABLE_IGEN_TRUE@ igen/libigen.a
|
||||
AM_V_P = $(am__v_P_@AM_V@)
|
||||
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
|
||||
am__v_P_0 = false
|
||||
@ -148,7 +234,26 @@ AM_V_at = $(am__v_at_@AM_V@)
|
||||
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
|
||||
am__v_at_0 = @
|
||||
am__v_at_1 =
|
||||
SOURCES =
|
||||
DEFAULT_INCLUDES = -I.@am__isrc@
|
||||
depcomp = $(SHELL) $(top_srcdir)/../depcomp
|
||||
am__depfiles_maybe = depfiles
|
||||
am__mv = mv -f
|
||||
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
|
||||
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||
AM_V_CC = $(am__v_CC_@AM_V@)
|
||||
am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
|
||||
am__v_CC_0 = @echo " CC " $@;
|
||||
am__v_CC_1 =
|
||||
CCLD = $(CC)
|
||||
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
|
||||
AM_V_CCLD = $(am__v_CCLD_@AM_V@)
|
||||
am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
|
||||
am__v_CCLD_0 = @echo " CCLD " $@;
|
||||
am__v_CCLD_1 =
|
||||
SOURCES = $(igen_libigen_a_SOURCES) $(igen_filter_SOURCES) \
|
||||
$(igen_gen_SOURCES) $(igen_igen_SOURCES) \
|
||||
$(igen_ld_cache_SOURCES) $(igen_ld_decode_SOURCES) \
|
||||
$(igen_ld_insn_SOURCES) $(igen_table_SOURCES)
|
||||
RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
|
||||
ctags-recursive dvi-recursive html-recursive info-recursive \
|
||||
install-data-recursive install-dvi-recursive \
|
||||
@ -306,18 +411,65 @@ AUTOMAKE_OPTIONS = dejagnu foreign no-dist subdir-objects
|
||||
ACLOCAL_AMFLAGS = -Im4 -I.. -I../config
|
||||
srcroot = $(srcdir)/..
|
||||
SUBDIRS = @subdirs@
|
||||
MOSTLYCLEANFILES = core site-srcdir.exp testrun.log testrun.sum
|
||||
|
||||
# We don't set some of these vars here, but we need to define them so they may
|
||||
# be used consistently in local.mk files we include below.
|
||||
noinst_LIBRARIES = $(am__append_1)
|
||||
MOSTLYCLEANFILES = core $(am__append_3) site-srcdir.exp testrun.log \
|
||||
testrun.sum
|
||||
COMPILE_FOR_BUILD = $(CC_FOR_BUILD) $(AM_CPPFLAGS) $(CFLAGS_FOR_BUILD)
|
||||
LINK_FOR_BUILD = $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@
|
||||
@SIM_ENABLE_IGEN_TRUE@igen_libigen_a_SOURCES = \
|
||||
@SIM_ENABLE_IGEN_TRUE@ igen/table.c \
|
||||
@SIM_ENABLE_IGEN_TRUE@ igen/lf.c \
|
||||
@SIM_ENABLE_IGEN_TRUE@ igen/misc.c \
|
||||
@SIM_ENABLE_IGEN_TRUE@ igen/filter_host.c \
|
||||
@SIM_ENABLE_IGEN_TRUE@ igen/ld-decode.c \
|
||||
@SIM_ENABLE_IGEN_TRUE@ igen/ld-cache.c \
|
||||
@SIM_ENABLE_IGEN_TRUE@ igen/filter.c \
|
||||
@SIM_ENABLE_IGEN_TRUE@ igen/ld-insn.c \
|
||||
@SIM_ENABLE_IGEN_TRUE@ igen/gen-model.c \
|
||||
@SIM_ENABLE_IGEN_TRUE@ igen/gen-itable.c \
|
||||
@SIM_ENABLE_IGEN_TRUE@ igen/gen-icache.c \
|
||||
@SIM_ENABLE_IGEN_TRUE@ igen/gen-semantics.c \
|
||||
@SIM_ENABLE_IGEN_TRUE@ igen/gen-idecode.c \
|
||||
@SIM_ENABLE_IGEN_TRUE@ igen/gen-support.c \
|
||||
@SIM_ENABLE_IGEN_TRUE@ igen/gen-engine.c \
|
||||
@SIM_ENABLE_IGEN_TRUE@ igen/gen.c
|
||||
|
||||
@SIM_ENABLE_IGEN_TRUE@igen_igen_SOURCES = igen/igen.c
|
||||
@SIM_ENABLE_IGEN_TRUE@igen_igen_LDADD = igen/libigen.a
|
||||
@SIM_ENABLE_IGEN_TRUE@igen_filter_SOURCES =
|
||||
@SIM_ENABLE_IGEN_TRUE@igen_filter_LDADD = igen/filter-main.o igen/libigen.a
|
||||
@SIM_ENABLE_IGEN_TRUE@igen_gen_SOURCES =
|
||||
@SIM_ENABLE_IGEN_TRUE@igen_gen_LDADD = igen/gen-main.o igen/libigen.a
|
||||
@SIM_ENABLE_IGEN_TRUE@igen_ld_cache_SOURCES =
|
||||
@SIM_ENABLE_IGEN_TRUE@igen_ld_cache_LDADD = igen/ld-cache-main.o igen/libigen.a
|
||||
@SIM_ENABLE_IGEN_TRUE@igen_ld_decode_SOURCES =
|
||||
@SIM_ENABLE_IGEN_TRUE@igen_ld_decode_LDADD = igen/ld-decode-main.o igen/libigen.a
|
||||
@SIM_ENABLE_IGEN_TRUE@igen_ld_insn_SOURCES =
|
||||
@SIM_ENABLE_IGEN_TRUE@igen_ld_insn_LDADD = igen/ld-insn-main.o igen/libigen.a
|
||||
@SIM_ENABLE_IGEN_TRUE@igen_table_SOURCES =
|
||||
@SIM_ENABLE_IGEN_TRUE@igen_table_LDADD = igen/table-main.o igen/libigen.a
|
||||
@SIM_ENABLE_IGEN_TRUE@igen_IGEN_TOOLS = \
|
||||
@SIM_ENABLE_IGEN_TRUE@ igen/igen \
|
||||
@SIM_ENABLE_IGEN_TRUE@ igen/filter \
|
||||
@SIM_ENABLE_IGEN_TRUE@ igen/gen \
|
||||
@SIM_ENABLE_IGEN_TRUE@ igen/ld-cache \
|
||||
@SIM_ENABLE_IGEN_TRUE@ igen/ld-decode \
|
||||
@SIM_ENABLE_IGEN_TRUE@ igen/ld-insn \
|
||||
@SIM_ENABLE_IGEN_TRUE@ igen/table
|
||||
|
||||
|
||||
# Tweak the site.exp so it works with plain `runtest` from user.
|
||||
EXTRA_DEJAGNU_SITE_CONFIG = site-srcdir.exp
|
||||
all: all-recursive
|
||||
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .c .o .obj
|
||||
am--refresh: Makefile
|
||||
@:
|
||||
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/testsuite/local.mk $(am__configure_deps)
|
||||
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/igen/local.mk $(srcdir)/testsuite/local.mk $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
@ -339,7 +491,7 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
$(srcdir)/testsuite/local.mk $(am__empty):
|
||||
$(srcdir)/igen/local.mk $(srcdir)/testsuite/local.mk $(am__empty):
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
$(SHELL) ./config.status --recheck
|
||||
@ -350,6 +502,122 @@ $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
|
||||
$(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
|
||||
$(am__aclocal_m4_deps):
|
||||
|
||||
clean-noinstLIBRARIES:
|
||||
-test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
|
||||
igen/$(am__dirstamp):
|
||||
@$(MKDIR_P) igen
|
||||
@: > igen/$(am__dirstamp)
|
||||
igen/$(DEPDIR)/$(am__dirstamp):
|
||||
@$(MKDIR_P) igen/$(DEPDIR)
|
||||
@: > igen/$(DEPDIR)/$(am__dirstamp)
|
||||
igen/table.$(OBJEXT): igen/$(am__dirstamp) \
|
||||
igen/$(DEPDIR)/$(am__dirstamp)
|
||||
igen/lf.$(OBJEXT): igen/$(am__dirstamp) igen/$(DEPDIR)/$(am__dirstamp)
|
||||
igen/misc.$(OBJEXT): igen/$(am__dirstamp) \
|
||||
igen/$(DEPDIR)/$(am__dirstamp)
|
||||
igen/filter_host.$(OBJEXT): igen/$(am__dirstamp) \
|
||||
igen/$(DEPDIR)/$(am__dirstamp)
|
||||
igen/ld-decode.$(OBJEXT): igen/$(am__dirstamp) \
|
||||
igen/$(DEPDIR)/$(am__dirstamp)
|
||||
igen/ld-cache.$(OBJEXT): igen/$(am__dirstamp) \
|
||||
igen/$(DEPDIR)/$(am__dirstamp)
|
||||
igen/filter.$(OBJEXT): igen/$(am__dirstamp) \
|
||||
igen/$(DEPDIR)/$(am__dirstamp)
|
||||
igen/ld-insn.$(OBJEXT): igen/$(am__dirstamp) \
|
||||
igen/$(DEPDIR)/$(am__dirstamp)
|
||||
igen/gen-model.$(OBJEXT): igen/$(am__dirstamp) \
|
||||
igen/$(DEPDIR)/$(am__dirstamp)
|
||||
igen/gen-itable.$(OBJEXT): igen/$(am__dirstamp) \
|
||||
igen/$(DEPDIR)/$(am__dirstamp)
|
||||
igen/gen-icache.$(OBJEXT): igen/$(am__dirstamp) \
|
||||
igen/$(DEPDIR)/$(am__dirstamp)
|
||||
igen/gen-semantics.$(OBJEXT): igen/$(am__dirstamp) \
|
||||
igen/$(DEPDIR)/$(am__dirstamp)
|
||||
igen/gen-idecode.$(OBJEXT): igen/$(am__dirstamp) \
|
||||
igen/$(DEPDIR)/$(am__dirstamp)
|
||||
igen/gen-support.$(OBJEXT): igen/$(am__dirstamp) \
|
||||
igen/$(DEPDIR)/$(am__dirstamp)
|
||||
igen/gen-engine.$(OBJEXT): igen/$(am__dirstamp) \
|
||||
igen/$(DEPDIR)/$(am__dirstamp)
|
||||
igen/gen.$(OBJEXT): igen/$(am__dirstamp) \
|
||||
igen/$(DEPDIR)/$(am__dirstamp)
|
||||
|
||||
igen/libigen.a: $(igen_libigen_a_OBJECTS) $(igen_libigen_a_DEPENDENCIES) $(EXTRA_igen_libigen_a_DEPENDENCIES) igen/$(am__dirstamp)
|
||||
$(AM_V_at)-rm -f igen/libigen.a
|
||||
$(AM_V_AR)$(igen_libigen_a_AR) igen/libigen.a $(igen_libigen_a_OBJECTS) $(igen_libigen_a_LIBADD)
|
||||
$(AM_V_at)$(RANLIB) igen/libigen.a
|
||||
|
||||
igen/filter$(EXEEXT): $(igen_filter_OBJECTS) $(igen_filter_DEPENDENCIES) $(EXTRA_igen_filter_DEPENDENCIES) igen/$(am__dirstamp)
|
||||
@rm -f igen/filter$(EXEEXT)
|
||||
$(AM_V_CCLD)$(LINK) $(igen_filter_OBJECTS) $(igen_filter_LDADD) $(LIBS)
|
||||
|
||||
igen/gen$(EXEEXT): $(igen_gen_OBJECTS) $(igen_gen_DEPENDENCIES) $(EXTRA_igen_gen_DEPENDENCIES) igen/$(am__dirstamp)
|
||||
@rm -f igen/gen$(EXEEXT)
|
||||
$(AM_V_CCLD)$(LINK) $(igen_gen_OBJECTS) $(igen_gen_LDADD) $(LIBS)
|
||||
igen/igen.$(OBJEXT): igen/$(am__dirstamp) \
|
||||
igen/$(DEPDIR)/$(am__dirstamp)
|
||||
|
||||
@SIM_ENABLE_IGEN_FALSE@igen/igen$(EXEEXT): $(igen_igen_OBJECTS) $(igen_igen_DEPENDENCIES) $(EXTRA_igen_igen_DEPENDENCIES) igen/$(am__dirstamp)
|
||||
@SIM_ENABLE_IGEN_FALSE@ @rm -f igen/igen$(EXEEXT)
|
||||
@SIM_ENABLE_IGEN_FALSE@ $(AM_V_CCLD)$(LINK) $(igen_igen_OBJECTS) $(igen_igen_LDADD) $(LIBS)
|
||||
|
||||
igen/ld-cache$(EXEEXT): $(igen_ld_cache_OBJECTS) $(igen_ld_cache_DEPENDENCIES) $(EXTRA_igen_ld_cache_DEPENDENCIES) igen/$(am__dirstamp)
|
||||
@rm -f igen/ld-cache$(EXEEXT)
|
||||
$(AM_V_CCLD)$(LINK) $(igen_ld_cache_OBJECTS) $(igen_ld_cache_LDADD) $(LIBS)
|
||||
|
||||
igen/ld-decode$(EXEEXT): $(igen_ld_decode_OBJECTS) $(igen_ld_decode_DEPENDENCIES) $(EXTRA_igen_ld_decode_DEPENDENCIES) igen/$(am__dirstamp)
|
||||
@rm -f igen/ld-decode$(EXEEXT)
|
||||
$(AM_V_CCLD)$(LINK) $(igen_ld_decode_OBJECTS) $(igen_ld_decode_LDADD) $(LIBS)
|
||||
|
||||
igen/ld-insn$(EXEEXT): $(igen_ld_insn_OBJECTS) $(igen_ld_insn_DEPENDENCIES) $(EXTRA_igen_ld_insn_DEPENDENCIES) igen/$(am__dirstamp)
|
||||
@rm -f igen/ld-insn$(EXEEXT)
|
||||
$(AM_V_CCLD)$(LINK) $(igen_ld_insn_OBJECTS) $(igen_ld_insn_LDADD) $(LIBS)
|
||||
|
||||
igen/table$(EXEEXT): $(igen_table_OBJECTS) $(igen_table_DEPENDENCIES) $(EXTRA_igen_table_DEPENDENCIES) igen/$(am__dirstamp)
|
||||
@rm -f igen/table$(EXEEXT)
|
||||
$(AM_V_CCLD)$(LINK) $(igen_table_OBJECTS) $(igen_table_LDADD) $(LIBS)
|
||||
|
||||
mostlyclean-compile:
|
||||
-rm -f *.$(OBJEXT)
|
||||
-rm -f igen/*.$(OBJEXT)
|
||||
|
||||
distclean-compile:
|
||||
-rm -f *.tab.c
|
||||
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@igen/$(DEPDIR)/filter.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@igen/$(DEPDIR)/filter_host.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@igen/$(DEPDIR)/gen-engine.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@igen/$(DEPDIR)/gen-icache.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@igen/$(DEPDIR)/gen-idecode.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@igen/$(DEPDIR)/gen-itable.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@igen/$(DEPDIR)/gen-model.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@igen/$(DEPDIR)/gen-semantics.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@igen/$(DEPDIR)/gen-support.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@igen/$(DEPDIR)/gen.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@igen/$(DEPDIR)/igen.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@igen/$(DEPDIR)/ld-cache.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@igen/$(DEPDIR)/ld-decode.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@igen/$(DEPDIR)/ld-insn.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@igen/$(DEPDIR)/lf.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@igen/$(DEPDIR)/misc.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@igen/$(DEPDIR)/table.Po@am__quote@
|
||||
|
||||
.c.o:
|
||||
@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
|
||||
@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
|
||||
@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
|
||||
|
||||
.c.obj:
|
||||
@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\
|
||||
@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\
|
||||
@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
|
||||
|
||||
# This directory's subdirectories are mostly independent; you can cd
|
||||
# into them and run 'make' without going through this Makefile.
|
||||
# To change the values of 'make' variables: instead of editing Makefiles,
|
||||
@ -490,7 +758,7 @@ distclean-DEJAGNU:
|
||||
check-am: all-am
|
||||
$(MAKE) $(AM_MAKEFLAGS) check-DEJAGNU
|
||||
check: check-recursive
|
||||
all-am: Makefile
|
||||
all-am: Makefile $(LIBRARIES)
|
||||
installdirs: installdirs-recursive
|
||||
installdirs-am:
|
||||
install: install-recursive
|
||||
@ -520,19 +788,22 @@ clean-generic:
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
|
||||
-rm -f igen/$(DEPDIR)/$(am__dirstamp)
|
||||
-rm -f igen/$(am__dirstamp)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
clean: clean-recursive
|
||||
|
||||
clean-am: clean-generic mostlyclean-am
|
||||
clean-am: clean-generic clean-noinstLIBRARIES mostlyclean-am
|
||||
|
||||
distclean: distclean-recursive
|
||||
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
||||
-rm -rf igen/$(DEPDIR)
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-DEJAGNU distclean-generic \
|
||||
distclean-tags
|
||||
distclean-am: clean-am distclean-DEJAGNU distclean-compile \
|
||||
distclean-generic distclean-tags
|
||||
|
||||
dvi: dvi-recursive
|
||||
|
||||
@ -577,12 +848,13 @@ installcheck-am:
|
||||
maintainer-clean: maintainer-clean-recursive
|
||||
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
||||
-rm -rf $(top_srcdir)/autom4te.cache
|
||||
-rm -rf igen/$(DEPDIR)
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-recursive
|
||||
|
||||
mostlyclean-am: mostlyclean-generic
|
||||
mostlyclean-am: mostlyclean-compile mostlyclean-generic
|
||||
|
||||
pdf: pdf-recursive
|
||||
|
||||
@ -598,16 +870,18 @@ uninstall-am:
|
||||
|
||||
.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \
|
||||
am--refresh check check-DEJAGNU check-am clean clean-cscope \
|
||||
clean-generic cscope cscopelist-am ctags ctags-am distclean \
|
||||
distclean-DEJAGNU distclean-generic distclean-tags dvi dvi-am \
|
||||
html html-am info info-am install install-am install-data \
|
||||
install-data-am install-dvi install-dvi-am install-exec \
|
||||
install-exec-am install-html install-html-am install-info \
|
||||
install-info-am install-man install-pdf install-pdf-am \
|
||||
install-ps install-ps-am install-strip installcheck \
|
||||
installcheck-am installdirs installdirs-am maintainer-clean \
|
||||
maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
|
||||
pdf-am ps ps-am tags tags-am uninstall uninstall-am
|
||||
clean-generic clean-noinstLIBRARIES cscope cscopelist-am ctags \
|
||||
ctags-am distclean distclean-DEJAGNU distclean-compile \
|
||||
distclean-generic distclean-tags dvi dvi-am html html-am info \
|
||||
info-am install install-am install-data install-data-am \
|
||||
install-dvi install-dvi-am install-exec install-exec-am \
|
||||
install-html install-html-am install-info install-info-am \
|
||||
install-man install-pdf install-pdf-am install-ps \
|
||||
install-ps-am install-strip installcheck installcheck-am \
|
||||
installdirs installdirs-am maintainer-clean \
|
||||
maintainer-clean-generic mostlyclean mostlyclean-compile \
|
||||
mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \
|
||||
uninstall-am
|
||||
|
||||
.PRECIOUS: Makefile
|
||||
|
||||
@ -623,6 +897,24 @@ nltvals:
|
||||
$(abs_srcdir)/common/gennltvals.py --cpp "$(CPP)" --output nltvals.def --srcroot $(srcroot)
|
||||
$(SHELL) $(srcroot)/move-if-change nltvals.def $(abs_srcdir)/common/nltvals.def
|
||||
|
||||
# This makes sure igen is available before building the arch-subdirs which
|
||||
# need to run the igen tool.
|
||||
@SIM_ENABLE_IGEN_TRUE@all-recursive: igen/igen$(EXEEXT)
|
||||
|
||||
# Alias for developers.
|
||||
@SIM_ENABLE_IGEN_TRUE@igen: igen/igen$(EXEEXT)
|
||||
|
||||
@SIM_ENABLE_IGEN_TRUE@igen/igen$(EXEEXT): $(igen_igen_OBJECTS) $(igen_igen_DEPENDENCIES) igen/$(am__dirstamp)
|
||||
@SIM_ENABLE_IGEN_TRUE@ $(AM_V_CCLD)$(LINK_FOR_BUILD) $(igen_igen_OBJECTS) $(igen_igen_LDADD)
|
||||
|
||||
# igen is a build-time only tool. Override the default rules for it.
|
||||
@SIM_ENABLE_IGEN_TRUE@igen/%.o: igen/%.c
|
||||
@SIM_ENABLE_IGEN_TRUE@ $(AM_V_CC)$(COMPILE_FOR_BUILD) -c $< -o $@
|
||||
|
||||
# Build some of the files in standalone mode for developers of igen itself.
|
||||
@SIM_ENABLE_IGEN_TRUE@igen/%-main.o: igen/%.c
|
||||
@SIM_ENABLE_IGEN_TRUE@ $(AM_V_CC)$(COMPILE_FOR_BUILD) -DMAIN -c $< -o $@
|
||||
|
||||
site-srcdir.exp: Makefile
|
||||
echo "set srcdir \"$(srcdir)/testsuite\"" > $@
|
||||
|
||||
|
21
sim/configure
vendored
21
sim/configure
vendored
@ -627,6 +627,8 @@ ac_subst_vars='am__EXEEXT_FALSE
|
||||
am__EXEEXT_TRUE
|
||||
LTLIBOBJS
|
||||
LIBOBJS
|
||||
SIM_ENABLE_IGEN_FALSE
|
||||
SIM_ENABLE_IGEN_TRUE
|
||||
subdirs
|
||||
AM_BACKSLASH
|
||||
AM_DEFAULT_VERBOSITY
|
||||
@ -781,8 +783,7 @@ sh
|
||||
erc32
|
||||
ppc
|
||||
ft32
|
||||
v850
|
||||
igen'
|
||||
v850'
|
||||
|
||||
# Initialize some variables set by options.
|
||||
ac_init_help=
|
||||
@ -4961,11 +4962,15 @@ subdirs="$subdirs aarch64"
|
||||
sim_igen=yes
|
||||
;;
|
||||
esac
|
||||
if test "$sim_igen" = yes; then
|
||||
subdirs="$subdirs igen"
|
||||
|
||||
fi
|
||||
fi
|
||||
if test "$sim_igen" = "yes"; then
|
||||
SIM_ENABLE_IGEN_TRUE=
|
||||
SIM_ENABLE_IGEN_FALSE='#'
|
||||
else
|
||||
SIM_ENABLE_IGEN_TRUE='#'
|
||||
SIM_ENABLE_IGEN_FALSE=
|
||||
fi
|
||||
|
||||
|
||||
ac_config_files="$ac_config_files Makefile"
|
||||
|
||||
@ -5143,6 +5148,10 @@ else
|
||||
am__EXEEXT_FALSE=
|
||||
fi
|
||||
|
||||
if test -z "${SIM_ENABLE_IGEN_TRUE}" && test -z "${SIM_ENABLE_IGEN_FALSE}"; then
|
||||
as_fn_error $? "conditional \"SIM_ENABLE_IGEN\" was never defined.
|
||||
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
||||
fi
|
||||
|
||||
: "${CONFIG_STATUS=./config.status}"
|
||||
ac_write_fail=0
|
||||
|
@ -123,10 +123,8 @@ if test "${enable_sim}" != no; then
|
||||
sim_igen=yes
|
||||
;;
|
||||
esac
|
||||
if test "$sim_igen" = yes; then
|
||||
AC_CONFIG_SUBDIRS(igen)
|
||||
fi
|
||||
fi
|
||||
AM_CONDITIONAL([SIM_ENABLE_IGEN], [test "$sim_igen" = "yes"])
|
||||
|
||||
AC_CONFIG_FILES([Makefile])
|
||||
AC_OUTPUT
|
||||
|
@ -1,3 +1,8 @@
|
||||
2021-04-02 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* local.mk: New file.
|
||||
* aclocal.m4, Makefile.in, configure.ac, configure: Removed.
|
||||
|
||||
2021-04-02 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* configure.ac: Call SIM_AC_TOOLCHAIN and AC_CONFIG_FILES.
|
||||
|
@ -1,176 +0,0 @@
|
||||
# The IGEN simulator generator for GDB, the GNU Debugger.
|
||||
#
|
||||
# Copyright 2002-2021 Free Software Foundation, Inc.
|
||||
#
|
||||
# Contributed by Andrew Cagney.
|
||||
#
|
||||
# This file is part of GDB.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
default: all
|
||||
|
||||
VPATH = @srcdir@
|
||||
srcdir = @srcdir@
|
||||
srcroot = $(srcdir)/../..
|
||||
|
||||
prefix = @prefix@
|
||||
exec_prefix = @exec_prefix@
|
||||
|
||||
host_alias = @host_alias@
|
||||
target_alias = @target_alias@
|
||||
bindir = @bindir@
|
||||
libdir = @libdir@
|
||||
tooldir = $(libdir)/$(target_alias)
|
||||
|
||||
datarootdir = @datarootdir@
|
||||
datadir = @datadir@
|
||||
mandir = @mandir@
|
||||
man1dir = $(mandir)/man1
|
||||
man2dir = $(mandir)/man2
|
||||
man3dir = $(mandir)/man3
|
||||
man4dir = $(mandir)/man4
|
||||
man5dir = $(mandir)/man5
|
||||
man6dir = $(mandir)/man6
|
||||
man7dir = $(mandir)/man7
|
||||
man8dir = $(mandir)/man8
|
||||
man9dir = $(mandir)/man9
|
||||
infodir = @infodir@
|
||||
includedir = @includedir@
|
||||
|
||||
SHELL = @SHELL@
|
||||
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
|
||||
CC = @CC@
|
||||
CFLAGS = @CFLAGS@
|
||||
|
||||
CC_FOR_BUILD = @CC_FOR_BUILD@
|
||||
CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
|
||||
LDFLAGS_FOR_BUILD = @LDFLAGS_FOR_BUILD@
|
||||
|
||||
WARN_CFLAGS = @WARN_CFLAGS@
|
||||
WERROR_CFLAGS = @WERROR_CFLAGS@
|
||||
IGEN_WARN_CFLAGS = $(WARN_CFLAGS)
|
||||
IGEN_WERROR_CFLAGS = $(WERROR_CFLAGS)
|
||||
|
||||
BISON = bison
|
||||
MAKEINFO = makeinfo
|
||||
|
||||
.NOEXPORT:
|
||||
MAKEOVERRIDES=
|
||||
|
||||
LIB_INCLUDES = -I$(srcdir)/../../include
|
||||
INCLUDES = -I. -I$(srcdir) $(LIB_INCLUDES)
|
||||
|
||||
BUILD_CFLAGS = \
|
||||
$(CFLAGS_FOR_BUILD) \
|
||||
$(IGEN_WARN_CFLAGS) \
|
||||
$(IGEN_WERROR_CFLAGS) \
|
||||
$(INCLUDES)
|
||||
|
||||
COMPILE_FOR_BUILD = $(CC_FOR_BUILD) $(BUILD_CFLAGS)
|
||||
LINK_FOR_BUILD = $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@
|
||||
|
||||
all: igen
|
||||
#all: tmp-filter tmp-table tmp-ld-insn tmp-ld-cache tmp-ld-decode tmp-gen
|
||||
|
||||
.c.o:
|
||||
$(COMPILE_FOR_BUILD) -c $<
|
||||
|
||||
IGEN_OBJS=\
|
||||
table.o \
|
||||
lf.o misc.o \
|
||||
filter_host.o \
|
||||
ld-decode.o \
|
||||
ld-cache.o \
|
||||
filter.o \
|
||||
ld-insn.o \
|
||||
gen-model.o \
|
||||
gen-itable.o \
|
||||
gen-icache.o \
|
||||
gen-semantics.o \
|
||||
gen-idecode.o \
|
||||
gen-support.o \
|
||||
gen-engine.o \
|
||||
gen.o
|
||||
|
||||
igen: igen.o $(IGEN_OBJS)
|
||||
$(LINK_FOR_BUILD) igen.o $(IGEN_OBJS)
|
||||
|
||||
igen.o: igen.c misc.h filter_host.h lf.h table.h ld-decode.h ld-cache.h ld-insn.h filter.h gen-model.h gen-itable.h gen-icache.h gen-idecode.h gen-engine.h gen-semantics.h gen-support.h gen.h igen.h
|
||||
$(COMPILE_FOR_BUILD) -c $(srcdir)/igen.c
|
||||
|
||||
tmp-table: table.c table.h misc.o lf.o filter_host.o
|
||||
$(LINK_FOR_BUILD) -DMAIN $(srcdir)/table.c misc.o lf.o filter_host.o
|
||||
|
||||
tmp-filter: filter.c filter.h lf.o misc.o filter_host.o
|
||||
$(LINK_FOR_BUILD) -DMAIN $(srcdir)/filter.c lf.o misc.o filter_host.o
|
||||
|
||||
tmp-ld-decode: ld-decode.h ld-decode.c filter.o misc.o lf.o table.o filter_host.o gen.h igen.h
|
||||
$(LINK_FOR_BUILD) -DMAIN $(srcdir)/ld-decode.c filter.o misc.o lf.o table.o filter_host.o
|
||||
|
||||
tmp-ld-cache: ld-cache.c ld-cache.h ld-insn.o misc.o lf.o table.o filter_host.o gen.h igen.h
|
||||
$(LINK_FOR_BUILD) -DMAIN $(srcdir)/ld-cache.c ld-insn.o filter.o misc.o lf.o table.o filter_host.o
|
||||
|
||||
tmp-ld-insn: ld-insn.c ld-insn.h misc.o lf.o table.o filter_host.o filter.o gen.h igen.h
|
||||
$(LINK_FOR_BUILD) -DMAIN $(srcdir)/ld-insn.c misc.o lf.o table.o filter_host.o filter.o
|
||||
|
||||
tmp-gen: gen.c gen.h ld-insn.o ld-decode.o misc.o lf.o table.o filter_host.o filter.o gen.h igen.h
|
||||
$(LINK_FOR_BUILD) -DMAIN $(srcdir)/gen.c misc.o ld-insn.o ld-decode.o lf.o table.o filter_host.o filter.o
|
||||
|
||||
filter_host.o: filter_host.c filter_host.h
|
||||
table.o: table.c misc.h filter_host.h lf.h table.h
|
||||
lf.o: lf.c misc.h filter_host.h lf.h
|
||||
filter.o: filter.c misc.h lf.h table.h filter.h
|
||||
ld-decode.o: ld-decode.c misc.h lf.h table.h ld-decode.h igen.h
|
||||
ld-cache.o: ld-cache.c misc.h lf.h table.h ld-cache.h igen.h
|
||||
ld-insn.o: ld-insn.c misc.h lf.h table.h ld-insn.h gen.h igen.h
|
||||
gen-model.o: gen-model.c misc.h lf.h table.h gen-model.h ld-decode.h gen.h igen.h ld-insn.h
|
||||
gen-itable.o: gen-itable.c misc.h lf.h table.h gen-itable.h ld-decode.h gen.h igen.h ld-insn.h gen.h filter.h
|
||||
gen-icache.o: gen-icache.c misc.h lf.h table.h gen-icache.h ld-decode.h gen.h igen.h ld-insn.h gen-semantics.h gen-idecode.h filter.h
|
||||
gen-semantics.o: gen-semantics.c misc.h lf.h table.h gen-semantics.h ld-decode.h gen.h igen.h ld-insn.h filter.h
|
||||
gen-idecode.o: gen-idecode.c misc.h lf.h table.h gen-idecode.h gen-icache.h gen-semantics.h ld-decode.h gen.h igen.h ld-insn.h filter.h
|
||||
gen-engine.o: gen-engine.c misc.h lf.h table.h gen-idecode.h gen-engine.h gen-icache.h gen-semantics.h ld-decode.h gen.h igen.h ld-insn.h filter.h
|
||||
gen-support.o: gen-support.c misc.h lf.h table.h gen-support.h ld-decode.h gen.h igen.h ld-insn.h filter.h
|
||||
gen.o: gen.c misc.h lf.h table.h gen-icache.h ld-decode.h gen.h igen.h ld-insn.h gen-semantics.h gen-idecode.h filter.h
|
||||
misc.o: misc.c misc.h filter_host.h
|
||||
|
||||
|
||||
tags etags: TAGS
|
||||
|
||||
TAGS:
|
||||
etags $(srcdir)/*.h $(srcdir)/*.c
|
||||
|
||||
clean mostlyclean:
|
||||
rm -f tmp-* *.[oasi] core igen
|
||||
|
||||
distclean realclean: clean
|
||||
rm -f TAGS Makefile config.cache config.status defines.h config.log
|
||||
|
||||
maintainer-clean: distclean
|
||||
rm -f *~ *.log ppc-config.h core *.core
|
||||
|
||||
Makefile: Makefile.in config.status
|
||||
CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
|
||||
|
||||
config.status: configure
|
||||
$(SHELL) ./config.status --recheck
|
||||
|
||||
check:
|
||||
install:
|
||||
install-strip:
|
||||
#
|
16
sim/igen/aclocal.m4
vendored
16
sim/igen/aclocal.m4
vendored
@ -1,16 +0,0 @@
|
||||
# generated automatically by aclocal 1.15.1 -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 1996-2017 Free Software Foundation, Inc.
|
||||
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
|
||||
m4_include([../m4/sim_ac_option_warnings.m4])
|
||||
m4_include([../m4/sim_ac_toolchain.m4])
|
5245
sim/igen/configure
vendored
5245
sim/igen/configure
vendored
File diff suppressed because it is too large
Load Diff
@ -1,9 +0,0 @@
|
||||
dnl Process this file with autoconf to produce a configure script.
|
||||
AC_INIT(table.h)
|
||||
AC_CONFIG_MACRO_DIRS([../m4 ../.. ../../config])
|
||||
|
||||
SIM_AC_TOOLCHAIN
|
||||
SIM_AC_OPTION_WARNINGS
|
||||
|
||||
AC_CONFIG_FILES([Makefile])
|
||||
AC_OUTPUT
|
89
sim/igen/local.mk
Normal file
89
sim/igen/local.mk
Normal file
@ -0,0 +1,89 @@
|
||||
# The IGEN simulator generator for GDB, the GNU Debugger.
|
||||
#
|
||||
# Copyright 2002-2021 Free Software Foundation, Inc.
|
||||
#
|
||||
# Contributed by Andrew Cagney.
|
||||
#
|
||||
# This file is part of GDB.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
# This makes sure igen is available before building the arch-subdirs which
|
||||
# need to run the igen tool.
|
||||
all-recursive: igen/igen$(EXEEXT)
|
||||
|
||||
# Alias for developers.
|
||||
igen: %D%/igen$(EXEEXT)
|
||||
|
||||
noinst_LIBRARIES += %D%/libigen.a
|
||||
%C%_libigen_a_SOURCES = \
|
||||
%D%/table.c \
|
||||
%D%/lf.c \
|
||||
%D%/misc.c \
|
||||
%D%/filter_host.c \
|
||||
%D%/ld-decode.c \
|
||||
%D%/ld-cache.c \
|
||||
%D%/filter.c \
|
||||
%D%/ld-insn.c \
|
||||
%D%/gen-model.c \
|
||||
%D%/gen-itable.c \
|
||||
%D%/gen-icache.c \
|
||||
%D%/gen-semantics.c \
|
||||
%D%/gen-idecode.c \
|
||||
%D%/gen-support.c \
|
||||
%D%/gen-engine.c \
|
||||
%D%/gen.c
|
||||
|
||||
%C%_igen_SOURCES = %D%/igen.c
|
||||
%C%_igen_LDADD = %D%/libigen.a
|
||||
|
||||
%D%/igen$(EXEEXT): $(%C%_igen_OBJECTS) $(%C%_igen_DEPENDENCIES) %D%/$(am__dirstamp)
|
||||
$(AM_V_CCLD)$(LINK_FOR_BUILD) $(%C%_igen_OBJECTS) $(%C%_igen_LDADD)
|
||||
|
||||
# igen is a build-time only tool. Override the default rules for it.
|
||||
%D%/%.o: %D%/%.c
|
||||
$(AM_V_CC)$(COMPILE_FOR_BUILD) -c $< -o $@
|
||||
|
||||
# Build some of the files in standalone mode for developers of igen itself.
|
||||
%D%/%-main.o: %D%/%.c
|
||||
$(AM_V_CC)$(COMPILE_FOR_BUILD) -DMAIN -c $< -o $@
|
||||
|
||||
%C%_filter_SOURCES =
|
||||
%C%_filter_LDADD = %D%/filter-main.o %D%/libigen.a
|
||||
|
||||
%C%_gen_SOURCES =
|
||||
%C%_gen_LDADD = %D%/gen-main.o %D%/libigen.a
|
||||
|
||||
%C%_ld_cache_SOURCES =
|
||||
%C%_ld_cache_LDADD = %D%/ld-cache-main.o %D%/libigen.a
|
||||
|
||||
%C%_ld_decode_SOURCES =
|
||||
%C%_ld_decode_LDADD = %D%/ld-decode-main.o %D%/libigen.a
|
||||
|
||||
%C%_ld_insn_SOURCES =
|
||||
%C%_ld_insn_LDADD = %D%/ld-insn-main.o %D%/libigen.a
|
||||
|
||||
%C%_table_SOURCES =
|
||||
%C%_table_LDADD = %D%/table-main.o %D%/libigen.a
|
||||
|
||||
%C%_IGEN_TOOLS = \
|
||||
%D%/igen \
|
||||
%D%/filter \
|
||||
%D%/gen \
|
||||
%D%/ld-cache \
|
||||
%D%/ld-decode \
|
||||
%D%/ld-insn \
|
||||
%D%/table
|
||||
EXTRA_PROGRAMS += $(%C%_IGEN_TOOLS)
|
||||
MOSTLYCLEANFILES += $(%C%_IGEN_TOOLS)
|
@ -1,3 +1,8 @@
|
||||
2021-04-02 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* Makefile.in (../igen/igen): Delete rule.
|
||||
(tmp-igen, tmp-m16, tmp-micromips): Delete ../igen make.
|
||||
|
||||
2021-04-02 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* aclocal.m4, configure: Regenerate.
|
||||
|
@ -95,9 +95,6 @@ micromipsrun.o: sim-main.h micromips16_idecode.h micromips32_idecode.h \
|
||||
|
||||
multi-run.o: multi-include.h tmp-mach-multi
|
||||
|
||||
../igen/igen:
|
||||
cd ../igen && $(MAKE)
|
||||
|
||||
IGEN_TRACE= # -G omit-line-numbers # -G trace-rule-selection -G trace-rule-rejection -G trace-entries # -G trace-all
|
||||
IGEN_INSN=$(srcdir)/mips.igen
|
||||
IGEN_DC=$(srcdir)/mips.dc
|
||||
@ -152,7 +149,6 @@ BUILT_SRC_FROM_IGEN = \
|
||||
$(BUILT_SRC_FROM_IGEN): tmp-igen
|
||||
|
||||
tmp-igen: $(IGEN_INSN) $(IGEN_DC) ../igen/igen $(IGEN_INCLUDE)
|
||||
cd ../igen && $(MAKE)
|
||||
../igen/igen \
|
||||
$(IGEN_TRACE) \
|
||||
-I $(srcdir) \
|
||||
@ -224,7 +220,6 @@ BUILT_SRC_FROM_M16 = \
|
||||
$(BUILT_SRC_FROM_M16): tmp-m16
|
||||
|
||||
tmp-m16: $(IGEN_INSN) $(IGEN_DC) ../igen/igen $(IGEN_INCLUDE)
|
||||
cd ../igen && $(MAKE)
|
||||
../igen/igen \
|
||||
$(IGEN_TRACE) \
|
||||
-I $(srcdir) \
|
||||
@ -351,7 +346,6 @@ BUILT_SRC_FROM_MICROMIPS = \
|
||||
$(BUILT_SRC_FROM_MICROMIPS): tmp-micromips
|
||||
|
||||
tmp-micromips: $(IGEN_INSN) $(IGEN_DC) ../igen/igen $(IGEN_INCLUDE)
|
||||
cd ../igen && $(MAKE)
|
||||
../igen/igen \
|
||||
$(IGEN_TRACE) \
|
||||
-I $(srcdir) \
|
||||
@ -397,7 +391,6 @@ tmp-micromips: $(IGEN_INSN) $(IGEN_DC) ../igen/igen $(IGEN_INCLUDE)
|
||||
micromips16_support.h
|
||||
$(SHELL) $(srcdir)/../../move-if-change tmp-support.c \
|
||||
micromips16_support.c
|
||||
cd ../igen && $(MAKE)
|
||||
../igen/igen \
|
||||
$(IGEN_TRACE) \
|
||||
-I $(srcdir) \
|
||||
|
@ -1,3 +1,8 @@
|
||||
2021-04-02 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* Makefile.in (../igen/igen): Delete rule.
|
||||
(tmp-igen): Delete ../igen make.
|
||||
|
||||
2021-04-02 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* aclocal.m4, configure: Regenerate.
|
||||
|
@ -65,14 +65,10 @@ clean-igen:
|
||||
rm -f $(BUILT_SRC_FROM_IGEN)
|
||||
rm -f tmp-igen tmp-insns
|
||||
|
||||
../igen/igen:
|
||||
cd ../igen && $(MAKE)
|
||||
|
||||
IGEN_TRACE= # -G omit-line-numbers # -G trace-rule-selection -G trace-rule-rejection -G trace-entries
|
||||
IGEN_INSN=$(srcdir)/mn10300.igen $(srcdir)/am33.igen $(srcdir)/am33-2.igen
|
||||
IGEN_DC=$(srcdir)/mn10300.dc
|
||||
tmp-igen: $(IGEN_INSN) $(IGEN_DC) ../igen/igen
|
||||
cd ../igen && $(MAKE)
|
||||
../igen/igen \
|
||||
$(IGEN_TRACE) \
|
||||
-G gen-direct-access \
|
||||
|
@ -1,3 +1,8 @@
|
||||
2021-04-02 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* Makefile.in (../igen/igen): Delete rule.
|
||||
(tmp-igen): Delete ../igen make.
|
||||
|
||||
2021-04-02 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* aclocal.m4, configure: Regenerate.
|
||||
|
@ -65,14 +65,10 @@ clean-igen:
|
||||
rm -f $(BUILT_SRC_FROM_IGEN)
|
||||
rm -f tmp-igen tmp-insns
|
||||
|
||||
../igen/igen:
|
||||
cd ../igen && $(MAKE)
|
||||
|
||||
IGEN_TRACE= # -G omit-line-numbers # -G trace-rule-selection -G trace-rule-rejection -G trace-entries
|
||||
IGEN_INSN=$(srcdir)/v850.igen
|
||||
IGEN_DC=$(srcdir)/v850-dc
|
||||
tmp-igen: $(IGEN_INSN) $(IGEN_DC) ../igen/igen
|
||||
cd ../igen && $(MAKE)
|
||||
../igen/igen \
|
||||
$(IGEN_TRACE) \
|
||||
-G gen-direct-access \
|
||||
|
Loading…
Reference in New Issue
Block a user