First cut at dealing with canadian crosses; make -t in debugger set d10v_debug if...
[deliverable/binutils-gdb.git] / sim / d10v / Makefile.in
CommitLineData
2934d1c9 1# Makefile template for Configure for the SH sim library.
7eebfc62 2# Copyright (C) 1996 Free Software Foundation, Inc.
2934d1c9
MH
3# Written by Cygnus Support.
4#
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.
9#
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.
14#
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.
18
1eaaf305
MM
19default: all
20
2934d1c9
MH
21VPATH = @srcdir@:@srcdir@/../common:@srcdir@/../../gdb/
22srcdir = @srcdir@
23srcroot = $(srcdir)/../..
24
25prefix = @prefix@
26exec_prefix = @exec_prefix@
27
28host_alias = @host_alias@
29target_alias = @target_alias@
30program_transform_name = @program_transform_name@
31bindir = @bindir@
32
33libdir = @libdir@
34tooldir = $(libdir)/$(target_alias)
35
36datadir = @datadir@
37mandir = @mandir@
38man1dir = $(mandir)/man1
39man2dir = $(mandir)/man2
40man3dir = $(mandir)/man3
41man4dir = $(mandir)/man4
42man5dir = $(mandir)/man5
43man6dir = $(mandir)/man6
44man7dir = $(mandir)/man7
45man8dir = $(mandir)/man8
46man9dir = $(mandir)/man9
47infodir = @infodir@
48includedir = @includedir@
49
50SHELL = /bin/sh
51
52INSTALL = $(srcroot)/install.sh -c
53INSTALL_PROGRAM = @INSTALL_PROGRAM@
54INSTALL_DATA = @INSTALL_DATA@
55INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)'
56INSTALL_XFORM1= $(INSTALL_XFORM) -b=.1
57
58AR = @AR@
59AR_FLAGS = rc
60CC = @CC@
1eaaf305
MM
61CC_FOR_BUILD = @CC_FOR_BUILD@
62CFLAGS = @CFLAGS@
7eebfc62 63SIM_CFLAGS = @sim_cflags@
1eaaf305
MM
64CONFIG_CFLAGS = @DEFS@ $(SIM_CFLAGS) $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) -DINSIDE_SIMULATOR
65BUILD_CFLAGS = -g -O $(CSEARCH)
2934d1c9
MH
66MAKEINFO = makeinfo
67RANLIB = @RANLIB@
2934d1c9
MH
68
69HDEFINES = @HDEFINES@
70TDEFINES =
71
72.NOEXPORT:
73MAKEOVERRIDES=
74
7eebfc62 75#X=xstuff.o
1eaaf305 76#X_LIB=-lX11
2934d1c9 77X=
1eaaf305
MM
78X_LIB=
79MATH_LIB=
80
2934d1c9 81
7eebfc62 82INCLUDE = d10v_sim.h
2934d1c9
MH
83INCDIR = $(srcdir)/../../include
84CSEARCH = -I. -I$(srcdir) -I../../include \
7eebfc62 85 -I../../bfd -I$(INCDIR) -I$(srcdir)/../../bfd -I$(srcdir)/../../gdb -I$(srcdir)/../../newlib/libc/sys/d10v
2934d1c9
MH
86DEP = mkdep
87
1eaaf305
MM
88LIBIBERTY_LIB = ../../libiberty/libiberty.a
89BFD_LIB = ../../bfd/libbfd.a
90OPCODES_LIB = ../../opcodes/libopcodes.a
91
92all: run libsim.a
2934d1c9 93
1eaaf305
MM
94run: interp.o $(X) run.o table.o callback.o simops.o
95 $(CC) $(CFLAGS) $(CONFIG_CFLAGS) -o run $(X) interp.o table.o callback.o simops.o run.o $(BFD_LIB) $(LIBIBERTY_LIB) $(X_LIB) $(MATH_LIB)
2934d1c9 96
7eebfc62
MM
97interp.o:interp.c table.c $(INCLUDE)
98run.o:run.c $(INCLUDE)
99simops.o:simops.c $(INCLUDE)
2934d1c9
MH
100
101libsim.a:interp.o table.o simops.o
d70b4d42 102 $(AR) $(ARFLAGS) libsim.a interp.o table.o simops.o
2934d1c9
MH
103 $(RANLIB) libsim.a
104
1eaaf305 105simops.h: gencode
2934d1c9
MH
106 ./gencode -h >$@
107
1eaaf305 108table.c: gencode simops.h
2934d1c9
MH
109 ./gencode >$@
110
1eaaf305
MM
111gencode: gencode.c ../../opcodes/libopcodes.a $(INCLUDE)
112 $(CC_FOR_BUILD) $(BUILD_CFLAGS) -o gencode $(srcdir)/gencode.c $(OPCODES_LIB)
2934d1c9
MH
113
114.c.o:
1eaaf305 115 $(CC) -c $(CFLAGS) $(CONFIG_CFLAGS) $<
2934d1c9
MH
116
117check:
118
119info:
120clean-info:
121install-info:
122
123tags etags: TAGS
124
125TAGS: force
126 etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c
127
128clean:
129 rm -f *.[oa] *~ core *.E *.p *.ip aout-params.h gen-aout
d70b4d42 130 rm -f run table.c simops.h gencode libsim.a
2934d1c9
MH
131
132distclean mostlyclean maintainer-clean realclean: clean
133 rm -f TAGS
134 rm -f Makefile config.cache config.log config.status
135
136# Dummy target to force execution of dependent targets.
137#
138force:
139
140# Copy the files into directories where they will be run.
141install:
142 $(INSTALL_XFORM) run $(bindir)/run
143
144install-man: run.1
145 $(INSTALL_XFORM1) $(srcdir)/run.1 $(man1dir)/run.1
146
147Makefile: Makefile.in config.status
148 $(SHELL) ./config.status
149
150config.status: configure
151 $(SHELL) ./config.status --recheck
152
153dep: $(CFILES)
154 mkdep $(CFLAGS) $?
155
156# What appears below is generated by a hacked mkdep using gcc -MM.
157
158# DO NOT DELETE THIS LINE -- mkdep uses it.
159# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
160
161
162# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
This page took 0.031475 seconds and 4 git commands to generate.