Now works in a cross build environment
[deliverable/binutils-gdb.git] / sim / h8300 / Makefile.in
CommitLineData
a154eea7
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
22
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
19139515
SC
56INCDIR = $(srcdir)/../include
57CSEARCH = -I. -I$(srcdir) -I$(INCDIR) -I$(srcdir)/../bfd
a154eea7
SC
58DEP = mkdep
59
60
61TARGETLIB = libsim.a
62
63run: code.o run.o
4d53c4e3 64 $(CC) -o run code.o run.o ../bfd/libbfd.a ../libiberty/libiberty.a
a154eea7
SC
65
66code.c:p1.c p2.c p3.c
f53974be 67 cat $(VPATH)/p1.c p2.c $(VPATH)/p3.c | cb >code.c
a154eea7
SC
68 indent code.c
69
70p2.c:writecode
71 ./writecode >p2.c
72
73
4d53c4e3
SC
74writecode:writecode.c
75 $(CC_FOR_BUILD) -o writecode -g $(CSEARCH) -c $(srcdir)/writecode.c
a154eea7
SC
76
77
78
79
80
81#### host and target dependent Makefile fragments come in here.
82###
83
84FLAGS_TO_PASS = \
85 "against=$(against)" \
86 "AR=$(AR)" \
87 "AR_FLAGS=$(AR_FLAGS)" \
88 "CC=$(CC)" \
89 "CFLAGS=$(CFLAGS)" \
90 "RANLIB=$(RANLIB)" \
91 "MAKEINFO=$(MAKEINFO)" \
92 "INSTALL=$(INSTALL)" \
93 "INSTALL_DATA=$(INSTALL_DATA)" \
94 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
95 "BISON=$(BISON)"
96
97.c.o:
98 $(CC) -c $(CFLAGS) $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) $<
99
100
101# C source files that correspond to .o's.
102CFILES = z8k-dis.c
103
104STAGESTUFF = $(TARGETLIB) $(OFILES)
105
106all: $(TARGETLIB)
107
108
109.NOEXPORT:
110
111check:
112
113info:
114clean-info:
115install-info:
116
117# HDEPFILES comes from the host config; TDEPFILES from the target config.
118
119
120$(TARGETLIB): $(OFILES)
121 rm -f $(TARGETLIB)
122 $(AR) $(AR_FLAGS) $(TARGETLIB) $(OFILES)
123 $(RANLIB) $(TARGETLIB)
124
125# Circumvent Sun Make bug with VPATH.
126sparc-opc.o: sparc-opc.c
127
128tags etags: TAGS
129
130TAGS: force
131 etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c
132
133clean:
134 rm -f *.[oa] *~ core *.E *.p *.ip aout-params.h gen-aout
135
136clobber realclean: clean
137 rm -f libbfd.a TAGS
138
139# Mark everything as depending on config.status, since the timestamp on
140# sysdep.h might actually move backwards if we reconfig and relink it
141# to a different hosts/h-xxx.h file. This will force a recompile anyway.
142RECONFIG = config.status
143
144
145
146# This target should be invoked before building a new release.
147# 'VERSION' file must be present and contain a string of the form "x.y"
148#
149roll:
150 @V=`cat VERSION` ; \
151 MAJ=`sed 's/\..*//' VERSION` ; \
152 MIN=`sed 's/.*\.//' VERSION` ; \
153 V=$$MAJ.`expr $$MIN + 1` ; \
154 rm -f VERSION ; \
155 echo $$V >VERSION ; \
156 echo Version $$V
157
158# Dummy target to force execution of dependent targets.
159#
160force:
161
162install:
163 -parent=`echo $(bindir)|sed -e 's@/[^/]*$$@@'`; \
164 if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
165 -if [ -d $(bindir) ] ; then true ; else mkdir $(bindir) ; fi
166 -parent=`echo $(man1dir)|sed -e 's@/[^/]*$$@@'`; \
167 if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
168 -if [ -d $(man1dir) ] ; then true ; else mkdir $(man1dir) ; fi
169 -n=`t='$(program_transform_name)'; echo run | sed -e "" $$t`; \
170 $(INSTALL_PROGRAM) run $(bindir)/$$n; \
171 $(M_INSTALL)
172
173
174
175Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
176 $(SHELL) ./config.status
177
178dep: $(CFILES)
179 mkdep $(CFLAGS) $?
180
181
182# What appears below is generated by a hacked mkdep using gcc -MM.
183
184# DO NOT DELETE THIS LINE -- mkdep uses it.
185# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
186
187
188# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
189
This page took 0.02937 seconds and 4 git commands to generate.