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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.17.0/] [libgloss/] [m32c/] [Makefile.in] - Blame information for rev 461

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

Line No. Rev Author Line
1 148 jeremybenn
# Copyright (c) 2005,2008 Red Hat Inc
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/m32c.
14
 
15
VPATH = @srcdir@
16
srcdir = @srcdir@
17
objdir = .
18
srcroot = $(srcdir)/../..
19
objroot = $(objdir)/../..
20
 
21
prefix = @prefix@
22
exec_prefix = @exec_prefix@
23
 
24
host_alias = @host_alias@
25
target_alias = @target_alias@
26
 
27
bindir = @bindir@
28
libdir = @libdir@
29
tooldir = $(exec_prefix)/$(target_alias)
30
 
31
# Multilib support variables.
32
# TOP is used instead of MULTI{BUILD,SRC}TOP.
33
MULTIDIRS =
34
MULTISUBDIR =
35
MULTIDO = true
36
MULTICLEAN = true
37
 
38
INSTALL = @INSTALL@
39
INSTALL_PROGRAM = @INSTALL_PROGRAM@
40
INSTALL_DATA = @INSTALL_DATA@
41
 
42
SHELL = /bin/sh
43
 
44
CC = @CC@
45
 
46
AS = @AS@
47
AR = @AR@
48
LD = @LD@
49
RANLIB = @RANLIB@
50
AR_FLAGS = rc
51
 
52
OBJDUMP = `if [ -f ${objroot}/../binutils/objdump ] ; \
53
        then echo ${objroot}/../binutils/objdump ; \
54
        else t='$(program_transform_name)'; echo objdump | sed -e $$t ; fi`
55
OBJCOPY = `if [ -f ${objroot}/../binutils/objcopy ] ; \
56
        then echo ${objroot}/../binutils/objcopy ; \
57
        else t='$(program_transform_name)'; echo objcopy | sed -e $$t ; fi`
58
 
59
HEADERS = varvects.h
60
SCRIPTS = r8c.ld m16c.ld m32cm.ld m32c.ld m16cmon.ld m32cmon.ld sim8.ld sim16.ld sim24.ld
61
CRT = crt0.o crtn.o
62
SIM_BSP = libsim.a
63
M32C_BSP = libm32cgloss.a
64
LIBNOSYS = ../libnosys/libnosys.a
65
SIM_OBJS = \
66
        sbrk.o \
67
        heaptop.o \
68
        exit.o \
69
        open.o \
70
        close.o \
71
        read.o \
72
        write.o \
73
        lseek.o \
74
        unlink.o \
75
        getpid.o \
76
        kill.o \
77
        fstat.o \
78
        argvlen.o \
79
        argv.o \
80
        chdir.o \
81
        stat.o \
82
        chmod.o \
83
        utime.o \
84
        time.o \
85
        gettimeofday.o \
86
        times.o \
87
        link.o \
88
        isatty.o \
89
        abort.o
90
M32C_OBJS = \
91
        varvects.o
92
 
93
#### Host specific Makefile fragment comes in here.
94
@host_makefile_frag@
95
 
96
 
97
# Override .S.o rule to pass assembler debugging flags
98
.S.o:
99
        $(CC) -Wa,-gdwarf2 -Wa,-I$(srcdir) $(CFLAGS_FOR_TARGET) $(INCLUDES) $(CFLAGS) -c $<
100
 
101
all: $(CRT) $(SIM_BSP) $(M32C_BSP) $(SCRIPTS)
102
 
103
$(SIM_BSP): $(SIM_OBJS)
104
        $(AR) $(ARFLAGS) $@ $?
105
        $(RANLIB) $@
106
 
107
$(M32C_BSP): $(M32C_OBJS)
108
        $(AR) $(ARFLAGS) $@ $?
109
        $(RANLIB) $@
110
 
111
# genscript parameters: srcdir name ramstart ramsize romstart romsize vecprefix
112
 
