More debug support; Enable -t/-v to work correctly; Add --enable-sim-cflags configure...
[deliverable/binutils-gdb.git] / sim / d10v / Makefile.in
1 # Makefile template for Configure for the SH 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
19 VPATH = @srcdir@:@srcdir@/../common:@srcdir@/../../gdb/
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 = @bindir@
30
31 libdir = @libdir@
32 tooldir = $(libdir)/$(target_alias)
33
34 datadir = @datadir@
35 mandir = @mandir@
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 = @infodir@
46 includedir = @includedir@
47
48 SHELL = /bin/sh
49
50 INSTALL = $(srcroot)/install.sh -c
51 INSTALL_PROGRAM = @INSTALL_PROGRAM@
52 INSTALL_DATA = @INSTALL_DATA@
53 INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)'
54 INSTALL_XFORM1= $(INSTALL_XFORM) -b=.1
55
56 AR = @AR@
57 AR_FLAGS = rc
58 CC = @CC@
59 SIM_CFLAGS = @sim_cflags@
60 CFLAGS = @CFLAGS@ @DEFS@ $(SIM_CFLAGS)
61 MAKEINFO = makeinfo
62 RANLIB = @RANLIB@
63 CC_FOR_BUILD = @CC_FOR_BUILD@
64
65 HDEFINES = @HDEFINES@
66 TDEFINES =
67
68 .NOEXPORT:
69 MAKEOVERRIDES=
70
71 #X=xstuff.o
72 #XL=-lX11
73 X=
74 XL=
75
76 INCLUDE = d10v_sim.h
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/d10v
80 DEP = mkdep
81
82 all: run libsim.a
83
84 run: interp.o $(X) run.o table.o callback.o simops.o
85 $(CC) $(CFLAGS) -o run $(X) interp.o table.o callback.o simops.o run.o ../../bfd/libbfd.a ../../libiberty/libiberty.a $(XL) -lm
86
87 interp.o:interp.c table.c $(INCLUDE)
88 run.o:run.c $(INCLUDE)
89 simops.o:simops.c $(INCLUDE)
90
91 libsim.a:interp.o table.o simops.o
92 $(AR) $(ARFLAGS) libsim.a interp.o table.o simops.o
93 $(RANLIB) libsim.a
94
95 simops.h: gencode
96 ./gencode -h >$@
97
98 table.c: gencode simops.h
99 ./gencode >$@
100
101 gencode: gencode.c ../../opcodes/libopcodes.a $(INCLUDE)
102 $(CC) $(CFLAGS) $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHE) -o gencode $(srcdir)/gencode.c ../../opcodes/libopcodes.a -lc
103
104 .c.o:
105 $(CC) -c -DINSIDE_SIMULATOR $(CFLAGS) $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) $<
106
107 check:
108
109 info:
110 clean-info:
111 install-info:
112
113 tags etags: TAGS
114
115 TAGS: force
116 etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c
117
118 clean:
119 rm -f *.[oa] *~ core *.E *.p *.ip aout-params.h gen-aout
120 rm -f run table.c simops.h gencode libsim.a
121
122 distclean mostlyclean maintainer-clean realclean: clean
123 rm -f TAGS
124 rm -f Makefile config.cache config.log config.status
125
126 # Dummy target to force execution of dependent targets.
127 #
128 force:
129
130 # Copy the files into directories where they will be run.
131 install:
132 $(INSTALL_XFORM) run $(bindir)/run
133
134 install-man: run.1
135 $(INSTALL_XFORM1) $(srcdir)/run.1 $(man1dir)/run.1
136
137 Makefile: Makefile.in config.status
138 $(SHELL) ./config.status
139
140 config.status: configure
141 $(SHELL) ./config.status --recheck
142
143 dep: $(CFILES)
144 mkdep $(CFLAGS) $?
145
146 # What appears below is generated by a hacked mkdep using gcc -MM.
147
148 # DO NOT DELETE THIS LINE -- mkdep uses it.
149 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
150
151
152 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
This page took 0.033851 seconds and 5 git commands to generate.