sim: enable hardware support by default
[binutils-gdb.git] / sim / Makefile.am
index bcca70623e9af0c870d948fbcda6c148cbb9f375..a68a964d87a339895e8b68d28ac6de5607fad38f 100644 (file)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-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