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_WARNINGS=@sim_warnings@
29 SIM_ENDIAN=@sim_endian@
30 SIM_HOSTENDIAN=@sim_hostendian@
31 SIM_INLINE=@sim_inline@
33 # FIXME: Hack to find syscall.h? Better support for syscall.h
40 -I$(srcdir)/../../newlib/libc/sys/idt
42 SIM_EXTRA_CLEAN = clean-extra
44 # List of main object files for `run'.
49 ## COMMON_POST_CONFIG_FRAG
51 interp.o: $(srcdir)/interp.c engine.c $(srcdir)/support.h config.h
54 ./gencode @SIMCONF@ > $@
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
61 getopt.o: $(srcdir)/../../libiberty/getopt.c
62 $(CC_FOR_BUILD) -c -g -I${srcroot}/include $(srcdir)/../../libiberty/getopt.c
63 getopt1.o: $(srcdir)/../../libiberty/getopt1.c
64 $(CC_FOR_BUILD) -c -g -I${srcroot}/include $(srcdir)/../../libiberty/getopt1.c
67 rm -f gencode engine.c