* aclocal.m4 (SIM_AC_COMMON): Move contents of Make-common.in
[deliverable/binutils-gdb.git] / sim / v850 / Makefile.in
CommitLineData
22c1c7dd
JL
1# Makefile template for Configure for the V850 sim library.
2# Copyright (C) 1990, 1991, 1992, 1995 Free Software Foundation, Inc.
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@
0ef0eba5 59CFLAGS = @CFLAGS@ @DEFS@
22c1c7dd
JL
60MAKEINFO = makeinfo
61RANLIB = @RANLIB@
62CC_FOR_BUILD = @CC_FOR_BUILD@
63
64HDEFINES = @HDEFINES@
65TDEFINES =
66
67.NOEXPORT:
68MAKEOVERRIDES=
69
70X=xstuff.o
71XL=-lX11
72X=
73XL=
74
75INCDIR = $(srcdir)/../../include
76CSEARCH = -I. -I$(srcdir) -I../../include \
77 -I../../bfd -I$(INCDIR) -I$(srcdir)/../../bfd -I$(srcdir)/../../gdb -I$(srcdir)/../../newlib/libc/sys/sh
78DEP = mkdep
79
80all: run libsim.a
81
82run: interp.o $(X) run.o table.o callback.o simops.o
83 $(CC) $(CFLAGS) -o run $(X) interp.o table.o callback.o simops.o run.o ../../bfd/libbfd.a ../../libiberty/libiberty.a $(XL) -lm
84
85interp.o:interp.c table.c
86run.o:run.c
87
88libsim.a:interp.o table.o simops.o
89 $(AR) $(ARFLAGS) libsim.a interp.o table.o simops.o
90 $(RANLIB) libsim.a
91
92simops.h: gencode
93 ./gencode -h >$@
94
95table.c: gencode simops.h
96 ./gencode >$@
97
98gencode: gencode.c ../../opcodes/libopcodes.a
99 $(CC) $(CFLAGS) $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHE) -o gencode $(srcdir)/gencode.c ../../opcodes/libopcodes.a -lc
100
101.c.o:
102 $(CC) -c -DINSIDE_SIMULATOR $(CFLAGS) $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) $<
103
104check:
105
106info:
107clean-info:
108install-info:
109
110tags etags: TAGS
111
112TAGS: force
113 etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c
114
115clean:
116 rm -f *.[oa] *~ core *.E *.p *.ip aout-params.h gen-aout
117 rm -f run table.c simops.h gencode libsim.a
118
119distclean mostlyclean maintainer-clean realclean: clean
120 rm -f TAGS
121 rm -f Makefile config.cache config.log config.status
122
123# Dummy target to force execution of dependent targets.
124#
125force:
126
127# Copy the files into directories where they will be run.
128install:
129 $(INSTALL_XFORM) run $(bindir)/run
130
131install-man: run.1
132 $(INSTALL_XFORM1) $(srcdir)/run.1 $(man1dir)/run.1
133
134Makefile: Makefile.in config.status
135 $(SHELL) ./config.status
136
137config.status: configure
138 $(SHELL) ./config.status --recheck
139
140dep: $(CFILES)
141 mkdep $(CFLAGS) $?
142
143# What appears below is generated by a hacked mkdep using gcc -MM.
144
145# DO NOT DELETE THIS LINE -- mkdep uses it.
146# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
147
148
149# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
This page took 0.039166 seconds and 4 git commands to generate.