OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [newlib-1.17.0/] [libgloss/] [rs6000/] [Makefile.in] - Blame information for rev 866

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 148 jeremybenn
# Copyright (c) 1995, 1996, 1998 Cygnus Support
2
#
3
# The authors hereby grant permission to use, copy, modify, distribute,
4
# and license this software and its documentation for any purpose, provided
5
# that existing copyright notices are retained in all copies and that this
6
# notice is included verbatim in any distributions. No written agreement,
7
# license, or royalty fee is required for any of the authorized uses.
8
# Modifications to this software may be copyrighted by their authors
9
# and need not follow the licensing terms described here, provided that
10
# the new terms are clearly indicated on the first page of each file where
11
# they apply.
12
#
13
 
14
#
15
# This currently works with the PPC simulator.
16
#
17
 
18
DESTDIR =
19
VPATH = @srcdir@:@srcdir@/..
20
srcdir = @srcdir@
21
objdir = .
22
srcroot = $(srcdir)/../..
23
objroot = $(objdir)/../..
24
 
25
prefix = @prefix@
26
exec_prefix = @exec_prefix@
27
 
28
host_alias = @host_alias@
29
target_alias = @target_alias@
30
 
31
bindir = @bindir@
32
libdir = @libdir@
33
tooldir = $(exec_prefix)/$(target_alias)
34
 
35
# Multilib support variables.
36
# TOP is used instead of MULTI{BUILD,SRC}TOP.
37
MULTIDIRS =
38
MULTISUBDIR =
39
MULTIDO = true
40
MULTICLEAN = true
41
 
42
INSTALL = @INSTALL@
43
INSTALL_PROGRAM = @INSTALL_PROGRAM@
44
INSTALL_DATA = @INSTALL_DATA@
45
 
46
SHELL = /bin/sh
47
 
48
CC = @CC@
49
 
50
AS = @AS@
51
AR = @AR@
52
LD = @LD@
53
RANLIB = @RANLIB@
54
 
55
OBJDUMP = `if [ -f ${objroot}/../binutils/objdump ] ; \
56
        then echo ${objroot}/../binutils/objdump ; \
57
        else t='$(program_transform_name)'; echo objdump | sed -e $$t ; fi`
58
OBJCOPY = `if [ -f ${objroot}/../binutils/objcopy ] ; \
59
        then echo ${objroot}/../binutils/objcopy ; \
60
        else t='$(program_transform_name)'; echo objcopy | sed -e $$t ; fi`
61
 
62
OBJS            = fstat.o getpid.o isatty.o kill.o putnum.o stat.o unlink.o mcount.o
63
CFLAGS          = -g
64
SCRIPTS         = ${SIM_SCRIPTS} ${MVME_SCRIPTS} ${YELLOWKNIFE_SCRIPTS} ${ADS_SCRIPTS}
65
 
66
# Here is all of the simulator stuff
67
SIM_SCRIPTS     =
68
SIM_LDFLAGS     =
69
SIM_BSP         = libsim.a
70
SIM_CRT0        = sim-crt0.o
71
SIM_OBJS        = sim-print.o sim-inbyte.o sim-sbrk.o sim-abort.o sim-errno.o simulator.o sim-getrusage.o
72
SIM_TEST        = sim-test
73
SIM_INSTALL     = install-sim
74
 
75
# Here is all the mvme stuff
76
MVME_SCRIPTS    =
77
MVME_LDFLAGS    =
78
MVME_BSP        = libmvme.a
79
MVME_CRT0       = crt0.o
80
MVME_OBJS       = mvme-exit.o mvme-inbyte.o mvme-outbyte.o open.o close.o lseek.o sbrk.o mvme-read.o mvme-print.o
81
MVME_TEST       = mvme-test
82
MVME_INSTALL    = install-mvme
83
 
84
# Here is the Solaris stuff
85
#SOLARIS_SCRIPTS=
86
#SOLARIS_LDFLAGS=
87
#SOLARIS_BSP    = libsolaris.a
88
#SOLARIS_CRT0   =
89
#SOLARIS_OBJS   = sol-cfuncs.o sol-syscall.o
90
#SOLARIS_TEST   = sol-test
91
#SOLARIS_INSTALL= install-solaris
92
 
93
# Here is the Linux stuff
94
#LINUX_SCRIPTS  =
95
#LINUX_LDFLAGS  =
96
#LINUX_BSP      = liblinux.a
97
#LINUX_CRT0     =
98
#LINUX_OBJS     = lin-cfuncs.o lin-syscall.o
99
#LINUX_TEST     = linux-test
100
#LINUX_INSTALL  = install-linux
101
 
