Patch for Hitachi PR 8433, avoid core dump on HPUX host
[binutils-gdb.git] / sim / sh / Makefile.in
1 # Makefile template for Configure for the SH 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
19 VPATH = @srcdir@
20 srcdir = @srcdir@
21 srcroot = $(srcdir)/../..
22
23 prefix = @prefix@
24 exec_prefix = @exec_prefix@
25
26 host_alias = @host_alias@
27 target_alias = @target_alias@
28 program_transform_name = @program_transform_name@
29 bindir = $(exec_prefix)/bin
30
31 libdir = $(exec_prefix)/lib
32 tooldir = $(libdir)/$(target_alias)
33
34 datadir = $(prefix)/lib
35 mandir = $(prefix)/man
36 man1dir = $(mandir)/man1
37 man2dir = $(mandir)/man2
38 man3dir = $(mandir)/man3
39 man4dir = $(mandir)/man4
40 man5dir = $(mandir)/man5
41 man6dir = $(mandir)/man6
42 man7dir = $(mandir)/man7
43 man8dir = $(mandir)/man8
44 man9dir = $(mandir)/man9
45 infodir = $(prefix)/info
46 includedir = $(prefix)/include
47 docdir = $(datadir)/doc
48
49 SHELL = /bin/sh
50
51 INSTALL = $(srcroot)/install.sh -c
52 INSTALL_PROGRAM = $(INSTALL)
53 INSTALL_DATA = $(INSTALL)
54 INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)'
55 INSTALL_XFORM1= $(INSTALL_XFORM) -b=.1
56
57 AR = @AR@
58 AR_FLAGS = rc
59 CC = @CC@
60 CFLAGS = @CFLAGS@
61 BISON = bison
62 MAKEINFO = makeinfo
63 RANLIB = @RANLIB@
64 CC_FOR_BUILD = @CC_FOR_BUILD@
65
66 HDEFINES = @HDEFINES@
67 TDEFINES =
68
69 .NOEXPORT:
70 MAKEOVERRIDES=
71
72 X=xstuff.o
73 XL=-lX11
74 X=
75 XL=
76
77 INCDIR = $(srcdir)/../../include
78 CSEARCH = -I. -I$(srcdir) -I../../include \
79 -I../../bfd -I$(INCDIR) -I$(srcdir)/../../bfd -I$(srcdir)/../../gdb -I$(srcdir)/../../newlib/libc/sys/sh
80 DEP = mkdep
81
82 all: run libsim.a
83
84 run: interp.o $(X) run.o table.o
85 $(CC) $(CFLAGS) -o run $(X) interp.o table.o run.o ../../bfd/libbfd.a ../../libiberty/libiberty.a $(XL) -lm
86
87 interp.o:interp.c code.c table.c
88 run.o:run.c
89
90 libsim.a:interp.o table.o
91 $(AR) $(ARFLAGS) libsim.a interp.o table.o
92 $(RANLIB) libsim.a
93
94 code.c:gencode
95 ./gencode -x >code.c
96 # indent code.c
97
98 table.c:gencode
99 ./gencode -s >table.c
100 # indent table.c
101
102 gencode:gencode.c
103 $(CC_FOR_BUILD) -o gencode $(srcdir)/gencode.c
104
105 .c.o:
106 $(CC) -c $(CFLAGS) $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) $<
107
108 check:
109
110 info:
111 clean-info:
112 install-info:
113
114 tags etags: TAGS
115
116 TAGS: force
117 etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c
118
119 clean:
120 rm -f *.[oa] *~ core *.E *.p *.ip aout-params.h gen-aout
121 rm -f run libsim.a
122
123 distclean mostlyclean maintainer-clean realclean: clean
124 rm -f TAGS
125 rm -f Makefile config.cache config.log config.status
126
127 # Dummy target to force execution of dependent targets.
128 #
129 force:
130
131 # Copy the files into directories where they will be run.
132 install:
133 $(INSTALL_XFORM) run $(bindir)/run
134
135 install-man: run.1
136 $(INSTALL_XFORM1) $(srcdir)/run.1 $(man1dir)/run.1
137
138 Makefile: Makefile.in config.status
139 $(SHELL) ./config.status
140
141 config.status: configure
142 $(SHELL) ./config.status --recheck
143
144 dep: $(CFILES)
145 mkdep $(CFLAGS) $?
146
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