1996-06-03 15:58:45 +00:00
|
|
|
# Makefile template for Configure for the MIPS simulator.
|
|
|
|
# Written by Cygnus Support.
|
|
|
|
|
1997-02-04 21:42:27 +00:00
|
|
|
## COMMON_PRE_CONFIG_FRAG
|
|
|
|
|
1997-08-27 04:44:41 +00:00
|
|
|
srcdir=@srcdir@
|
|
|
|
srcroot=$(srcdir)/../../
|
|
|
|
|
|
|
|
SIM_OBJS = interp.o \
|
|
|
|
sim-load.o \
|
|
|
|
sim-utils.o \
|
|
|
|
sim-hload.o \
|
|
|
|
sim-io.o \
|
|
|
|
sim-config.o \
|
|
|
|
sim-endian.o \
|
|
|
|
sim-engine.o \
|
|
|
|
sim-stop.o \
|
|
|
|
sim-resume.o \
|
|
|
|
sim-reason.o \
|
|
|
|
sim-events.o \
|
|
|
|
sim-module.o \
|
|
|
|
sim-trace.o \
|
|
|
|
sim-options.o \
|
|
|
|
sim-core.o \
|
|
|
|
sim-watch.o
|
|
|
|
|
|
|
|
# List of flags to always pass to $(CC).
|
1997-09-23 01:25:26 +00:00
|
|
|
SIM_SUBTARGET=@SIM_SUBTARGET@
|
1997-08-27 04:44:41 +00:00
|
|
|
|
1997-01-23 22:09:52 +00:00
|
|
|
# FIXME: Hack to find syscall.h? Better support for syscall.h
|
|
|
|
# is in progress.
|
1997-08-27 04:44:41 +00:00
|
|
|
SIM_EXTRA_CFLAGS = \
|
1997-09-23 01:25:26 +00:00
|
|
|
$(SIM_SUBTARGET) \
|
1997-08-27 04:44:41 +00:00
|
|
|
-I$(srcdir)/../../newlib/libc/sys/idt
|
|
|
|
|
1997-01-23 22:09:52 +00:00
|
|
|
SIM_EXTRA_CLEAN = clean-extra
|
1996-06-03 15:58:45 +00:00
|
|
|
|
1997-10-14 07:27:31 +00:00
|
|
|
SIM_EXTRA_ALL = tmp.igen
|
|
|
|
|
1997-08-27 04:44:41 +00:00
|
|
|
# List of main object files for `run'.
|
|
|
|
SIM_RUN_OBJS = nrun.o
|
|
|
|
|
|
|
|
|
|
|
|
|
1997-02-04 21:42:27 +00:00
|
|
|
## COMMON_POST_CONFIG_FRAG
|
1996-06-03 15:58:45 +00:00
|
|
|
|
1997-10-16 03:39:13 +00:00
|
|
|
interp.o: $(srcdir)/interp.c oengine.c config.h sim-main.h
|
1996-06-03 15:58:45 +00:00
|
|
|
|
1997-10-16 03:39:13 +00:00
|
|
|
oengine.c: gencode
|
|
|
|
./gencode @SIMCONF@ > tmp-oengine
|
|
|
|
mv tmp-oengine oengine.c
|
1997-10-14 07:27:31 +00:00
|
|
|
tmp.igen: gencode
|
|
|
|
./gencode --igen @SIMCONF@ > tmp-igen
|
|
|
|
mv tmp-igen tmp.igen
|
1996-06-03 15:58:45 +00:00
|
|
|
|
1997-01-23 22:09:52 +00:00
|
|
|
gencode: gencode.o getopt.o getopt1.o
|
|
|
|
$(CC_FOR_BUILD) -o $@ gencode.o getopt.o getopt1.o
|
1996-06-03 15:58:45 +00:00
|
|
|
|
1997-01-23 22:09:52 +00:00
|
|
|
gencode.o: $(srcdir)/gencode.c
|
|
|
|
$(CC_FOR_BUILD) -c -g -I${srcroot}/include $(srcdir)/gencode.c
|
1997-10-14 07:27:31 +00:00
|
|
|
|
1997-01-23 22:09:52 +00:00
|
|
|
getopt.o: $(srcdir)/../../libiberty/getopt.c
|
|
|
|
$(CC_FOR_BUILD) -c -g -I${srcroot}/include $(srcdir)/../../libiberty/getopt.c
|
|
|
|
getopt1.o: $(srcdir)/../../libiberty/getopt1.c
|
|
|
|
$(CC_FOR_BUILD) -c -g -I${srcroot}/include $(srcdir)/../../libiberty/getopt1.c
|
1996-06-03 15:58:45 +00:00
|
|
|
|
1997-01-23 22:09:52 +00:00
|
|
|
clean-extra:
|
1997-10-14 07:27:31 +00:00
|
|
|
rm -f gencode engine.c tmp.igen
|