102
YELLOWKNIFE_SCRIPTS     = yellowknife.ld
103
YELLOWKNIFE_CRT0        = crt0.o
104
YELLOWKNIFE_BSP         = libyk.a
105
YELLOWKNIFE_OBJS        = open.o close.o lseek.o sbrk.o mvme-exit.o mvme-inbyte.o mvme-outbyte.o mvme-read.o mvme-print.o
106
YELLOWKNIFE_TEST        = yellowknife-test
107
YELLOWKNIFE_INSTALL     = install-yellowknife
108
 
109
ADS_SCRIPTS     = ads.ld
110
ADS_CRT0        = crt0.o
111
ADS_BSP         = libads.a
112
ADS_OBJS        = open.o close.o lseek.o sbrk.o ads-exit.o ads-io.o
113
ADS_TEST        = ads-test
114
ADS_INSTALL     = install-ads
115
 
116
MBX_SCRIPTS     = mbx.ld
117
MBX_SPECS       = mbx.specs
118
MBX_CRT0        = crt0.o
119
MBX_BSP         = libmbx.a
120
MBX_OBJS        = open.o close.o lseek.o sbrk.o read.o write.o mbx-exit.o mbx-inbyte.o mbx-outbyte.o mbx-print.o
121
MBX_TEST        = mbx-test
122
MBX_INSTALL     = install-mbx
123
 
124
# Host specific makefile fragment comes in here.
125
@host_makefile_frag@
126
 
127
#
128
# build a test program for each target board. Just trying to get
129
# it to link is a good test, so we ignore all the errors for now.
130
#
131
all: \
132
        ${SIM_CRT0} ${SIM_BSP} \
133
        ${MVME_CRT0} ${MVME_BSP} \
134
        ${SOLARIS_CRT0} ${SOLARIS_BSP} \
135
        ${LINUX_CRT0} ${LINUX_BSP} \
136
        ${YELLOWKNIFE_CRT0} ${YELLOWKNIFE_BSP} \
137
        ${ADS_CRT0} ${ADS_BSP} \
138
        ${MBX_CRT0} ${MBX_BSP}
139
 
140
#
141
# here's where we build the board support packages for each target
142
#
143
 
144
${SIM_BSP}: ${OBJS} ${SIM_OBJS}
145
        ${AR} ${ARFLAGS} $@ ${SIM_OBJS} ${OBJS}
146
        ${RANLIB} $@
147
 
148
${MVME_BSP}: ${OBJS} ${MVME_OBJS}
149
        ${AR} ${ARFLAGS} $@ ${MVME_OBJS} ${OBJS}
150
        ${RANLIB} $@
151
 
152
${LINUX_BSP}: ${OBJS} ${LINUX_OBJS}
153
        ${AR} ${ARFLAGS} $@ ${LINUX_OBJS} ${OBJS}
154
        ${RANLIB} $@
155
 
156
${SOLARIS_BSP}: ${OBJS} ${SOLARIS_OBJS}
157
        ${AR} ${ARFLAGS} $@ ${SOLARIS_OBJS}
158
        ${RANLIB} $@
159
 
160
${YELLOWKNIFE_BSP}: ${OBJS} ${YELLOWKNIFE_OBJS}
161
        ${AR} ${ARFLAGS} $@ ${YELLOWKNIFE_OBJS} ${OBJS}
162
        ${RANLIB} $@
163
 
164
${ADS_BSP}: ${OBJS} ${ADS_OBJS}
165
        ${AR} ${ARFLAGS} $@ ${ADS_OBJS} ${OBJS}
166
        ${RANLIB} $@
167
 
168
${MBX_BSP}: ${OBJS} ${MBX_OBJS}
169
        ${AR} ${ARFLAGS} $@ ${MBX_OBJS} ${OBJS}
170
        ${RANLIB} $@
171
 
172
#
173
# here's where we build the test programs for each target
174
#
175
.PHONY: test
176
test:   ${SIM_TEST} ${MVME_TEST} ${YELLOWKNIFE_TEST} ${ADS_TEST} ${MBX_TEST}
177
 
178
sim-test:       sim-test.x sim-test.dis
179
 
180
sim-test.x:     test.o ${SIM_CRT0} ${SIM_BSP}
181
        ${CC} ${LDFLAGS_FOR_TARGET} -L${objdir} \
