]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/erc32/Makefile.in
* Makefile.in erc32/Makefile.in: Don't set srcroot. This should
[thirdparty/binutils-gdb.git] / sim / erc32 / Makefile.in
1 # Makefile template for Configure for the erc32sim library.
2 # Copyright (C) 1993 Free Software Foundation, Inc.
3 # Written by Cygnus Support
4 # Modified by J.Gaisler ESA/ESTEC
5 #
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
10 #
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19
20 VPATH = @srcdir@
21 srcdir = @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 libdir = @libdir@
31 tooldir = $(exec_prefix)/$(target_alias)
32
33 datadir = @datadir@
34 mandir = @mandir@
35 man1dir = $(mandir)/man1
36 man2dir = $(mandir)/man2
37 man3dir = $(mandir)/man3
38 man4dir = $(mandir)/man4
39 man5dir = $(mandir)/man5
40 man6dir = $(mandir)/man6
41 man7dir = $(mandir)/man7
42 man8dir = $(mandir)/man8
43 man9dir = $(mandir)/man9
44 infodir = @infodir@
45 includedir = @includedir@
46
47 SHELL = /bin/sh
48
49 INSTALL = @INSTALL@
50 INSTALL_PROGRAM = @INSTALL_PROGRAM@
51 INSTALL_DATA = @INSTALL_DATA@
52 INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)'
53 INSTALL_XFORM1= $(INSTALL_XFORM) -b=.1
54
55 AR = @AR@
56 AR_FLAGS = rc
57 CC = @CC@
58 CFLAGS = @CFLAGS@
59 MAKEINFO = makeinfo
60 RANLIB = @RANLIB@
61
62 #
63 # UARTS run at about 115200 baud (simulator time). Add -DFAST_UART to
64 # CFLAGS if faster (infinite) UART speed is desired. Might affect the
65 # behaviour of UART interrupt routines ...
66 #
67
68 AR = ar
69 AR_FLAGS = rc
70 CFLAGS2 = -g -O3 -DSTAT -DFAST_UART -DIUREV0 -DMECREV0
71 BISON = bison
72 MAKEINFO = makeinfo
73 RANLIB = ranlib
74 CC = gcc
75
76 INCDIR = $(srcdir)/../../include
77 CSEARCH = -I. -I$(srcdir) -I$(INCDIR) -I../../bfd -I$(srcdir)/../../bfd \
78 -I$(srcdir)/../../gdb -I$(srcdir)/../../gdb/config
79 DEP = mkdep
80
81
82 TARGETLIB = libsim.a
83
84 CFILES = sis.c exec.c erc32.c interf.c run.c help.c float.c
85 OFILES = exec.o erc32.o func.o help.o float.o
86
87
88 all: end.h sis run $(TARGETLIB)
89
90 end : $(srcdir)/end.c
91 $(CC) $(srcdir)/end.c -o end
92
93 end.h : end
94 ./end > end.h
95
96 sis: sis.o $(OFILES)
97 $(CC) $(CFLAGS) $(CLAGS2) -o sis sis.o $(OFILES) \
98 ../../opcodes/libopcodes.a ../../readline/libreadline.a \
99 ../../bfd/libbfd.a ../../libiberty/libiberty.a \
100 -ltermcap -lm
101
102 run: run.o interf.o $(OFILES)
103 $(CC) $(CFLAGS) $(CLAGS2) -o run run.o interf.o $(OFILES) \
104 ../../opcodes/libopcodes.a ../../readline/libreadline.a \
105 ../../bfd/libbfd.a ../../libiberty/libiberty.a \
106 -ltermcap -lm
107
108 clean:
109 rm -f *.o libsim.a sis run end end.h
110
111 distclean: clean
112 rm -rf Makefile config.status sysdep.h
113
114 #### host and target dependent Makefile fragments come in here.
115 ###
116
117 FLAGS_TO_PASS = \
118 "against=$(against)" \
119 "AR=$(AR)" \
120 "AR_FLAGS=$(AR_FLAGS)" \
121 "CC=$(CC)" \
122 "CFLAGS=$(CFLAGS)" \
123 "RANLIB=$(RANLIB)" \
124 "MAKEINFO=$(MAKEINFO)" \
125 "INSTALL=$(INSTALL)" \
126 "INSTALL_DATA=$(INSTALL_DATA)" \
127 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
128 "BISON=$(BISON)"
129
130 $(OFILES) sis.o interf.o : end.h sis.h
131
132 .c.o:
133 $(CC) -c $(CFLAGS) $(CFLAGS2) $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) $<
134
135
136 # C source files that correspond to .o's.
137
138 STAGESTUFF = $(TARGETLIB) $(OFILES)
139
140 all: $(TARGETLIB)
141
142
143 .NOEXPORT:
144
145 check:
146
147 info:
148 clean-info:
149 install-info:
150
151 # HDEPFILES comes from the host config; TDEPFILES from the target config.
152
153
154 $(TARGETLIB): $(OFILES) interf.o
155 rm -f $(TARGETLIB)
156 $(AR) $(AR_FLAGS) $(TARGETLIB) $(OFILES) interf.o
157 $(RANLIB) $(TARGETLIB)
158
159 # Circumvent Sun Make bug with VPATH.
160 sparc-opc.o: sparc-opc.c
161
162 tags etags: TAGS
163
164 TAGS: force
165 etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c
166
167
168 sis.o: sis.c sis.h end.h
169 exec.o: exec.c sis.h end.h
170 erc32.o: erc32.c sis.h end.h
171 interf.o: interf.c sis.h end.h
172 run.o: run.c
173 help.o: help.c
174 float.o: float.c sis.h end.h
175
176 # Mark everything as depending on config.status, since the timestamp on
177 # sysdep.h might actually move backwards if we reconfig and relink it
178 # to a different hosts/h-xxx.h file. This will force a recompile anyway.
179 RECONFIG = config.status
180
181 # Dummy target to force execution of dependent targets.
182 #
183 force:
184
185 # Copy the files into directories where they will be run.
186 install:
187 $(INSTALL_XFORM) sis $(bindir)/sis ; \
188 n=`echo sis | sed '$(program_transform_name)'`; \
189 rm -f $(bindir)/sis; \
190 ln $(bindir)/$$n $(bindir)/sis \
191 || $(INSTALL_PROGRAM) sis $(bindir)/sis; \
192 test -d $(tooldir) || mkdir $(tooldir); \
193 test -d $(tooldir)/bin || mkdir $(tooldir)/bin; \
194 rm -f $(tooldir)/bin/sis; \
195 ln $(bindir)/$$n $(tooldir)/bin/sis \
196 || $(INSTALL_PROGRAM) sis $(tooldir)/bin/sis; \
197
198
199 Makefile: $(srcdir)/Makefile.in
200 $(SHELL) ./config.status