Commit | Line | Data |
---|---|---|
4fa134be ILT |
1 | # Makefile template for Configure for the MIPS simulator. |
2 | # Written by Cygnus Support. | |
3 | ||
19c5af72 DE |
4 | ## COMMON_PRE_CONFIG_FRAG |
5 | ||
295dbbe4 SG |
6 | SIM_OBJS = interp.o |
7 | # FIXME: Hack to find syscall.h? Better support for syscall.h | |
8 | # is in progress. | |
9 | SIM_EXTRA_CFLAGS = -I$(srcdir)/../../newlib/libc/sys/idt | |
10 | SIM_EXTRA_CLEAN = clean-extra | |
4fa134be | 11 | |
19c5af72 | 12 | ## COMMON_POST_CONFIG_FRAG |
4fa134be | 13 | |
295dbbe4 | 14 | interp.o: interp.c engine.c support.h config.h |
4fa134be | 15 | |
295dbbe4 SG |
16 | engine.c: gencode |
17 | ./gencode @SIMCONF@ > $@ | |
4fa134be | 18 | |
295dbbe4 SG |
19 | gencode: gencode.o getopt.o getopt1.o |
20 | $(CC_FOR_BUILD) -o $@ gencode.o getopt.o getopt1.o | |
4fa134be | 21 | |
295dbbe4 SG |
22 | gencode.o: $(srcdir)/gencode.c |
23 | $(CC_FOR_BUILD) -c -g -I${srcroot}/include $(srcdir)/gencode.c | |
24 | getopt.o: $(srcdir)/../../libiberty/getopt.c | |
25 | $(CC_FOR_BUILD) -c -g -I${srcroot}/include $(srcdir)/../../libiberty/getopt.c | |
26 | getopt1.o: $(srcdir)/../../libiberty/getopt1.c | |
27 | $(CC_FOR_BUILD) -c -g -I${srcroot}/include $(srcdir)/../../libiberty/getopt1.c | |
4fa134be | 28 | |
295dbbe4 SG |
29 | clean-extra: |
30 | rm -f gencode engine.c |