* gdbtk.tcl (files_command): Correctly insert list of files into
[deliverable/binutils-gdb.git] / sim / sh / Makefile.in
CommitLineData
1ffd292b
C
1# Makefile template for Configure for the SH sim library.
2# Copyright (C) 1990, 1991, 1992, 1995 Free Software Foundation, Inc.
594266fc
SC
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
c632873c 17# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
594266fc 18
1ffd292b
C
19VPATH = @srcdir@
20srcdir = @srcdir@
21srcroot = $(srcdir)/../..
d2fd61a8 22
1ffd292b
C
23prefix = @prefix@
24exec_prefix = @exec_prefix@
594266fc 25
1ffd292b
C
26host_alias = @host_alias@
27target_alias = @target_alias@
28program_transform_name = @program_transform_name@
594266fc 29bindir = $(exec_prefix)/bin
c632873c 30
594266fc 31libdir = $(exec_prefix)/lib
d2fd61a8 32tooldir = $(libdir)/$(target_alias)
594266fc
SC
33
34datadir = $(prefix)/lib
35mandir = $(prefix)/man
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 = $(prefix)/info
46includedir = $(prefix)/include
1ffd292b 47docdir = $(datadir)/doc
594266fc
SC
48
49SHELL = /bin/sh
50
21852576
ILT
51INSTALL = $(srcroot)/install.sh -c
52INSTALL_PROGRAM = $(INSTALL)
53INSTALL_DATA = $(INSTALL)
54INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)'
55INSTALL_XFORM1= $(INSTALL_XFORM) -b=.1
d2fd61a8 56
c632873c 57AR = @AR@
1ffd292b 58AR_FLAGS = rc
c632873c
C
59CC = @CC@
60CFLAGS = @CFLAGS@
594266fc
SC
61BISON = bison
62MAKEINFO = makeinfo
c632873c 63RANLIB = @RANLIB@
21852576 64CC_FOR_BUILD = @CC_FOR_BUILD@
c632873c
C
65
66HDEFINES = @HDEFINES@
67TDEFINES =
1ffd292b 68
4f3547f1 69.NOEXPORT:
1ffd292b
C
70MAKEOVERRIDES=
71
d2fd61a8
SC
72X=xstuff.o
73XL=-lX11
74X=
75XL=
1ffd292b 76
594266fc 77INCDIR = $(srcdir)/../../include
edf6a843
SC
78CSEARCH = -I. -I$(srcdir) -I../../include \
79 -I../../bfd -I$(INCDIR) -I$(srcdir)/../../bfd -I$(srcdir)/../../gdb -I$(srcdir)/../../newlib/libc/sys/sh
594266fc
SC
80DEP = mkdep
81
d2fd61a8 82all: run libsim.a
594266fc 83
d2fd61a8 84run: interp.o $(X) run.o table.o
c632873c 85 $(CC) $(CFLAGS) -o run $(X) interp.o table.o run.o ../../bfd/libbfd.a ../../libiberty/libiberty.a $(XL) -lm
594266fc
SC
86
87interp.o:interp.c code.c table.c
88run.o:run.c
89
d2fd61a8
SC
90libsim.a:interp.o table.o
91 $(AR) $(ARFLAGS) libsim.a interp.o table.o
92 $(RANLIB) libsim.a
93
594266fc
SC
94code.c:gencode
95 ./gencode -x >code.c
d2fd61a8 96# indent code.c
594266fc
SC
97
98table.c:gencode
99 ./gencode -s >table.c
d2fd61a8 100# indent table.c
594266fc 101
d2fd61a8 102gencode:gencode.c
21852576 103 $(CC_FOR_BUILD) -o gencode $(srcdir)/gencode.c
e615309a 104
594266fc
SC
105.c.o:
106 $(CC) -c $(CFLAGS) $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) $<
107
594266fc
SC
108check:
109
110info:
111clean-info:
112install-info:
113
594266fc
SC
114tags etags: TAGS
115
116TAGS: force
117 etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c
118
119clean:
120 rm -f *.[oa] *~ core *.E *.p *.ip aout-params.h gen-aout
c632873c 121 rm -f run libsim.a
594266fc 122
602677ad 123distclean mostlyclean maintainer-clean realclean: clean
4f3547f1
C
124 rm -f TAGS
125 rm -f Makefile config.cache config.log config.status
594266fc 126
594266fc
SC
127# Dummy target to force execution of dependent targets.
128#
129force:
130
d2fd61a8 131# Copy the files into directories where they will be run.
594266fc 132install:
21852576 133 $(INSTALL_XFORM) run $(bindir)/run
d2fd61a8
SC
134
135install-man: run.1
136 $(INSTALL_XFORM1) $(srcdir)/run.1 $(man1dir)/run.1
594266fc 137
c632873c 138Makefile: Makefile.in config.status
594266fc
SC
139 $(SHELL) ./config.status
140
1ffd292b
C
141config.status: configure
142 $(SHELL) ./config.status --recheck
143
594266fc
SC
144dep: $(CFILES)
145 mkdep $(CFLAGS) $?
146
594266fc
SC
147# What appears below is generated by a hacked mkdep using gcc -MM.
148
149# DO NOT DELETE THIS LINE -- mkdep uses it.
150# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
151
152
153# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
This page took 0.139951 seconds and 4 git commands to generate.