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