1 # Makefile template for Configure for the MIPS simulator.
2 # Written by Cygnus Support.
4 ## COMMON_PRE_CONFIG_FRAG
7 srcroot
=$(srcdir)/..
/..
/
27 # List of flags to always pass to $(CC).
28 SIM_SUBTARGET
=@SIM_SUBTARGET@
30 # FIXME: Hack to find syscall.h? Better support for syscall.h
34 -I
$(srcdir)/..
/..
/newlib
/libc
/sys
/idt
36 SIM_EXTRA_CLEAN
= clean-extra
38 SIM_EXTRA_ALL
= tmp.igen
40 # List of main object files for `run'.
45 ## COMMON_POST_CONFIG_FRAG
47 interp.o
: $(srcdir)/interp.c engine.c config.h
50 .
/gencode @SIMCONF@
> tmp-engine
51 mv tmp-engine engine.c
53 .
/gencode
--igen @SIMCONF@
> tmp-igen
56 gencode
: gencode.o getopt.o getopt1.o
57 $(CC_FOR_BUILD
) -o
$@ gencode.o getopt.o getopt1.o
59 gencode.o
: $(srcdir)/gencode.c
60 $(CC_FOR_BUILD
) -c
-g
-I
${srcroot}/include $(srcdir)/gencode.c
62 getopt.o
: $(srcdir)/..
/..
/libiberty
/getopt.c
63 $(CC_FOR_BUILD
) -c
-g
-I
${srcroot}/include $(srcdir)/..
/..
/libiberty
/getopt.c
64 getopt1.o
: $(srcdir)/..
/..
/libiberty
/getopt1.c
65 $(CC_FOR_BUILD
) -c
-g
-I
${srcroot}/include $(srcdir)/..
/..
/libiberty
/getopt1.c
68 rm -f gencode engine.c tmp.igen