113
GDEP = $(srcdir)/m32c.tmpl $(srcdir)/genscript Makefile
114
GS = $(SHELL) $(srcdir)/genscript $(srcdir)
115
 
116
# NOTE: The simulators and monitors reserve the following locations
117
# for themselves, so we skip them:
118
#   R8C/M16C:   0x400-0x4ff     0x0ff600-0x0ffcff
119
#   M32C:       0x400-0x4ff     0xfff600-0xfffcff
120
 
121
r8c.ld : $(GDEP)
122
        $(GS) r8c   0x500  0x300   0xc000   0x3f24   0xff
123
 
124
m16c.ld : $(GDEP)
125
        $(GS) m16c  0x500 0x4f00  0xc0000  0x3f600  0xfff
126
 
127
m32cm.ld : $(GDEP)
128
        $(GS) m32cm 0x500 0x2700 0xfe0000 0x01f600 0xffff
129
 
130
m32c.ld : $(GDEP)
131
        $(GS) m32c  0x500 0x7b00 0xf80000 0x07f600 0xffff
132
 
133
 
134
m16cmon.ld : $(GDEP)
135
        $(GS) m16cmon  0x400  0x100  0xff600    0x800  0xfff
136
 
137
m32cmon.ld : $(GDEP)
138
        $(GS) m32cmon  0x400  0x100 0xfff600    0x800 0xffff
139
 
140
 
141
sim8.ld : $(GDEP)
142
        $(GS) sim8  0x500 0xf624        0        0   0xff
143
 
144
sim16.ld : $(GDEP)
145
        $(GS) sim16 0x500 0xf700  0x20000  0x80000  0xfff
146
 
147
sim24.ld : $(GDEP)
148
        $(GS) sim24 0x200000 0x800000   0        0 0xffff
149
 
150
# Dependencies
151
 
152
SDEPS = $(srcdir)/m32csys.h $(srcdir)/../syscall.h
153
 
154
abort.o : $(SDEPS)
155
argv.o : $(SDEPS)
156
argvlen.o : $(SDEPS)
157
chdir.o : $(SDEPS)
158
chmod.o : $(SDEPS)
159
close.o : $(SDEPS)
160
exit.o : $(SDEPS)
161
fstat.o : $(SDEPS)
162
getpid.o : $(SDEPS)
163
gettimeofday.o : $(SDEPS)
164
heaptop.o : $(SDEPS)
165
kill.o : $(SDEPS)
166
link.o : $(SDEPS)
167
lseek.o : $(SDEPS)
168
open.o : $(SDEPS)
169
read.o : $(SDEPS)
170
stat.o : $(SDEPS)
171
time.o : $(SDEPS)
172
times.o : $(SDEPS)
173
unlink.o : $(SDEPS)
174
utime.o : $(SDEPS)
175
write.o : $(SDEPS)
176
 
177
install: $(CRT) $(SIM_BSP) $(M32C_BSP) $(SCRIPTS)
178
        for c in $(CRT) $(SIM_BSP) $(M32C_BSP); do \
179
          $(INSTALL_DATA) $$c $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$$c ;\
180
        done
181
        for c in $(SCRIPTS); do \
182
          $(INSTALL_DATA) $$c $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$$c ;\
183
        done
184
        for c in $(HEADERS); do \
185
          $(INSTALL_DATA) ${srcdir}/$$c \
186
                $(DESTDIR)$(tooldir)/include/$$c ;\
187
        done
188
 
189
clean mostlyclean:
190
        rm -f *.o *.a
191
 
192
distclean maintainer-clean realclean: clean
193
        rm -f Makefile config.cache config.log config.status
194
 
195
.PHONY: info dvi doc install-info clean-info
196
info doc dvi:
197
install-info:
198
clean-info:
199
 
200
Makefile: Makefile.in config.status @host_makefile_frag_path@
201
        $(SHELL) config.status
202
 
203
config.status: configure
204
        $(SHELL) config.status --recheck

powered by: WebSVN 2.1.0

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