1 # Makefile template for Configure for the V850 sim library.
2 # Copyright (C) 1996, 1997 Free Software Foundation, Inc.
3 # Written by Cygnus Support.
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 ## COMMON_PRE_CONFIG_FRAG
23 itable.o semantics.o idecode.o icache.o engine.o irun.o support.o \
46 # List of extra dependencies.
47 # Generally this consists of simulator specific files included by sim-main.h.
48 SIM_EXTRA_DEPS
= v850_sim.h sim-main.h simops.h itable.h
50 # List of flags to always pass to $(CC)
51 SIM_WARNINGS
=@sim_warnings@
52 SIM_ENDIAN
=@sim_endian@
53 SIM_HOSTENDIAN
=@sim_hostendian@
54 SIM_RESERVED_BITS
=@sim_reserved_bits@
57 -I
$(srcdir)/..
/..
/newlib
/libc
/sys
/sysnecv850 \
62 SIM_EXTRA_CLEAN
= clean-extra
64 INCLUDE
= $(sim_main_headers
) $(SIM_EXTRA_DEPS
)
66 ## COMMON_POST_CONFIG_FRAG
68 simops.h table.c
: tmp-gencode
70 .
/gencode
>tmp-table.c
71 mv tmp-table.c table.c
72 .
/gencode
-h
>tmp-simops.h
73 mv tmp-simops.h simops.h
76 $(CC_FOR_BUILD
) $(BUILD_CFLAGS
) -c
$(srcdir)/gencode.c
77 v850-opc.o
: $(srcdir)/..
/..
/opcodes
/v850-opc.c
78 $(CC_FOR_BUILD
) $(BUILD_CFLAGS
) -c
$<
79 gencode
: gencode.o v850-opc.o
80 $(CC_FOR_BUILD
) $(BUILD_CFLAGS
) -o gencode gencode.o v850-opc.o
84 BUILT_SRC_FROM_IGEN
= \
100 $(BUILT_SRC_FROM_IGEN
): tmp-igen simops.h
105 rm -f
$(BUILT_SRC_FROM_IGEN
)
106 rm -f tmp-igen tmp-insns
109 cd ..
/igen
&& $(MAKE
)
111 IGEN_INSN
=$(srcdir)/v850.igen
112 IGEN_DC
=$(srcdir)/v850-dc
113 tmp-igen
: $(IGEN_INSN
) $(IGEN_DC
) ..
/igen
/igen
114 cd ..
/igen
&& $(MAKE
)
116 -G gen-direct-access \
120 -n icache.h
-hc tmp-icache.h \
121 -n icache.c
-c tmp-icache.c \
122 -n semantics.h
-hs tmp-semantics.h \
123 -n semantics.c
-s tmp-semantics.c \
124 -n idecode.h
-hd tmp-idecode.h \
125 -n idecode.c
-d tmp-idecode.c \
126 -n model.h
-hm tmp-model.h \
127 -n model.c
-m tmp-model.c \
128 -n support.h
-hf tmp-support.h \
129 -n support.c
-f tmp-support.c \
130 -n itable.h
-ht tmp-itable.h \
131 -n itable.c
-t tmp-itable.c \
132 -n engine.h
-he tmp-engine.h \
133 -n engine.c
-e tmp-engine.c \
134 -n irun.c
-r tmp-irun.c
135 $(srcdir)/..
/..
/move-if-change tmp-icache.h icache.h
136 $(srcdir)/..
/..
/move-if-change tmp-icache.c icache.c
137 $(srcdir)/..
/..
/move-if-change tmp-idecode.h idecode.h
138 $(srcdir)/..
/..
/move-if-change tmp-idecode.c idecode.c
139 $(srcdir)/..
/..
/move-if-change tmp-semantics.h semantics.h
140 $(srcdir)/..
/..
/move-if-change tmp-semantics.c semantics.c
141 $(srcdir)/..
/..
/move-if-change tmp-model.h model.h
142 $(srcdir)/..
/..
/move-if-change tmp-model.c model.c
143 $(srcdir)/..
/..
/move-if-change tmp-support.h support.h
144 $(srcdir)/..
/..
/move-if-change tmp-support.c support.c
145 $(srcdir)/..
/..
/move-if-change tmp-itable.h itable.h
146 $(srcdir)/..
/..
/move-if-change tmp-itable.c itable.c
147 $(srcdir)/..
/..
/move-if-change tmp-engine.h engine.h
148 $(srcdir)/..
/..
/move-if-change tmp-engine.c engine.c
149 $(srcdir)/..
/..
/move-if-change tmp-irun.c irun.c
152 clean-extra
: clean-igen
153 rm -f table.c simops.h gencode
155 #interp.o: interp.c table.c $(INCLUDE)
156 simops.o
: simops.c
$(INCLUDE
)