(Try to) Update to new bfd autoconf scheme.
[platform/upstream/binutils.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 = @INSTALL@
52 INSTALL_PROGRAM = @INSTALL_PROGRAM@
53 INSTALL_DATA = @INSTALL_DATA@
54
55 AR = @AR@
56 AR_FLAGS = rc
57 CC = @CC@
58 CFLAGS = @CFLAGS@
59 BISON = bison
60 MAKEINFO = makeinfo
61 RANLIB = @RANLIB@
62
63 HDEFINES = @HDEFINES@
64 TDEFINES =
65
66 .NOEXPORT:
67 MAKEOVERRIDES=
68
69 X=xstuff.o
70 XL=-lX11
71 X=
72 XL=
73
74 INCDIR = $(srcdir)/../../include 
75 CSEARCH = -I. -I$(srcdir)  -I../../include  \
76   -I../../bfd -I$(INCDIR) -I$(srcdir)/../../bfd -I$(srcdir)/../../gdb -I$(srcdir)/../../newlib/libc/sys/sh
77 DEP = mkdep
78
79 all:    run libsim.a
80
81 run:    interp.o $(X) run.o table.o
82         $(CC) $(CFLAGS) -o run $(X) interp.o table.o run.o ../../bfd/libbfd.a ../../libiberty/libiberty.a $(XL) -lm
83
84 interp.o:interp.c code.c table.c
85 run.o:run.c 
86
87 libsim.a:interp.o table.o
88         $(AR) $(ARFLAGS) libsim.a interp.o table.o
89         $(RANLIB) libsim.a
90
91 code.c:gencode
92         ./gencode -x >code.c
93 #       indent code.c
94
95 table.c:gencode
96         ./gencode -s >table.c
97 #       indent table.c
98
99 gencode:gencode.c
100         $(CC) -o gencode $(srcdir)/gencode.c
101
102 .c.o:
103         $(CC) -c $(CFLAGS) $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) $<
104
105 check:
106
107 info:
108 clean-info:
109 install-info:
110
111 tags etags: TAGS
112
113 TAGS: force
114         etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c
115
116 clean:
117         rm -f *.[oa] *~ core *.E *.p *.ip aout-params.h gen-aout
118         rm -f run libsim.a
119
120 distclean mostlyclean realclean: clean
121         rm -f TAGS
122         rm -f Makefile config.cache config.log config.status
123
124 # Dummy target to force execution of dependent targets.
125 #
126 force:
127
128 # Copy the files into directories where they will be run.
129 install:
130         srcroot=`cd $(srcroot); pwd`; export srcroot; \
131         n=`t='$(program_transform_name)'; echo run | sed -e "" $$t`; \
132         $(INSTALL_PROGRAM) run $(bindir)/$$n ;  \
133         rm -f $(tooldir)/bin/run; \
134         ln $(bindir)/$$n $(tooldir)/bin/run \
135                 || (INSTALL_PROGRAM) run $(tooldir)/bin/run; \
136
137 install-man: run.1
138         $(INSTALL_XFORM1) $(srcdir)/run.1 $(man1dir)/run.1
139
140 Makefile: Makefile.in config.status
141         $(SHELL) ./config.status
142
143 config.status: configure
144         $(SHELL) ./config.status --recheck
145
146 dep: $(CFILES)
147         mkdep $(CFLAGS) $?
148
149 # What appears below is generated by a hacked mkdep using gcc -MM.
150
151 # DO NOT DELETE THIS LINE -- mkdep uses it.
152 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
153
154
155 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY