# The IGEN simulator generator for GDB, the GNU Debugger.
|
# The IGEN simulator generator for GDB, the GNU Debugger.
|
#
|
#
|
# Copyright 2002, 2007, 2008 Free Software Foundation, Inc.
|
# Copyright 2002, 2007, 2008 Free Software Foundation, Inc.
|
#
|
#
|
# Contributed by Andrew Cagney.
|
# Contributed by Andrew Cagney.
|
#
|
#
|
# This file is part of GDB.
|
# This file is part of GDB.
|
#
|
#
|
# This program is free software; you can redistribute it and/or modify
|
# 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
|
# it under the terms of the GNU General Public License as published by
|
# the Free Software Foundation; either version 3 of the License, or
|
# the Free Software Foundation; either version 3 of the License, or
|
# (at your option) any later version.
|
# (at your option) any later version.
|
#
|
#
|
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
#
|
#
|
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
# along with this program. If not, see .
|
# along with this program. If not, see .
|
|
|
default: all
|
default: all
|
|
|
VPATH = @srcdir@
|
VPATH = @srcdir@
|
srcdir = @srcdir@
|
srcdir = @srcdir@
|
srcroot = $(srcdir)/../..
|
srcroot = $(srcdir)/../..
|
|
|
prefix = @prefix@
|
prefix = @prefix@
|
exec_prefix = @exec_prefix@
|
exec_prefix = @exec_prefix@
|
|
|
host_alias = @host_alias@
|
host_alias = @host_alias@
|
target_alias = @target_alias@
|
target_alias = @target_alias@
|
program_transform_name = @program_transform_name@
|
program_transform_name = @program_transform_name@
|
bindir = @bindir@
|
bindir = @bindir@
|
libdir = @libdir@
|
libdir = @libdir@
|
tooldir = $(libdir)/$(target_alias)
|
tooldir = $(libdir)/$(target_alias)
|
|
|
datadir = @datadir@
|
datadir = @datadir@
|
mandir = @mandir@
|
mandir = @mandir@
|
man1dir = $(mandir)/man1
|
man1dir = $(mandir)/man1
|
man2dir = $(mandir)/man2
|
man2dir = $(mandir)/man2
|
man3dir = $(mandir)/man3
|
man3dir = $(mandir)/man3
|
man4dir = $(mandir)/man4
|
man4dir = $(mandir)/man4
|
man5dir = $(mandir)/man5
|
man5dir = $(mandir)/man5
|
man6dir = $(mandir)/man6
|
man6dir = $(mandir)/man6
|
man7dir = $(mandir)/man7
|
man7dir = $(mandir)/man7
|
man8dir = $(mandir)/man8
|
man8dir = $(mandir)/man8
|
man9dir = $(mandir)/man9
|
man9dir = $(mandir)/man9
|
infodir = @infodir@
|
infodir = @infodir@
|
includedir = @includedir@
|
includedir = @includedir@
|
|
|
SHELL = @SHELL@
|
SHELL = @SHELL@
|
|
|
INSTALL = @INSTALL@
|
INSTALL = @INSTALL@
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
INSTALL_DATA = @INSTALL_DATA@
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
AR = @AR@
|
AR = @AR@
|
CC = @CC@
|
CC = @CC@
|
CFLAGS = @CFLAGS@
|
CFLAGS = @CFLAGS@
|
RANLIB = @RANLIB@
|
RANLIB = @RANLIB@
|
|
|
AR_FOR_BUILD = @AR_FOR_BUILD@
|
AR_FOR_BUILD = @AR_FOR_BUILD@
|
AR_FLAGS_FOR_BUILD = @AR_FLAGS_FOR_BUILD@
|
AR_FLAGS_FOR_BUILD = @AR_FLAGS_FOR_BUILD@
|
CC_FOR_BUILD = @CC_FOR_BUILD@
|
CC_FOR_BUILD = @CC_FOR_BUILD@
|
CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
|
CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
|
RANLIB_FOR_BUILD = @RANLIB_FOR_BUILD@
|
RANLIB_FOR_BUILD = @RANLIB_FOR_BUILD@
|
|
|
WARN_CFLAGS = @WARN_CFLAGS@
|
WARN_CFLAGS = @WARN_CFLAGS@
|
WERROR_CFLAGS = @WERROR_CFLAGS@
|
WERROR_CFLAGS = @WERROR_CFLAGS@
|
IGEN_WARN_CFLAGS = $(WARN_CFLAGS)
|
IGEN_WARN_CFLAGS = $(WARN_CFLAGS)
|
IGEN_WERROR_CFLAGS = $(WERROR_CFLAGS)
|
IGEN_WERROR_CFLAGS = $(WERROR_CFLAGS)
|
|
|
BISON = bison
|
BISON = bison
|
MAKEINFO = makeinfo
|
MAKEINFO = makeinfo
|
|
|
.NOEXPORT:
|
.NOEXPORT:
|
MAKEOVERRIDES=
|
MAKEOVERRIDES=
|
|
|
LIB_INCLUDES = -I$(srcdir)/../../include
|
LIB_INCLUDES = -I$(srcdir)/../../include
|
INCLUDES = -I. -I$(srcdir) $(LIB_INCLUDES)
|
INCLUDES = -I. -I$(srcdir) $(LIB_INCLUDES)
|
|
|
LIBIBERTY_LIB = @LIBIBERTY_LIB@
|
LIBIBERTY_LIB = @LIBIBERTY_LIB@
|
|
|
BUILD_CFLAGS = \
|
BUILD_CFLAGS = \
|
$(CFLAGS_FOR_BUILD) \
|
$(CFLAGS_FOR_BUILD) \
|
$(IGEN_WARN_CFLAGS) \
|
$(IGEN_WARN_CFLAGS) \
|
$(IGEN_WERROR_CFLAGS) \
|
$(IGEN_WERROR_CFLAGS) \
|
$(INCLUDES)
|
$(INCLUDES)
|
BUILD_LDFLAGS =
|
BUILD_LDFLAGS =
|
|
|
all: igen
|
all: igen
|
#all: tmp-filter tmp-table tmp-ld-insn tmp-ld-cache tmp-ld-decode tmp-gen
|
#all: tmp-filter tmp-table tmp-ld-insn tmp-ld-cache tmp-ld-decode tmp-gen
|
|
|
.c.o:
|
.c.o:
|
$(CC_FOR_BUILD) -c $(BUILD_CFLAGS) $<
|
$(CC_FOR_BUILD) -c $(BUILD_CFLAGS) $<
|
|
|
|
|
filter_filename.o: filter_filename.c filter_filename.h config.h ppc-config.h
|
filter_filename.o: filter_filename.c filter_filename.h config.h ppc-config.h
|
|
|
IGEN_OBJS=\
|
IGEN_OBJS=\
|
table.o \
|
table.o \
|
lf.o misc.o \
|
lf.o misc.o \
|
filter_host.o \
|
filter_host.o \
|
ld-decode.o \
|
ld-decode.o \
|
ld-cache.o \
|
ld-cache.o \
|
filter.o \
|
filter.o \
|
ld-insn.o \
|
ld-insn.o \
|
gen-model.o \
|
gen-model.o \
|
gen-itable.o \
|
gen-itable.o \
|
gen-icache.o \
|
gen-icache.o \
|
gen-semantics.o \
|
gen-semantics.o \
|
gen-idecode.o \
|
gen-idecode.o \
|
gen-support.o \
|
gen-support.o \
|
gen-engine.o \
|
gen-engine.o \
|
gen.o
|
gen.o
|
|
|
igen: igen.o $(IGEN_OBJS)
|
igen: igen.o $(IGEN_OBJS)
|
$(CC_FOR_BUILD) $(BUILD_LDFLAGS) -o igen igen.o $(IGEN_OBJS) $(LIBIBERTY_LIB)
|
$(CC_FOR_BUILD) $(BUILD_LDFLAGS) -o igen igen.o $(IGEN_OBJS) $(LIBIBERTY_LIB)
|
|
|
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
|
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
|
$(CC_FOR_BUILD) $(BUILD_CFLAGS) -c $(srcdir)/igen.c
|
$(CC_FOR_BUILD) $(BUILD_CFLAGS) -c $(srcdir)/igen.c
|
|
|
tmp-table: table.c table.h misc.o lf.o filter_host.o
|
tmp-table: table.c table.h misc.o lf.o filter_host.o
|
$(CC_FOR_BUILD) $(BUILD_CFLAGS) $(BUILD_LDFLAGS) -o tmp-table -DMAIN $(srcdir)/table.c misc.o lf.o filter_host.o $(BUILD_LIBS)
|
$(CC_FOR_BUILD) $(BUILD_CFLAGS) $(BUILD_LDFLAGS) -o tmp-table -DMAIN $(srcdir)/table.c misc.o lf.o filter_host.o $(BUILD_LIBS)
|
|
|
tmp-filter: filter.c filter.h lf.o misc.o filter_host.o
|
tmp-filter: filter.c filter.h lf.o misc.o filter_host.o
|
$(CC_FOR_BUILD) $(BUILD_CFLAGS) $(BUILD_LDFLAGS) -o tmp-filter -DMAIN $(srcdir)/filter.c lf.o misc.o filter_host.o $(BUILD_LIBS)
|
$(CC_FOR_BUILD) $(BUILD_CFLAGS) $(BUILD_LDFLAGS) -o tmp-filter -DMAIN $(srcdir)/filter.c lf.o misc.o filter_host.o $(BUILD_LIBS)
|
|
|
tmp-ld-decode: ld-decode.h ld-decode.c filter.o misc.o lf.o table.o filter_host.o gen.h igen.h
|
tmp-ld-decode: ld-decode.h ld-decode.c filter.o misc.o lf.o table.o filter_host.o gen.h igen.h
|
$(CC_FOR_BUILD) $(BUILD_CFLAGS) $(BUILD_LDFLAGS) -o tmp-ld-decode -DMAIN $(srcdir)/ld-decode.c filter.o misc.o lf.o table.o filter_host.o $(BUILD_LIBS)
|
$(CC_FOR_BUILD) $(BUILD_CFLAGS) $(BUILD_LDFLAGS) -o tmp-ld-decode -DMAIN $(srcdir)/ld-decode.c filter.o misc.o lf.o table.o filter_host.o $(BUILD_LIBS)
|
|
|
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
|
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
|
$(CC_FOR_BUILD) $(BUILD_CFLAGS) $(BUILD_LDFLAGS) -o tmp-ld-cache -DMAIN $(srcdir)/ld-cache.c ld-insn.o filter.o misc.o lf.o table.o filter_host.o $(BUILD_LIBS)
|
$(CC_FOR_BUILD) $(BUILD_CFLAGS) $(BUILD_LDFLAGS) -o tmp-ld-cache -DMAIN $(srcdir)/ld-cache.c ld-insn.o filter.o misc.o lf.o table.o filter_host.o $(BUILD_LIBS)
|
|
|
tmp-ld-insn: ld-insn.c ld-insn.h misc.o lf.o table.o filter_host.o filter.o gen.h igen.h
|
tmp-ld-insn: ld-insn.c ld-insn.h misc.o lf.o table.o filter_host.o filter.o gen.h igen.h
|
$(CC_FOR_BUILD) $(BUILD_CFLAGS) $(BUILD_LDFLAGS) -o tmp-ld-insn -DMAIN $(srcdir)/ld-insn.c misc.o lf.o table.o filter_host.o filter.o $(BUILD_LIBS)
|
$(CC_FOR_BUILD) $(BUILD_CFLAGS) $(BUILD_LDFLAGS) -o tmp-ld-insn -DMAIN $(srcdir)/ld-insn.c misc.o lf.o table.o filter_host.o filter.o $(BUILD_LIBS)
|
|
|
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
|
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
|
$(CC_FOR_BUILD) $(BUILD_CFLAGS) $(BUILD_LDFLAGS) -o tmp-gen -DMAIN $(srcdir)/gen.c misc.o ld-insn.o ld-decode.o lf.o table.o filter_host.o filter.o $(BUILD_LIBS)
|
$(CC_FOR_BUILD) $(BUILD_CFLAGS) $(BUILD_LDFLAGS) -o tmp-gen -DMAIN $(srcdir)/gen.c misc.o ld-insn.o ld-decode.o lf.o table.o filter_host.o filter.o $(BUILD_LIBS)
|
|
|
filter_host.o: filter_host.c filter_host.h
|
filter_host.o: filter_host.c filter_host.h
|
table.o: table.c misc.h filter_host.h lf.h table.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
|
lf.o: lf.c misc.h filter_host.h lf.h
|
filter.o: filter.c misc.h lf.h table.h filter.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-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-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
|
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-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-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-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-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-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-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-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
|
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
|
misc.o: misc.c misc.h filter_host.h
|
|
|
|
|
tags etags: TAGS
|
tags etags: TAGS
|
|
|
TAGS:
|
TAGS:
|
etags $(srcdir)/*.h $(srcdir)/*.c
|
etags $(srcdir)/*.h $(srcdir)/*.c
|
|
|
clean mostlyclean:
|
clean mostlyclean:
|
rm -f tmp-* *.[oasi] core igen
|
rm -f tmp-* *.[oasi] core igen
|
|
|
distclean realclean: clean
|
distclean realclean: clean
|
rm -f TAGS Makefile config.cache config.status config.h defines.h stamp-h config.log
|
rm -f TAGS Makefile config.cache config.status config.h defines.h stamp-h config.log
|
|
|
maintainer-clean: distclean
|
maintainer-clean: distclean
|
rm -f *~ *.log ppc-config.h core *.core
|
rm -f *~ *.log ppc-config.h core *.core
|
|
|
Makefile: Makefile.in config.status
|
Makefile: Makefile.in config.status
|
CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
|
CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
|
|
|
config.h: stamp-h ; @true
|
config.h: stamp-h ; @true
|
stamp-h: config.in config.status
|
stamp-h: config.in config.status
|
CONFIG_FILES= CONFIG_HEADERS=config.h:config.in $(SHELL) ./config.status
|
CONFIG_FILES= CONFIG_HEADERS=config.h:config.in $(SHELL) ./config.status
|
|
|
config.status: configure
|
config.status: configure
|
$(SHELL) ./config.status --recheck
|
$(SHELL) ./config.status --recheck
|
|
|
install:
|
install:
|
#
|
#
|
|
|