182
        ${SIM_CRT0} test.o \
183
        -o sim-test.x ${LIBS_FOR_TARGET} -lc ${SIM_BSP}
184
 
185
sim-test.dis:   sim-test.x
186
        ${OBJDUMP} -d sim-test.x > sim-test.dis
187
 
188
mvme-test:      mvme-test.x mvme-test.dis mvme-test.srec
189
 
190
mvme-test.x:    test.o ${MVME_CRT0} ${MVME_BSP}
191
        ${CC} ${LDFLAGS_FOR_TARGET} -L${objdir} \
192
        ${SIM_CRT0} test.o \
193
        -o mvme-test.x ${LIBS_FOR_TARGET} -lc ${MVME_BSP}
194
 
195
mvme-test.dis:  mvme-test.x
196
        ${OBJDUMP} -d mvme-test.x > mvme-test.dis
197
 
198
mvme-test.srec: mvme-test.x
199
        ${OBJCOPY} -O srec mvme-test.x mvme-test.srec
200
 
201
sol-test:       sol-test.x sol-test.dis sol-test.srec
202
 
203
sol-test.x:     test.o ${SOLARIS_CRT0} ${SOLARIS_BSP}
204
        ${CC} ${LDFLAGS_FOR_TARGET} -L${objdir} \
205
        ${SIM_CRT0} test.o \
206
        -o sol-test.x ${LIBS_FOR_TARGET} -lc ${SOLARIS_BSP}
207
 
208
sol-test.dis: sol-test.x
209
        ${OBJDUMP} -d sol-test.x > sol-test.dis
210
 
211
sol-test.srec:  sol-test.x
212
        ${OBJCOPY} -O srec sol-test.x sol-test.srec
213
 
214
linux-test: linux-test.x linux-test.dis linux-test.srec
215
 
216
linux-test.x: test.o ${LINUX_CRT0} ${LINUX_BSP}
217
        ${CC} ${LDFLAGS_FOR_TARGET} -L${objdir} \
218
        ${SIM_CRT0} test.o \
219
        -o linux-test.x ${LIBS_FOR_TARGET} -lc ${LINUX_BSP}
220
 
221
linux-test.dis: linux-test.x
222
        ${OBJDUMP} -d linux-test.x > linux-test.dis
223
 
224
linux-test.srec:        linux-test.x
225
        ${OBJCOPY} -O srec linux-test.x linux-test.srec
226
 
227
yellowknife-test:       yellowknife-test.x yellowknife-test.dis yellowknife-test.srec
228
 
229
yellowknife-test.x:     test.o ${YELLOWKNIFE_CRT0} ${YELLOWKNIFE_BSP}
230
        ${CC} ${LDFLAGS_FOR_TARGET} -L${objdir} \
231
        -T${srcdir}/yellowknife.ld ${YELLOWKNIFE_CRT0} test.o \
232
        -o yellowknife-test.x $(LIBS_FOR_TARGET) ${YELLOWKNIFE_BSP} -lc ${YELLOWKNIFE_BSP}
233
 
234
yellowknife-test.dis:   yellowknife-test.x
235
        ${OBJDUMP} -d yellowknife-test.x > yellowknife-test.dis
236
 
237
yellowknife-test.srec:  yellowknife-test.x
238
        ${OBJCOPY} -O srec yellowknife-test.x yellowknife-test.srec
239
 
240
ads-test:       ads-test.x ads-test.dis ads-test.srec
241
 
242
ads-test.x:     test.o ${ADS_CRT0} ${ADS_BSP}
243
        ${CC} ${LDFLAGS_FOR_TARGET} -L${objdir} \
244
        -T${srcdir}/ads.ld ${ADS_CRT0} test.o \
245
        -o ads-test.x $(LIBS_FOR_TARGET) ${ADS_BSP} -lc ${ADS_BSP}
246
 
247
ads-test.dis:   ads-test.x
248
        ${OBJDUMP} -d ads-test.x > ads-test.dis
249
 
250
ads-test.srec:  ads-test.x
251
        ${OBJCOPY} -O srec ads-test.x ads-test.srec
252
 
253
mbx-test:       mbx-test.x mbx-test.dis mbx-test.srec
254
 
255
mbx-test.x:     test.o ${MBX_CRT0} ${MBX_BSP}
256
        ${CC} ${LDFLAGS_FOR_TARGET} -L${objdir} \
257
        -T${srcdir}/mbx.ld ${MBX_CRT0} test.o \
