1 # Makefile template for Configure for the MIPS simulator.
2 # Written by Cygnus Support.
4 ## COMMON_PRE_CONFIG_FRAG
7 srcroot
=$(srcdir)/..
/..
/
28 # List of flags to always pass to $(CC).
29 SIM_SUBTARGET
=@SIM_SUBTARGET@
31 # FIXME: Hack to find syscall.h? Better support for syscall.h
35 -I
$(srcdir)/..
/..
/newlib
/libc
/sys
/idt
37 SIM_EXTRA_CLEAN
= clean-extra
39 SIM_EXTRA_ALL
= tmp.igen
41 # List of main object files for `run'.
46 ## COMMON_POST_CONFIG_FRAG
48 interp.o
: $(srcdir)/interp.c oengine.c config.h sim-main.h
51 .
/gencode @SIMCONF@
> tmp-oengine
52 mv tmp-oengine oengine.c
54 .
/gencode
--igen @SIMCONF@
> tmp-igen
57 gencode
: gencode.o getopt.o getopt1.o
58 $(CC_FOR_BUILD
) -o
$@ gencode.o getopt.o getopt1.o
60 gencode.o
: $(srcdir)/gencode.c
61 $(CC_FOR_BUILD
) -c
-g
-I
${srcroot}/include $(srcdir)/gencode.c
63 getopt.o
: $(srcdir)/..
/..
/libiberty
/getopt.c
64 $(CC_FOR_BUILD
) -c
-g
-I
${srcroot}/include $(srcdir)/..
/..
/libiberty
/getopt.c
65 getopt1.o
: $(srcdir)/..
/..
/libiberty
/getopt1.c
66 $(CC_FOR_BUILD
) -c
-g
-I
${srcroot}/include $(srcdir)/..
/..
/libiberty
/getopt1.c
69 rm -f gencode engine.c tmp.igen