X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=sim%2FMakefile.am;h=a68a964d87a339895e8b68d28ac6de5607fad38f;hb=66d055c75479e0c51745fc3b40faec6df7a01620;hp=bcca70623e9af0c870d948fbcda6c148cbb9f375;hpb=6bddc3e8b480773f84a6694605a00ad0b2cee0c1;p=binutils-gdb.git diff --git a/sim/Makefile.am b/sim/Makefile.am index bcca70623e9..a68a964d87a 100644 --- a/sim/Makefile.am +++ b/sim/Makefile.am @@ -15,15 +15,29 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -AUTOMAKE_OPTIONS = foreign no-dist subdir-objects -ACLOCAL_AMFLAGS = -I.. -I../config +AUTOMAKE_OPTIONS = dejagnu foreign no-dist subdir-objects +ACLOCAL_AMFLAGS = -Im4 -I.. -I../config srcroot = $(srcdir)/.. SUBDIRS = @subdirs@ +SIM_PRIMARY_TARGET = @SIM_PRIMARY_TARGET@ +AM_MAKEFLAGS = SIM_PRIMARY_TARGET=$(SIM_PRIMARY_TARGET) + +# 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. +check_PROGRAMS = +noinst_LIBRARIES = +EXTRA_PROGRAMS = + +CLEANFILES = +DISTCLEANFILES = MOSTLYCLEANFILES = core +COMPILE_FOR_BUILD = $(CC_FOR_BUILD) $(AM_CPPFLAGS) $(CFLAGS_FOR_BUILD) +LINK_FOR_BUILD = $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ + # Generate nltvals.def for newlib/libgloss using devo and build tree. # This file is shipped with distributions so we build in the source dir. # Use `make nltvals' to rebuild. @@ -34,3 +48,8 @@ MOSTLYCLEANFILES = core 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