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-01-23 22:09:52 +00:00
|
|
|
SIM_OBJS = interp.o
|
|
|
|
# FIXME: Hack to find syscall.h? Better support for syscall.h
|
|
|
|
# is in progress.
|
|
|
|
SIM_EXTRA_CFLAGS = -I$(srcdir)/../../newlib/libc/sys/idt
|
|
|
|
SIM_EXTRA_CLEAN = clean-extra
|
1996-06-03 15:58:45 +00:00
|
|
|
|
1997-02-04 21:42:27 +00:00
|
|
|
## COMMON_POST_CONFIG_FRAG
|
1996-06-03 15:58:45 +00:00
|
|
|
|
1997-01-23 22:09:52 +00:00
|
|
|
interp.o: interp.c engine.c support.h config.h
|
1996-06-03 15:58:45 +00:00
|
|
|
|
1997-01-23 22:09:52 +00:00
|
|
|
engine.c: gencode
|
|
|
|
./gencode @SIMCONF@ > $@
|
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
|
|
|
|
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:
|
|
|
|
rm -f gencode engine.c
|