Browse Source
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.binutils-2_37-branch
17 changed files with 451 additions and 5489 deletions
@ -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: |
|||
#
|
|||
@ -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]) |
|||
File diff suppressed because it is too large
@ -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 |
|||
@ -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) |
|||
Loading…
Reference in new issue