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

Subversion Repositories or1k

[/] [or1k/] [branches/] [newlib/] [newlib/] [newlib/] [libc/] [sys/] [sparc64/] [Makefile.in] - Blame information for rev 39

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

Line No. Rev Author Line
1 39 lampret
# Makefile for newlib/libc/sys/sparc64.
2
# Copyright (c) 1994 Cygnus Support.
3
# All rights reserved.
4
#
5
# Redistribution and use in source and binary forms are permitted
6
# provided that the above copyright notice and this paragraph are
7
# duplicated in all such forms and that any documentation,
8
# advertising materials, and other materials related to such
9
# distribution and use acknowledge that the software was developed
10
# at Cygnus Support, Inc.  Cygnus Support, Inc. may not be used to
11
# endorse or promote products derived from this software without
12
# specific prior written permission.
13
# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
14
# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
15
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
16
 
17
srcdir = .
18
 
19
SHELL = /bin/sh
20
 
21
TOP = ../../..
22
SRCTOP = ../../..
23
TARGETDOC = ../../targetdep.tex
24
 
25
# _r.o is for the reentrant syscall stubs.
26
# The .S_r.o/.c_r.o rules are from host/any.
27
 
28
.SUFFIXES: .c .S .o _r.o
29
 
30
.S_r.o:
31
        $(CC) $(CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) $(NEWLIB_CFLAGS) -DREENT $(INCLUDES) -c $< -o $@
32
.c_r.o:
33
        $(CC) $(CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) $(NEWLIB_CFLAGS) -DREENT $(INCLUDES) -c $< -o $@
34
 
35
# We no longer copy files out of /lib/libc.a.  This is kept around until
36
# most of them have replacements.
37
#
38
#COPYOFILES = \
39
#       Ovfork.o _sigvec.o abort.o access.o chown.o creat.o \
40
#       errlst.o getdents.o getdtablesize.o getpid.o \
41
#       getrusage.o gettimeofday.o ieee_globals.o ioctl.o isatty.o \
42
#       kill.o popen.o sbrk.o sigblock.o sigpause.o sigsetmask.o \
43
#       sigtramp.o sigvec.o sleep.o setitimer.o start_float.o \
44
#       time.o times.o utime.o utimes.o wait3.o
45
 
46
# These files are from Sun's libc.a but must be renamed because they
47
# conflict with other library .o's. They are renamed to xxxS.o.
48
# div.o is used by times.o. errno.o conflicts with libc/errno/errno.o.
49
#COPYRENAMEOFILES = divS.o errnoS.o
50
 
51
#COPYOMFILES = ieee_flags.o
52
 
53
# CFILES_R, SFILES_R, and TEMPLATE_SFILES_R define those system calls that are
54
# needed by the ANSI C part of newlib (and thus we must provide namespace
55
# clean versions of them because we define REENTRANT_SYSCALLS_PROVIDED).
56
 
57
CFILES = _main.c ieee.c \
58
        closedir.c opendir.c readdir.c rewinddir.c scandir.c seekdir.c telldir.c \
59
        creat.c isatty.c utime2.c
60
 
61
CFILES_R =
62
 
63
SFILES = cerror.S crt0.S dup2.S execve.S _exit.S sigsetjmp.S utime.S
64
 
65
SFILES_R = sbrk.S wait.S
66
 
67
# List of files built from template.S (with an '_' suffix).
68
 
69
TEMPLATE_SFILES = access_ chdir_ chmod_ chown_ dup_ fcntl_ \
70
        lstat_ mkdir_ pipe_ rmdir_ times_ umask_ utimes_
71
 
72
TEMPLATE_SFILES_R = close_ fork_ fstat_ getpid_ gettimeofday_ kill_ \
73
        link_ lseek_ open_ read_ stat_ times_ unlink_ wait4_ write_
74
 
75
OFILES = $(COPYOFILES) $(COPYRENAMEOFILES) $(COPYOMFILES) \
76
        $(SFILES:.S=.o) $(SFILES_R:.S=.o) $(SFILES_R:.S=_r.o) \
77
        $(TEMPLATE_SFILES:_=.o) $(TEMPLATE_SFILES_R:_=.o) $(TEMPLATE_SFILES_R:_=_r.o) \
78
        $(CFILES:.c=.o) $(CFILES_R:.c=.o) $(CFILES_R:.c=_r.o)
79
 
80
#### Host, target, and site specific Makefile fragments come in here.
81
###
82
 
83
all: lib.a crt0.o
84
 
