aboutsummaryrefslogtreecommitdiff
path: root/sim/mips/Makefile.in
blob: e5f97e7210942f78f1ef2027c1e1780debc1da2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#    Makefile template for Configure for the MIPS simulator.
#    Written by Cygnus Support.

## COMMON_PRE_CONFIG_FRAG

srcdir=@srcdir@
srcroot=$(srcdir)/../../

SIM_OBJS = interp.o \
	sim-load.o \
	sim-utils.o \
	sim-hload.o \
	sim-io.o \
	sim-config.o \
	sim-endian.o \
	sim-engine.o \
	sim-stop.o \
	sim-resume.o \
	sim-reason.o \
	sim-events.o \
	sim-module.o \
	sim-trace.o \
	sim-options.o \
	sim-core.o \
	sim-watch.o

# List of flags to always pass to $(CC).
SIM_WARNINGS=@sim_warnings@
SIM_ENDIAN=@sim_endian@
SIM_HOSTENDIAN=@sim_hostendian@
SIM_INLINE=@sim_inline@

# FIXME: Hack to find syscall.h?  Better support for syscall.h
# is in progress.
SIM_EXTRA_CFLAGS = \
	$(SIM_WARNINGS) \
	$(SIM_ENDIAN) \
	$(SIM_HOSTENDIAN) \
	$(SIM_INLINE) \
	-I$(srcdir)/../../newlib/libc/sys/idt

SIM_EXTRA_CLEAN = clean-extra

# List of main object files for `run'.
SIM_RUN_OBJS = nrun.o



## COMMON_POST_CONFIG_FRAG

interp.o: $(srcdir)/interp.c engine.c $(srcdir)/support.h config.h

engine.c: gencode
	./gencode @SIMCONF@ > $@

gencode: gencode.o getopt.o getopt1.o
	$(CC_FOR_BUILD) -o $@ gencode.o getopt.o getopt1.o

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

clean-extra:
	rm -f gencode engine.c