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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.18.0/] [libgloss/] [moxie/] [Makefile.in] - Blame information for rev 300

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

Line No. Rev Author Line
1 207 jeremybenn
# Copyright (c) 2008 Anthony Green
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
# Makefile for libgloss/spro. This is the board support code for the
14
# moxie target.
15
 
16
DESTDIR =
17
VPATH = @srcdir@ @srcdir@/..
18
srcdir = @srcdir@
19
objdir = .
20
srcroot = $(srcdir)/../..
21
objroot = $(objdir)/../..
22
 
23
prefix = @prefix@
24
exec_prefix = @exec_prefix@
25
 
26
host_alias = @host_alias@
27
target_alias = @target_alias@
28
 
29
bindir = @bindir@
30
libdir = @libdir@
31
tooldir = $(exec_prefix)/$(target_alias)
32
 
33
# Multilib support variables.
34
# TOP is used instead of MULTI{BUILD,SRC}TOP.
35
MULTIDIRS =
36
MULTISUBDIR =
37
MULTIDO = true
38
MULTICLEAN = true
39
 
40
INSTALL = @INSTALL@
41
INSTALL_PROGRAM = @INSTALL_PROGRAM@
42
INSTALL_DATA = @INSTALL_DATA@
43
 
44
SHELL = /bin/sh
45
 
46
CC = @CC@
47
 
48
AS = @AS@
49
AR = @AR@
50
LD = @LD@
51
RANLIB = @RANLIB@
52
AR_FLAGS = rc
53
 
54
OBJDUMP = `if [ -f ${objroot}/../binutils/objdump ] ; \
55
        then echo ${objroot}/../binutils/objdump ; \
56
        else t='$(program_transform_name)'; echo objdump | sed -e $$t ; fi`
57
OBJCOPY = `if [ -f ${objroot}/../binutils/objcopy ] ; \
58
        then echo ${objroot}/../binutils/objcopy ; \
59
        else t='$(program_transform_name)'; echo objcopy | sed -e $$t ; fi`
60
 
61
LD_SCRIPTS = moxie-elf-common.ld qemu.ld sim.ld
62
 
63
CRT0 = crt0.o
64
SIM_BSP = libsim.a
65
SIM_OBJS = fstat.o \
66
           getpid.o \
67
           isatty.o \
68
           kill.o \
69
           putnum.o \
70
           sbrk.o \
71
           sim-close.o \
72
           sim-exit.o \
73
           sim-inbyte.o \
74
           sim-lseek.o \
75
           sim-open.o \
76
           sim-read.o \
77
           sim-time.o \
78
           sim-unlink.o \
79
           sim-write.o \
80
           stat.o
81
 
82
QEMU_BSP = libqemu.a
83
QEMU_OBJS = qemu-write.o \
84
            qemu-time.o \
85
            sim-exit.o \
86
            sbrk.o \
87
            sim-close.o \
88
            fstat.o \
89
            isatty.o \
90
            sim-lseek.o \
91
            sim-read.o
92
 
93
#### Host specific Makefile fragment comes in here.
94
@host_makefile_frag@
95
 
96
all: $(CRT0) $(SIM_BSP) $(QEMU_BSP)
97
 
98
$(SIM_BSP): $(SIM_OBJS)
99
        $(AR) $(ARFLAGS) $@ $?
100
        $(RANLIB) $@
101
 
102
$(QEMU_BSP): $(QEMU_OBJS)
103
        $(AR) $(ARFLAGS) $@ $?
104
        $(RANLIB) $@
105
 
106
fstat.o: $(srcdir)/fstat.c
107
getpid.o: $(srcdir)/getpid.c
108
isatty.o: $(srcdir)/isatty.c
109
kill.o: $(srcdir)/kill.c
110
putnum.o: $(srcdir)/putnum.c
111
sbrk.o: $(srcdir)/sbrk.c
112
sim-close.o: $(srcdir)/sim-close.S
113
sim-exit.o: $(srcdir)/sim-exit.S
114
sim-inbyte.o: $(srcdir)/sim-inbyte.c
115
sim-lseek.o: $(srcdir)/sim-lseek.c
116
sim-open.o: $(srcdir)/sim-open.S
117
sim-read.o: $(srcdir)/sim-read.S
118
sim-time.o: $(srcdir)/sim-time.c
119
sim-unlink.o: $(srcdir)/sim-unlink.S
120
sim-write.o: $(srcdir)/sim-write.S
121
stat.o: $(srcdir)/stat.c
122
qemu-write.o: $(srcdir)/qemu-write.c
123
 
124
install: $($(CPU)_INSTALL)
125
        $(INSTALL_DATA) $(CRT0) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(CRT0)
126
        $(INSTALL_DATA) $(SIM_BSP) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(SIM_BSP)
127
        $(INSTALL_DATA) $(QEMU_BSP) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(QEMU_BSP)
128
        for x in ${LD_SCRIPTS}; do \
129
          ${INSTALL_DATA} ${srcdir}/$$x $(DESTDIR)${tooldir}/lib/$$x; \
130
        done;
131
 
132
clean mostlyclean:
133
        rm -f *.o *.a
134
 
135
distclean maintainer-clean realclean: clean
136
        rm -f Makefile config.cache config.log config.status
137
 
138
.PHONY: info dvi doc install-info clean-info
139
info doc dvi:
140
install-info:
141
clean-info:
142
 
143
Makefile: Makefile.in config.status @host_makefile_frag_path@
144
        $(SHELL) config.status
145
 
146
config.status: configure
147
        $(SHELL) config.status --recheck

powered by: WebSVN 2.1.0

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