85
lib.a: $(OFILES)
86
        rm -f $@
87
        $(AR) $(AR_FLAGS) $@ $(OFILES)
88
 
89
$(COPYOFILES):
90
        ar x /lib/libc.a $(COPYOFILES)
91
 
92
$(COPYRENAMEOFILES):
93
        ar x /lib/libc.a $(COPYRENAMEOFILES:S.o=.o)
94
        for f in $(COPYRENAMEOFILES); do mv `basename $$f S.o`.o $$f; done
95
 
96
$(COPYOMFILES):
97
        ar x /lib/libm.a $(COPYOMFILES)
98
 
99
clean mostlyclean:
100
        rm -f *.o lib.a stamp-srcs
101
 
102
distclean maintainer-clean realclean: clean
103
        rm -f Makefile config.status
104
 
105
doc:
106
 
107
Makefile: Makefile.in $(host_makefile_frag) $(target_makefile_frag)
108
        $(SHELL) config.status
109
 
110
stamp-srcs: Makefile template.S template_r.S
111
        for f in $(TEMPLATE_SFILES:_=) ; \
112
        do \
113
                $(CC) -E -Dfunc=$$f \
114
                $(CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) $(NEWLIB_CFLAGS) $(INCLUDES) \
115
                $(srcdir)/template.S >$$f.S ; \
116
        done
117
        for f in $(TEMPLATE_SFILES_R:_=) ; \
118
        do \
119
                $(CC) -E -Dfunc=$$f \
120
                $(CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) $(NEWLIB_CFLAGS) $(INCLUDES) \
121
                $(srcdir)/template_r.S | sed -e 's/^_/#/' >$$f.S ; \
122
        done
123
        touch stamp-srcs
124
 
125
# Make a dependency for each file built from a template.
126
 
127
$(TEMPLATE_SFILES:_=.S) $(TEMPLATE_SFILES_R:_=.S): stamp-srcs
128
 
129
# To support SunOS broken VPATH (sigh).
130
 
131
_exit.o: _exit.S
132
_main.o: _main.c
133
access.o: access.S
134
cerror.o: cerror.S
135
chdir.o: chdir.S
136
chmod.o: chmod.S
137
chown.o: chown.S
138
close.o: close.S
139
closedir.o: closedir.c
140
creat.o: creat.c
141
crt0.o: crt0.S
142
dup.o: dup.S
143
dup2.o: dup2.S
144
execl.o: execl.c
145
execle.o: execle.c
146
execlp.o: execlp.c
147
execv.o: execv.c
148
execve.o: execve.S
149
execvp.o: execvp.c
150
fcntl.o: fcntl.S
151
fork.o: fork.S
152
fstat.o: fstat.S
153
getpid.o: getpid.S
154
gettimeofday.o: gettimeofday.S
155
ieee.o: ieee.c
156
isatty.o: isatty.c
157
kill.o: kill.S
158
lseek.o: lseek.S
159
lstat.o: lstat.S
160
mkdir.o: mkdir.S
161
open.o: open.S
162
opendir.o: opendir.c
163
pipe.o: pipe.S
164
read.o: read.S
165
readdir.o: readdir.c
166
rewinddir.o: rewinddir.c
167
rmdir.o: rmdir.S
168
sbrk.o: sbrk.S
169
scandir.o: scandir.c
170
seekdir.o: seekdir.c
171
sigsetjmp.o: sigsetjmp.S
172
stat.o: stat.S
173
telldir.o: telldir.c
174
times.o: times.S
175
umask.o: umask.S
176
utime.o: utime.S
177
utime2.o: utime2.c
178
utimes.o: utimes.S
179
wait.o: wait.S
180
wait4.o: wait4.S
181
write.o: write.S
182
 
183
# Reentrant versions ...
184
# These are all needed to support the ANSI C library routines.
185
 
186
close_r.o: close.S
187
fork_r.o: fork.S
188
fstat_r.o: fstat.S
189
getpid_r.o: getpid.S
190
gettimeofday_r.o: gettimeofday.S
191
kill_r.o: kill.S
192
link_r.o: link.S
193
lseek_r.o: lseek.S
194
open_r.o: open.S
195
read_r.o: read.S
196
sbrk_r.o: sbrk.S
197
stat_r.o: stat.S
198
times_r.o: times.S
199
unlink_r.o: unlink.S
200
wait_r.o: wait.S
201
wait4_r.o: wait4.S
202
write_r.o: write.S

powered by: WebSVN 2.1.0

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