* config/m68k/monitor.mt (TDEPFILES): Added cpu32bug-rom.o.
[deliverable/binutils-gdb.git] / sim / sh / Makefile.in
CommitLineData
594266fc
SC
1# Makefile template for Configure for the h8300sim library.
2# Copyright (C) 1990, 1991, 1992 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., 675 Mass Ave, Cambridge, MA 02139, USA.
18
19srcdir = .
d2fd61a8
SC
20srcroot = $(srcdir)/../../
21
594266fc
SC
22
23prefix = /usr/local
d2fd61a8 24
594266fc
SC
25program_transform_name =
26exec_prefix = $(prefix)
27bindir = $(exec_prefix)/bin
28libdir = $(exec_prefix)/lib
d2fd61a8 29tooldir = $(libdir)/$(target_alias)
594266fc
SC
30
31datadir = $(prefix)/lib
32mandir = $(prefix)/man
33man1dir = $(mandir)/man1
34man2dir = $(mandir)/man2
35man3dir = $(mandir)/man3
36man4dir = $(mandir)/man4
37man5dir = $(mandir)/man5
38man6dir = $(mandir)/man6
39man7dir = $(mandir)/man7
40man8dir = $(mandir)/man8
41man9dir = $(mandir)/man9
42infodir = $(prefix)/info
43includedir = $(prefix)/include
44oldincludedir =
45docdir = $(srcdir)/doc
46
47SHELL = /bin/sh
48
d2fd61a8
SC
49
50
51INSTALL = $(srcroot)/install.sh -c
594266fc
SC
52INSTALL_PROGRAM = $(INSTALL)
53INSTALL_DATA = $(INSTALL)
d2fd61a8
SC
54INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)'
55INSTALL_XFORM1= $(INSTALL_XFORM) -b=.1
56
594266fc 57
d2fd61a8
SC
58
59CC_FOR_BUILD = cc
594266fc
SC
60AR = ar
61AR_FLAGS = qc
62CFLAGS = -g
63BISON = bison
64MAKEINFO = makeinfo
65RANLIB = ranlib
d2fd61a8
SC
66X=xstuff.o
67XL=-lX11
68X=
69XL=
594266fc 70INCDIR = $(srcdir)/../../include
d2fd61a8 71CSEARCH = -I. -I$(srcdir) -I../../include -I../../bfd -I$(INCDIR) -I$(srcdir)/../../bfd -I$(srcdir)/../../gdb
594266fc
SC
72DEP = mkdep
73
74#### host, target, and site specific Makefile frags come in here.
75
d2fd61a8 76all: run libsim.a
594266fc
SC
77
78
d2fd61a8
SC
79run: interp.o $(X) run.o table.o
80 $(CC) $(CFLAGS) -o run $(X) interp.o table.o run.o ../../bfd/libbfd.a ../../libiberty/libiberty.a $(XL)
594266fc
SC
81
82interp.o:interp.c code.c table.c
83run.o:run.c
84
d2fd61a8
SC
85libsim.a:interp.o table.o
86 $(AR) $(ARFLAGS) libsim.a interp.o table.o
87 $(RANLIB) libsim.a
88
594266fc
SC
89code.c:gencode
90 ./gencode -x >code.c
d2fd61a8 91# indent code.c
594266fc
SC
92
93table.c:gencode
94 ./gencode -s >table.c
d2fd61a8 95# indent table.c
594266fc 96
d2fd61a8
SC
97gencode:gencode.c
98 $(CC_FOR_BUILD) -o gencode $<
e615309a 99
594266fc
SC
100
101#### host and target dependent Makefile fragments come in here.
102###
103
104FLAGS_TO_PASS = \
105 "against=$(against)" \
106 "AR=$(AR)" \
107 "AR_FLAGS=$(AR_FLAGS)" \
108 "CC=$(CC)" \
109 "CFLAGS=$(CFLAGS)" \
110 "RANLIB=$(RANLIB)" \
111 "MAKEINFO=$(MAKEINFO)" \
112 "INSTALL=$(INSTALL)" \
113 "INSTALL_DATA=$(INSTALL_DATA)" \
114 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
115 "BISON=$(BISON)"
116
117.c.o:
118 $(CC) -c $(CFLAGS) $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) $<
119
120
121
122.NOEXPORT:
123
124check:
125
126info:
127clean-info:
128install-info:
129
130# HDEPFILES comes from the host config; TDEPFILES from the target config.
131
132
133
134tags etags: TAGS
135
136TAGS: force
137 etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c
138
139clean:
140 rm -f *.[oa] *~ core *.E *.p *.ip aout-params.h gen-aout
141
142clobber realclean: clean
143 rm -f libbfd.a TAGS
144
145# Mark everything as depending on config.status, since the timestamp on
146# sysdep.h might actually move backwards if we reconfig and relink it
147# to a different hosts/h-xxx.h file. This will force a recompile anyway.
148RECONFIG = config.status
149
150
151
152# This target should be invoked before building a new release.
153# 'VERSION' file must be present and contain a string of the form "x.y"
154#
155roll:
156 @V=`cat VERSION` ; \
157 MAJ=`sed 's/\..*//' VERSION` ; \
158 MIN=`sed 's/.*\.//' VERSION` ; \
159 V=$$MAJ.`expr $$MIN + 1` ; \
160 rm -f VERSION ; \
161 echo $$V >VERSION ; \
162 echo Version $$V
163
164# Dummy target to force execution of dependent targets.
165#
166force:
167
d2fd61a8 168# Copy the files into directories where they will be run.
594266fc 169install:
d2fd61a8
SC
170 srcroot=`cd $(srcroot); pwd`; export srcroot; \
171 $(INSTALL_XFORM) run $(bindir)/run ; \
172 n=`t='$(program_transform_name)'; echo run | sed -e "" $$t`; \
173 if [ -d $(tooldir) ] ; then \
174 if [ -d $(tooldir)/bin ] ; then true ; else mkdir $(tooldir)/bin ; fi; \
175 rm -f $(tooldir)/bin/run; \
176 ln $(bindir)/$$n $(tooldir)/bin/run \
177 || $(INSTALL_PROGRAM) run $(tooldir)/bin/run; \
178 else true; fi
179
180install-man: run.1
181 $(INSTALL_XFORM1) $(srcdir)/run.1 $(man1dir)/run.1
594266fc
SC
182
183
184Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
185 $(SHELL) ./config.status
186
187dep: $(CFILES)
188 mkdep $(CFLAGS) $?
189
190
191# What appears below is generated by a hacked mkdep using gcc -MM.
192
193# DO NOT DELETE THIS LINE -- mkdep uses it.
194# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
195
196
197# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
198
This page took 0.098915 seconds and 4 git commands to generate.