Make sure there is a trailing space after the instruction
[deliverable/binutils-gdb.git] / sim / d10v / Makefile.in
... / ...
CommitLineData
1# Makefile template for Configure for the D10v sim library.
2# Copyright (C) 1996 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
19default: all
20
21VPATH = @srcdir@
22srcdir = @srcdir@
23srcroot = $(srcdir)/../..
24
25prefix = @prefix@
26exec_prefix = @exec_prefix@
27
28host_alias = @host_alias@
29target_alias = @target_alias@
30program_transform_name = @program_transform_name@
31bindir = @bindir@
32
33libdir = @libdir@
34tooldir = $(libdir)/$(target_alias)
35
36datadir = @datadir@
37mandir = @mandir@
38man1dir = $(mandir)/man1
39man2dir = $(mandir)/man2
40man3dir = $(mandir)/man3
41man4dir = $(mandir)/man4
42man5dir = $(mandir)/man5
43man6dir = $(mandir)/man6
44man7dir = $(mandir)/man7
45man8dir = $(mandir)/man8
46man9dir = $(mandir)/man9
47infodir = @infodir@
48includedir = @includedir@
49
50SHELL = /bin/sh
51
52INSTALL = $(srcroot)/install.sh -c
53INSTALL_PROGRAM = @INSTALL_PROGRAM@
54INSTALL_DATA = @INSTALL_DATA@
55INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)'
56INSTALL_XFORM1= $(INSTALL_XFORM) -b=.1
57
58AR = @AR@
59AR_FLAGS = rc
60CC = @CC@
61CC_FOR_BUILD = @CC_FOR_BUILD@
62CFLAGS = @CFLAGS@
63SIM_CFLAGS = @sim_cflags@
64DEBUG_CFLAGS = @sim_debug@
65CONFIG_CFLAGS = @DEFS@ $(SIM_CFLAGS) $(DEBUG_CFLAGS) $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) -DINSIDE_SIMULATOR
66BUILD_CFLAGS = -g -O $(CSEARCH)
67MAKEINFO = makeinfo
68RANLIB = @RANLIB@
69
70HDEFINES = @HDEFINES@
71TDEFINES =
72
73.NOEXPORT:
74MAKEOVERRIDES=
75
76#X=xstuff.o
77#X_LIB=-lX11
78X=
79X_LIB=
80MATH_LIB=
81
82
83INCLUDE = d10v_sim.h $(srcdir)/../../gdb/callback.h
84INCDIR = $(srcdir)/../../include
85CSEARCH = -I. -I$(srcdir) -I../../include \
86 -I../../bfd -I$(INCDIR) -I$(srcdir)/../../bfd -I$(srcdir)/../../gdb -I$(srcdir)/../../newlib/libc/sys/d10v \
87 -I$(srcdir)/../../opcodes
88DEP = mkdep
89
90LIBIBERTY_LIB = ../../libiberty/libiberty.a
91BFD_LIB = ../../bfd/libbfd.a
92
93all: run libsim.a
94
95run: interp.o $(X) run.o table.o callback.o simops.o
96 $(CC) $(CFLAGS) $(CONFIG_CFLAGS) -o run $(X) interp.o table.o callback.o simops.o run.o \
97 $(BFD_LIB) $(LIBIBERTY_LIB) $(X_LIB) $(MATH_LIB)
98
99interp.o:interp.c table.c $(INCLUDE)
100run.o: $(srcdir)/../common/run.c $(INCLUDE)
101 $(CC) -c $(CFLAGS) $(CONFIG_CFLAGS) $<
102
103simops.o: simops.c $(INCLUDE)
104callback.o: $(srcdir)/../../gdb/callback.c $(INCLUDE)
105 $(CC) -c $(CFLAGS) $(CONFIG_CFLAGS) $<
106
107libsim.a:interp.o table.o simops.o
108 $(AR) $(ARFLAGS) libsim.a interp.o table.o simops.o
109 $(RANLIB) libsim.a
110
111simops.h: gencode
112 ./gencode -h >$@
113
114table.c: gencode simops.h
115 ./gencode >$@
116
117gencode.o: gencode.c $(INCLUDE)
118 $(CC_FOR_BUILD) $(BUILD_CFLAGS) -c $(srcdir)/gencode.c
119
120d10v-opc.o: $(srcdir)/../../opcodes/d10v-opc.c
121 $(CC_FOR_BUILD) $(BUILD_CFLAGS) -c $(srcdir)/../../opcodes/d10v-opc.c
122
123gencode: gencode.o d10v-opc.o
124 $(CC_FOR_BUILD) $(BUILD_CFLAGS) -o gencode gencode.o d10v-opc.o $(BUILD_LIB)
125
126.c.o:
127 $(CC) -c $(CFLAGS) $(CONFIG_CFLAGS) $<
128
129check:
130
131info:
132clean-info:
133install-info:
134
135tags etags: TAGS
136
137TAGS: force
138 etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c
139
140clean:
141 rm -f *.[oa] *~ core *.E *.p *.ip aout-params.h gen-aout
142 rm -f run table.c simops.h gencode libsim.a
143
144distclean mostlyclean maintainer-clean realclean: clean
145 rm -f TAGS
146 rm -f Makefile config.cache config.log config.status
147
148# Dummy target to force execution of dependent targets.
149#
150force:
151
152# Copy the files into directories where they will be run.
153install:
154 $(INSTALL_XFORM) run $(bindir)/run
155
156install-man: run.1
157 $(INSTALL_XFORM1) $(srcdir)/run.1 $(man1dir)/run.1
158
159Makefile: Makefile.in config.status
160 $(SHELL) ./config.status
161
162config.status: configure
163 $(SHELL) ./config.status --recheck
164
165dep: $(CFILES)
166 mkdep $(CFLAGS) $?
167
168# What appears below is generated by a hacked mkdep using gcc -MM.
169
170# DO NOT DELETE THIS LINE -- mkdep uses it.
171# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
172
173
174# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
This page took 0.023231 seconds and 4 git commands to generate.