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