258
        -o mbx-test.x $(LIBS_FOR_TARGET) ${MBX_BSP} -lc ${MBX_BSP}
259
 
260
mbx-test.dis:   mbx-test.x
261
        ${OBJDUMP} -d mbx-test.x > mbx-test.dis
262
 
263
mbx-test.srec:  mbx-test.x
264
        ${OBJCOPY} -O srec mbx-test.x mbx-test.srec
265
 
266
#
267
#
268
#
269
 
270
crt0.o: crt0.S
271
 
272
simulator.o: simulator.S
273
sim-getrusage.o: sim-getrusage.S
274
sim-crt0.o: sim-crt0.S
275
mount.o: mount.S
276
 
277
mvme-exit.o: mvme-exit.S
278
mvme-inbyte.o: mvme-inbyte.S
279
mvme-outbyte.o: mvme-outbyte.S
280
 
281
ads-exit.o: ads-exit.S
282
ads-io.o: ads-io.c
283
 
284
mbx-exit.o: mbx-exit.c
285
mbx-inbyte.o: mbx-inbyte.c
286
mbx-outbyte.o: mbx-outbyte.c
287
mbx-print.o: mbx-print.c
288
 
289
sol-cfuncs.o: sol-cfuncs.c
290
sol-syscall.o: sol-syscall.S
291
 
292
close.o: $(srcdir)/../close.c
293
fstat.o: $(srcdir)/../fstat.c
294
getpid.o: $(srcdir)/../getpid.c
295
isatty.o: $(srcdir)/../isatty.c
296
kill.o: $(srcdir)/../kill.c
297
lseek.o: $(srcdir)/../lseek.c
298
open.o: $(srcdir)/../open.c
299
putnum.o: $(srcdir)/../putnum.c
300
sbrk.o: $(srcdir)/../sbrk.c
301
stat.o: $(srcdir)/../stat.c
302
unlink.o: $(srcdir)/../unlink.c
303
 
304
# Don't optimize when compiling the test program, makes confusion in
305
# the debugger.
306
 
307
test.o: $(srcdir)/test.c
308
        $(CC) -g $(CFLAGS_MRELOCATABLE) $(INCLUDES) -c $(CFLAGS) $<
309
 
310
clean mostlyclean:
311
        rm -f a.out core *.i *.o *-test *.srec *.dis *.x
312
 
313
distclean maintainer-clean realclean: clean
314
        rm -f Makefile config.status *~
315
 
316
.PHONY: install info install-info clean-info
317
install: ${SIM_INSTALL} ${MVME_INSTALL} ${SOLARIS_INSTALL} ${LINUX_INSTALL} ${YELLOWKNIFE_INSTALL} ${ADS_INSTALL} ${MBX_INSTALL}
318
 
319
install-sim:
320
        set -e; for x in ${SIM_CRT0} ${SIM_BSP} ${SIM_SCRIPTS}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done
321
 
322
install-mvme:
323
        set -e; for x in ${MVME_CRT0} ${MVME_BSP} ${MVME_SCRIPTS}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done
324
 
325
install-solaris:
326
        set -e; for x in ${SOLARIS_CRT0} ${SOLARIS_BSP} ${SOLARIS_SCRIPTS}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done
327
 
328
install-linux:
329
        set -e; for x in ${LINUX_CRT0} ${LINUX_BSP} ${LINUX_SCRIPTS}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done
330
 
331
install-yellowknife:
332
        set -e; for x in ${YELLOWKNIFE_CRT0} ${YELLOWKNIFE_BSP}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done
333
        set -e; for x in ${YELLOWKNIFE_SCRIPTS}; do ${INSTALL_DATA} $(srcdir)/$$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done
334
 
335
install-ads:
336
        set -e; for x in ${ADS_CRT0} ${ADS_BSP}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done
337
        set -e; for x in ${ADS_SCRIPTS}; do ${INSTALL_DATA} $(srcdir)/$$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done
338
 
339
install-mbx:
340
        set -e; for x in ${MBX_CRT0} ${MBX_BSP}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done
341
        set -e; for x in ${MBX_SCRIPTS} ${MBX_SPECS}; do ${INSTALL_DATA} $(srcdir)/$$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done
342
 
343
doc:
344
info:
345
install-info:
346
clean-info:
347
 
348
Makefile: Makefile.in config.status @host_makefile_frag_path@
349
        $(SHELL) config.status
350
 
351
config.status: configure
352
        $(SHELL) config.status --recheck

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.