1995-08-23 21:06:36 +00:00
|
|
|
#
|
|
|
|
# This file is part of the program psim.
|
|
|
|
#
|
|
|
|
# Copyright (C) 1994-1995, Andrew Cagney <cagney@highland.com.au>
|
|
|
|
#
|
|
|
|
# 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 2 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, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
#
|
|
|
|
|
1995-10-12 15:48:22 +00:00
|
|
|
default: all
|
|
|
|
|
1995-08-23 21:06:36 +00:00
|
|
|
VPATH = @srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
srcroot = $(srcdir)/../..
|
|
|
|
|
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
|
|
|
|
host_alias = @host_alias@
|
|
|
|
target_alias = @target_alias@
|
|
|
|
program_transform_name = @program_transform_name@
|
|
|
|
bindir = $(exec_prefix)/bin
|
|
|
|
libdir = $(exec_prefix)/lib
|
|
|
|
tooldir = $(libdir)/$(target_alias)
|
|
|
|
|
|
|
|
datadir = $(prefix)/lib
|
|
|
|
mandir = $(prefix)/man
|
|
|
|
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 = $(prefix)/info
|
|
|
|
includedir = $(prefix)/include
|
|
|
|
docdir = $(datadir)/doc
|
|
|
|
|
|
|
|
SHELL = /bin/sh
|
|
|
|
|
|
|
|
INSTALL = $(srcroot)/install.sh -c
|
|
|
|
INSTALL_PROGRAM = $(INSTALL)
|
|
|
|
INSTALL_DATA = $(INSTALL)
|
|
|
|
INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)'
|
|
|
|
INSTALL_XFORM1= $(INSTALL_XFORM) -b=.1
|
|
|
|
|
1995-09-08 23:56:38 +00:00
|
|
|
AR = @AR@
|
1995-08-23 21:06:36 +00:00
|
|
|
AR_FLAGS = rc
|
1995-09-08 23:56:38 +00:00
|
|
|
CC = @CC@
|
|
|
|
CFLAGS = @CFLAGS@
|
|
|
|
CC_FOR_BUILD = @CC_FOR_BUILD@
|
1995-08-23 21:06:36 +00:00
|
|
|
BISON = bison
|
|
|
|
MAKEINFO = makeinfo
|
1995-09-08 23:56:38 +00:00
|
|
|
RANLIB = @RANLIB@
|
|
|
|
|
1995-11-02 20:21:35 +00:00
|
|
|
SIM_CFLAGS = @sim_cflags@
|
|
|
|
INLINE_CFLAGS = @sim_inline@
|
|
|
|
BSWAP_CFLAGS = @sim_bswap@
|
|
|
|
ENDIAN_CFLAGS = @sim_endian@
|
|
|
|
HOSTENDIAN_CFLAGS = @sim_hostendian@
|
|
|
|
SMP_CFLAGS = @sim_smp@
|
|
|
|
BITSIZE_CFLAGS = @sim_bitsize@
|
|
|
|
HOSTBITSIZE_CFLAGS = @sim_hostbitsize@
|
|
|
|
ENV_CFLAGS = @sim_env@
|
|
|
|
TIMEBASE_CFLAGS = @sim_timebase@
|
|
|
|
ALIGNMENT_CFLAGS = @sim_alignment@
|
|
|
|
FLOAT_CFLAGS = @sim_float@
|
|
|
|
TRACE_CFLAGS = @sim_trace@
|
|
|
|
ASSERT_CFLAGS = @sim_assert@
|
1995-11-12 14:20:39 +00:00
|
|
|
RESERVED_CFLAGS = @sim_reserved@
|
1995-11-02 20:21:35 +00:00
|
|
|
MONITOR_CFLAGS = @sim_monitor@
|
1995-11-08 18:57:06 +00:00
|
|
|
FUNC_CFLAGS = @sim_func@
|
|
|
|
MODEL_CFLAGS = @sim_model@ @sim_default_model@
|
|
|
|
WARNING_CFLAGS = @sim_warnings@
|
1995-11-02 20:21:35 +00:00
|
|
|
CONFIG_CFLAGS = $(BSWAP_CFLAGS) \
|
|
|
|
$(ENDIAN_CFLAGS) \
|
|
|
|
$(HOSTENDIAN_CFLAGS) \
|
|
|
|
$(SMP_CFLAGS) \
|
|
|
|
$(BITSIZE_CFLAGS) \
|
|
|
|
$(HOSTBITSIZE_CFLAGS) \
|
|
|
|
$(ENV_CFLAGS) \
|
1995-11-03 19:37:28 +00:00
|
|
|
$(TIMEBASE_CFLAGS) \
|
|
|
|
$(ALIGNMENT_CFLAGS) \
|
1995-11-02 20:21:35 +00:00
|
|
|
$(FLOAT_CFLAGS) \
|
|
|
|
$(TRACE_CFLAGS) \
|
|
|
|
$(ASSERT_CFLAGS) \
|
1995-11-12 14:20:39 +00:00
|
|
|
$(RESERVED_CFLAGS) \
|
1995-11-08 18:57:06 +00:00
|
|
|
$(MONITOR_CFLAGS) \
|
|
|
|
$(FUNC_CFLAGS) \
|
|
|
|
$(MODEL_CFLAGS)
|
1995-11-02 20:21:35 +00:00
|
|
|
|
1995-11-09 19:50:51 +00:00
|
|
|
STD_CFLAGS = $(CFLAGS) $(INLINE_CFLAGS) $(CONFIG_CFLAGS) $(WARNING_CFLAGS) $(SIM_CFLAGS) $(HDEFINES) $(TDEFINES) $(INCLUDES)
|
|
|
|
NOWARN_CFLAGS = $(CFLAGS) $(INLINE_CFLAGS) $(CONFIG_CFLAGS) $(SIM_CFLAGS) $(HDEFINES) $(TDEFINES) $(INCLUDES)
|
|
|
|
|
1995-11-02 20:21:35 +00:00
|
|
|
CONFIG_FILE = @sim_config@
|
|
|
|
IGEN_OPCODE_RULES = @sim_opcode@
|
|
|
|
IGEN_DUPLICATE = @sim_dup@
|
|
|
|
IGEN_FILTER = @sim_filter@
|
|
|
|
IGEN_ICACHE = @sim_icache@
|
|
|
|
DGEN_FLAGS = @sim_switch@
|
|
|
|
|
1995-09-08 23:56:38 +00:00
|
|
|
HDEFINES = @HDEFINES@
|
|
|
|
TDEFINES =
|
1995-11-02 14:27:18 +00:00
|
|
|
IGEN_FLAGS = $(IGEN_DUPLICATE) $(IGEN_FILTER) $(IGEN_ICACHE)
|
1995-08-23 21:06:36 +00:00
|
|
|
|
|
|
|
.NOEXPORT:
|
|
|
|
MAKEOVERRIDES=
|
|
|
|
|
|
|
|
LIB_INCLUDES = -I$(srcdir)/../../include
|
|
|
|
BFD_INCLUDES = -I../../bfd -I$(srcdir)/../../bfd
|
|
|
|
GDB_INCLUDES = -I../../gdb -I$(srcdir)/../../gdb -I$(srcdir)/../../gdb/config -I$(srcdir)/../../mmalloc
|
|
|
|
INCLUDES = -I. -I$(srcdir) $(LIB_INCLUDES) $(BFD_INCLUDES) $(GDB_INCLUDES)
|
|
|
|
|
|
|
|
LIBIBERTY_LIB = ../../libiberty/libiberty.a
|
|
|
|
BFD_LIB = ../../bfd/libbfd.a
|
|
|
|
|
1995-11-01 19:32:38 +00:00
|
|
|
TARGETLIB = libsim.a
|
1995-08-23 21:06:36 +00:00
|
|
|
|
1995-10-12 15:48:22 +00:00
|
|
|
all: run $(TARGETLIB) $(GDB_OBJ)
|
1995-08-23 21:06:36 +00:00
|
|
|
|
|
|
|
.c.o:
|
1995-11-09 19:50:51 +00:00
|
|
|
$(CC) -c $(STD_CFLAGS) $<
|
1995-08-23 21:06:36 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BASICS_H = \
|
|
|
|
config.h \
|
1995-09-08 23:56:38 +00:00
|
|
|
ppc-config.h \
|
1995-08-23 21:06:36 +00:00
|
|
|
words.h \
|
1995-11-08 18:57:06 +00:00
|
|
|
sim-endian.h \
|
1995-08-23 21:06:36 +00:00
|
|
|
debug.h \
|
1995-11-01 19:32:38 +00:00
|
|
|
filter_filename.h \
|
1995-08-23 21:06:36 +00:00
|
|
|
bits.h \
|
|
|
|
sim_callbacks.h
|
|
|
|
|
|
|
|
PSIM_H = \
|
|
|
|
psim.h \
|
|
|
|
$(BASICS_H)
|
|
|
|
|
|
|
|
IDECODE_H = \
|
|
|
|
idecode.h \
|
|
|
|
idecode_expression.h \
|
|
|
|
idecode_branch.h \
|
|
|
|
idecode_fields.h \
|
|
|
|
icache.h
|
|
|
|
|
|
|
|
REGISTERS_H = \
|
|
|
|
registers.h \
|
|
|
|
spreg.h
|
|
|
|
|
|
|
|
CPU_H = \
|
|
|
|
cpu.h \
|
|
|
|
$(BASICS_H) \
|
|
|
|
$(REGISTERS_H) \
|
|
|
|
device_tree.h \
|
1995-11-05 05:40:15 +00:00
|
|
|
corefile.h \
|
1995-08-23 21:06:36 +00:00
|
|
|
vm.h \
|
|
|
|
events.h \
|
|
|
|
interrupts.h \
|
|
|
|
psim.h \
|
1995-10-31 18:29:37 +00:00
|
|
|
icache.h \
|
|
|
|
itable.h \
|
1995-11-08 18:57:06 +00:00
|
|
|
mon.h \
|
1995-11-12 14:20:39 +00:00
|
|
|
function_unit.h \
|
|
|
|
model.h
|
1995-10-31 18:29:37 +00:00
|
|
|
|
|
|
|
EMUL_GENERIC_H = \
|
|
|
|
$(CPU_H) \
|
|
|
|
$(IDECODE_H) \
|
|
|
|
emul_generic.h \
|
|
|
|
os_emul.h
|
1995-08-23 21:06:36 +00:00
|
|
|
|
|
|
|
|
|
|
|
INLINE = \
|
|
|
|
inline.h \
|
|
|
|
inline.c
|
|
|
|
|
1995-11-08 18:57:06 +00:00
|
|
|
BUILT_SRC_WO_CONFIG = \
|
1995-08-23 21:06:36 +00:00
|
|
|
icache.h \
|
|
|
|
idecode.h idecode.c \
|
|
|
|
semantics.h semantics.c \
|
1995-10-31 18:29:37 +00:00
|
|
|
itable.h itable.c \
|
1995-11-12 14:20:39 +00:00
|
|
|
spreg.h spreg.c \
|
|
|
|
model.h model.c
|
1995-11-08 18:57:06 +00:00
|
|
|
|
|
|
|
BUILT_SRC = \
|
|
|
|
$(BUILT_SRC_WO_CONFIG) \
|
1995-09-08 23:56:38 +00:00
|
|
|
config.h \
|
1995-10-31 18:29:37 +00:00
|
|
|
ppc-config.h
|
1995-08-23 21:06:36 +00:00
|
|
|
|
|
|
|
LIB_SRC = \
|
|
|
|
psim.c \
|
|
|
|
bits.c \
|
|
|
|
debug.c \
|
1995-11-08 18:57:06 +00:00
|
|
|
sim-endian.c \
|
|
|
|
sim-endian.h \
|
|
|
|
sim-endian-n.h \
|
1995-08-23 21:06:36 +00:00
|
|
|
vm.c \
|
1995-11-08 18:57:06 +00:00
|
|
|
vm_n.h \
|
1995-11-05 05:40:15 +00:00
|
|
|
corefile.c \
|
1995-11-08 18:57:06 +00:00
|
|
|
function_unit.c \
|
1995-08-23 21:06:36 +00:00
|
|
|
events.c \
|
1995-10-31 18:29:37 +00:00
|
|
|
os_emul.c \
|
|
|
|
emul_generic.c \
|
|
|
|
emul_netbsd.c \
|
1995-08-23 21:06:36 +00:00
|
|
|
registers.c \
|
|
|
|
cpu.c \
|
|
|
|
interrupts.c \
|
|
|
|
devices.c \
|
1995-10-31 18:29:37 +00:00
|
|
|
device_tree.c \
|
1995-11-09 02:35:15 +00:00
|
|
|
mon.c \
|
|
|
|
options.c
|
1995-08-23 21:06:36 +00:00
|
|
|
|
|
|
|
MAIN_SRC = \
|
|
|
|
main.c \
|
|
|
|
sim_calls.c
|
|
|
|
|
|
|
|
|
1995-10-31 18:29:37 +00:00
|
|
|
# NOTE: semantics, idecode and psim put last so smaller files are compiled
|
|
|
|
# first
|
1995-08-23 21:06:36 +00:00
|
|
|
LIB_OBJ = \
|
|
|
|
debug.o \
|
1995-11-09 02:35:15 +00:00
|
|
|
options.o \
|
1995-11-01 19:32:38 +00:00
|
|
|
filter_filename.o \
|
1995-08-23 21:06:36 +00:00
|
|
|
bits.o \
|
1995-11-08 18:57:06 +00:00
|
|
|
sim-endian.o \
|
1995-10-31 18:29:37 +00:00
|
|
|
os_emul.o \
|
|
|
|
emul_generic.o \
|
|
|
|
emul_netbsd.o \
|
1995-08-23 21:06:36 +00:00
|
|
|
registers.o \
|
|
|
|
vm.o \
|
1995-11-05 05:40:15 +00:00
|
|
|
corefile.o \
|
1995-11-12 14:20:39 +00:00
|
|
|
model.o \
|
1995-11-08 18:57:06 +00:00
|
|
|
function_unit.o \
|
1995-08-23 21:06:36 +00:00
|
|
|
spreg.o \
|
|
|
|
cpu.o \
|
|
|
|
interrupts.o \
|
|
|
|
events.o \
|
|
|
|
devices.o \
|
|
|
|
device_tree.o \
|
1995-10-31 18:29:37 +00:00
|
|
|
itable.o \
|
|
|
|
mon.o \
|
1995-08-23 21:06:36 +00:00
|
|
|
semantics.o \
|
|
|
|
idecode.o \
|
|
|
|
psim.o
|
|
|
|
|
|
|
|
|
|
|
|
GDB_OBJ = sim_calls.o
|
|
|
|
|
|
|
|
|
1995-10-12 15:48:22 +00:00
|
|
|
psim: $(TARGETLIB) main.o $(LIBIBERTY_LIB) $(BFD_LIB) $(LIBS)
|
1995-11-09 19:50:51 +00:00
|
|
|
$(CC) $(CFLAGS) $(SIM_CFLAGS) $(LDFLAGS) -o psim main.o $(TARGETLIB) $(BFD_LIB) $(LIBIBERTY_LIB) $(LIBS)
|
1995-08-23 21:06:36 +00:00
|
|
|
|
|
|
|
run: psim
|
|
|
|
rm -f run
|
|
|
|
ln psim run
|
|
|
|
|
1995-10-31 18:29:37 +00:00
|
|
|
$(TARGETLIB): tmp-igen tmp-dgen $(LIB_OBJ) $(GDB_OBJ)
|
1995-08-23 21:06:36 +00:00
|
|
|
rm -f $(TARGETLIB)
|
|
|
|
$(AR) $(AR_FLAGS) $(TARGETLIB) $(LIB_OBJ) $(GDB_OBJ)
|
|
|
|
$(RANLIB) $(TARGETLIB)
|
|
|
|
|
1995-10-13 01:10:06 +00:00
|
|
|
# Given that inlines are turned on now, rebuild psim whenever
|
|
|
|
# anything changes.
|
1995-11-01 19:32:38 +00:00
|
|
|
psim.o: psim.c psim.h $(CPU_H) $(IDECODE_H) $(INLINE) $(LIB_SRC) $(BUILT_SRC)
|
1995-11-09 19:50:51 +00:00
|
|
|
$(CC) -c $(NOWARN_CFLAGS) $<
|
1995-08-23 21:06:36 +00:00
|
|
|
|
1995-10-31 18:29:37 +00:00
|
|
|
bits.o: bits.c $(BASICS_H)
|
1995-08-23 21:06:36 +00:00
|
|
|
|
|
|
|
debug.o: debug.c $(BASICS_H)
|
1995-11-08 18:57:06 +00:00
|
|
|
filter_filename.o: filter_filename.c config.h ppc-config.h
|
1995-08-23 21:06:36 +00:00
|
|
|
|
1995-11-08 18:57:06 +00:00
|
|
|
sim-endian.o: sim-endian.c sim-endian-n.h $(BASICS_H)
|
1995-08-23 21:06:36 +00:00
|
|
|
|
1995-10-31 18:29:37 +00:00
|
|
|
os_emul.o: os_emul.c $(EMUL_GENERIC_H)
|
|
|
|
emul_generic.o: emul_generic.c $(EMUL_GENERIC_H)
|
|
|
|
emul_netbsd.o: emul_netbsd.c emul_netbsd.h $(EMUL_GENERIC_H)
|
1995-08-23 21:06:36 +00:00
|
|
|
|
|
|
|
registers.o: registers.c $(REGISTERS_H) $(BASICS_H)
|
|
|
|
|
|
|
|
cpu.o: cpu.c $(CPU_H) $(IDECODE_H)
|
|
|
|
|
1995-10-31 18:29:37 +00:00
|
|
|
interrupts.o: interrupts.c $(CPU_H) $(IDECODE_H) os_emul.h
|
1995-08-23 21:06:36 +00:00
|
|
|
|
|
|
|
idecode.o: idecode.c $(CPU_H) $(IDECODE_H) semantics.h
|
1995-11-09 19:50:51 +00:00
|
|
|
$(CC) -c $(NOWARN_CFLAGS) $<
|
1995-08-23 21:06:36 +00:00
|
|
|
|
|
|
|
# double.o: double.c dp-bit.c
|
|
|
|
|
1995-10-12 15:48:22 +00:00
|
|
|
vm.o: vm.c vm.h vm_n.h $(BASICS_H) $(REGISTERS_H) \
|
1995-11-05 05:40:15 +00:00
|
|
|
device_tree.h corefile.h interrupts.h itable.h mon.h
|
1995-08-23 21:06:36 +00:00
|
|
|
|
1995-11-05 05:40:15 +00:00
|
|
|
corefile.o: corefile.c corefile.h $(BASICS_H) device_tree.h
|
1995-08-23 21:06:36 +00:00
|
|
|
|
1995-11-08 18:57:06 +00:00
|
|
|
function_unit.o: function_unit.c $(CPU_H)
|
|
|
|
|
1995-11-12 14:20:39 +00:00
|
|
|
model.o: model.c $(CPU_H)
|
|
|
|
|
1995-08-23 21:06:36 +00:00
|
|
|
events.o: events.c events.h $(BASICS_H)
|
|
|
|
|
1995-11-12 14:20:39 +00:00
|
|
|
sim_calls.o: sim_calls.c $(CPU_H) $(PSIM_H) ../../gdb/tm.h devices.h options.h
|
1995-08-23 21:06:36 +00:00
|
|
|
|
|
|
|
spreg.o: spreg.h spreg.c words.h
|
|
|
|
|
1995-11-09 02:35:15 +00:00
|
|
|
main.o: main.c $(PSIM_H) function_unit.h itable.h options.h
|
1995-08-23 21:06:36 +00:00
|
|
|
|
|
|
|
devices.o: devices.c devices.h $(BASICS_H) \
|
|
|
|
device_tree.h events.h
|
|
|
|
|
|
|
|
device_tree.o: device_tree.c device_tree.h devices.h $(BASICS_H)
|
|
|
|
|
|
|
|
semantics.o: semantics.c semantics.h $(CPU_H) $(IDECODE_H)
|
1995-11-09 19:50:51 +00:00
|
|
|
$(CC) -c $(NOWARN_CFLAGS) $<
|
1995-08-23 21:06:36 +00:00
|
|
|
|
1995-10-31 18:29:37 +00:00
|
|
|
itable.o: itable.c itable.h
|
|
|
|
|
1995-11-08 18:57:06 +00:00
|
|
|
mon.o: mon.c $(CPU_H)
|
1995-08-23 21:06:36 +00:00
|
|
|
|
1995-11-09 19:50:51 +00:00
|
|
|
# Rebuild options whenever something changes so the date/time is up to date.
|
|
|
|
options.o: options.c $(BASICS_H) $(CPU_H) $(IDECODE_H) $(INLINE) $(LIB_SRC) $(BUILT_SRC) config.status Makefile
|
|
|
|
$(CC) -c $(STD_CFLAGS) '-DOPCODE_RULES="@sim_opcode@"' '-DIGEN_FLAGS="$(IGEN_FLAGS)"' '-DDGEN_FLAGS="$(DGEN_FLAGS)"' $<
|
1995-11-09 02:35:15 +00:00
|
|
|
|
1995-08-23 21:06:36 +00:00
|
|
|
#
|
|
|
|
# Rules to create the built c source code files
|
|
|
|
#
|
|
|
|
|
1995-09-08 23:56:38 +00:00
|
|
|
ppc-config.h: $(CONFIG_FILE)
|
|
|
|
cp $(srcdir)/$(CONFIG_FILE) ppc-config.h
|
1995-08-23 21:06:36 +00:00
|
|
|
|
|
|
|
|
1995-10-31 18:29:37 +00:00
|
|
|
tmp-dgen: dgen ppc-spr-table $(srcdir)/../../move-if-change
|
|
|
|
./dgen $(DGEN_FLAGS) \
|
|
|
|
-r $(srcdir)/ppc-spr-table \
|
1995-10-12 15:48:22 +00:00
|
|
|
-n spreg.h -P tmp-spreg.h \
|
1995-10-31 18:29:37 +00:00
|
|
|
-n spreg.c -p tmp-spreg.c
|
|
|
|
$(srcdir)/../../move-if-change tmp-spreg.h spreg.h
|
|
|
|
$(srcdir)/../../move-if-change tmp-spreg.c spreg.c
|
|
|
|
touch tmp-dgen
|
|
|
|
|
|
|
|
|
|
|
|
tmp-igen: igen ppc-instructions $(IGEN_OPCODE_RULES) ppc-cache-rules $(srcdir)/../../move-if-change
|
|
|
|
./igen $(IGEN_FLAGS) \
|
|
|
|
-o $(srcdir)/$(IGEN_OPCODE_RULES) \
|
|
|
|
-k $(srcdir)/ppc-cache-rules \
|
|
|
|
-i $(srcdir)/ppc-instructions \
|
1995-10-12 15:48:22 +00:00
|
|
|
-n icache.h -C tmp-icache.h \
|
|
|
|
-n semantics.h -S tmp-semantics.h \
|
|
|
|
-n semantics.c -s tmp-semantics.c \
|
|
|
|
-n idecode.h -D tmp-idecode.h \
|
1995-10-31 18:29:37 +00:00
|
|
|
-n idecode.c -d tmp-idecode.c \
|
|
|
|
-n itable.h -T tmp-itable.h \
|
1995-11-12 14:20:39 +00:00
|
|
|
-n itable.c -t tmp-itable.c \
|
|
|
|
-n model.h -M tmp-model.h \
|
|
|
|
-n model.c -m tmp-model.c
|
1995-08-23 21:06:36 +00:00
|
|
|
$(srcdir)/../../move-if-change tmp-icache.h icache.h
|
|
|
|
$(srcdir)/../../move-if-change tmp-idecode.h idecode.h
|
|
|
|
$(srcdir)/../../move-if-change tmp-idecode.c idecode.c
|
|
|
|
$(srcdir)/../../move-if-change tmp-semantics.h semantics.h
|
|
|
|
$(srcdir)/../../move-if-change tmp-semantics.c semantics.c
|
1995-10-31 18:29:37 +00:00
|
|
|
$(srcdir)/../../move-if-change tmp-itable.h itable.h
|
|
|
|
$(srcdir)/../../move-if-change tmp-itable.c itable.c
|
1995-11-12 14:20:39 +00:00
|
|
|
$(srcdir)/../../move-if-change tmp-model.h model.h
|
|
|
|
$(srcdir)/../../move-if-change tmp-model.c model.c
|
1995-10-31 18:29:37 +00:00
|
|
|
touch tmp-igen
|
1995-08-23 21:06:36 +00:00
|
|
|
|
1995-10-12 15:48:22 +00:00
|
|
|
# NOTE: Some versions of make don't handle files created as side-effects
|
|
|
|
# uncomment the below if that is the case.
|
1995-11-03 03:39:27 +00:00
|
|
|
|
|
|
|
$(TARGETLIB): tmp-igen tmp-dgen
|
1995-11-12 14:20:39 +00:00
|
|
|
itable.h itable.c icache.h idecode.h idecode.c semantics.h semantics.c model.h model.c: tmp-igen
|
1995-11-03 03:39:27 +00:00
|
|
|
spreg.h spreg.c: tmp-dgen
|
1995-08-23 21:06:36 +00:00
|
|
|
|
1995-11-01 19:32:38 +00:00
|
|
|
dgen: dgen.o table.o lf.o misc.o filter_filename.o
|
1995-11-09 19:50:51 +00:00
|
|
|
$(CC_FOR_BUILD) $(CFLAGS) $(SIM_CFLAGS) $(LDFLAGS) -o dgen dgen.o table.o lf.o misc.o filter_filename.o $(LIBIBERTY_LIB) $(LIBS)
|
1995-08-23 21:06:36 +00:00
|
|
|
|
1995-11-01 19:32:38 +00:00
|
|
|
igen: igen.o table.o lf.o misc.o filter_filename.o
|
1995-11-09 19:50:51 +00:00
|
|
|
$(CC_FOR_BUILD) $(CFLAGS) $(SIM_CFLAGS) $(LDFLAGS) -o igen igen.o table.o lf.o misc.o filter_filename.o $(LIBIBERTY_LIB) $(LIBS)
|
1995-10-20 16:16:18 +00:00
|
|
|
|
1995-11-01 19:32:38 +00:00
|
|
|
table.o: misc.h filter_filename.h lf.h table.h
|
|
|
|
lf.o: misc.h filter_filename.h lf.h
|
|
|
|
dgen.o igen.o: misc.h filter_filename.h lf.h table.h
|
|
|
|
misc.o: misc.h filter_filename.h
|
1995-10-31 18:29:37 +00:00
|
|
|
# With out this #, make thinks that misc.o doesn't have a rule
|
1995-08-23 21:06:36 +00:00
|
|
|
|
|
|
|
tags etags: TAGS
|
|
|
|
|
1995-11-08 18:57:06 +00:00
|
|
|
TAGS: $(BUILT_SRC)
|
1995-08-23 21:06:36 +00:00
|
|
|
etags $(srcdir)/*.h $(srcdir)/*.c $(BUILT_SRC)
|
|
|
|
|
1995-09-08 23:56:38 +00:00
|
|
|
clean mostlyclean:
|
1995-11-08 18:57:06 +00:00
|
|
|
rm -f tmp-* *.[oasi] core psim run igen dgen config.log $(BUILT_SRC_WO_CONFIG)
|
1995-09-08 23:56:38 +00:00
|
|
|
|
1995-10-12 15:48:22 +00:00
|
|
|
distclean maintainer-clean realclean: clean
|
1995-11-02 20:21:35 +00:00
|
|
|
rm -f TAGS Makefile config.cache config.status config.h stamp-h
|
1995-08-23 21:06:36 +00:00
|
|
|
|
1995-09-08 23:56:38 +00:00
|
|
|
Makefile: Makefile.in config.status
|
|
|
|
CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
|
1995-08-23 21:06:36 +00:00
|
|
|
|
1995-09-08 23:56:38 +00:00
|
|
|
config.h: stamp-h ; @true
|
|
|
|
stamp-h: config.in config.status
|
|
|
|
CONFIG_FILES= CONFIG_HEADERS=config.h:config.in $(SHELL) ./config.status
|
1995-08-23 21:06:36 +00:00
|
|
|
|
1995-11-07 02:58:35 +00:00
|
|
|
config.status: configure
|
1995-08-23 21:06:36 +00:00
|
|
|
$(SHELL) ./config.status --recheck
|
|
|
|
|
|
|
|
install:
|
1995-09-08 13:59:49 +00:00
|
|
|
$(INSTALL_XFORM) run $(bindir)/run
|
|
|
|
|