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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [newlib/] [newlib/] [libc/] [sys/] [sparc64/] [Makefile.am] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 56 joel
## Process this file with automake to generate Makefile.in
2
 
3
AUTOMAKE_OPTIONS = cygnus
4
 
5
INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
6
 
7
noinst_LIBRARIES = lib.a
8
 
9
# _r.o is for the reentrant syscall stubs.
10
 
11
SUFFIXES = _r.o
12
 
13
.S_r.o:
14
        $(COMPILE) -DREENT -c $< -o $@
15
 
16
.c_r.o:
17
        $(COMPILE) -DREENT -c $< -o $@
18
 
19
# We no longer copy files out of /lib/libc.a.  This is kept around until
20
# most of them have replacements.
21
#
22
#COPYOFILES = \
23
#       Ovfork.o _sigvec.o abort.o access.o chown.o creat.o \
24
#       errlst.o getdents.o getdtablesize.o getpid.o \
25
#       getrusage.o gettimeofday.o ieee_globals.o ioctl.o isatty.o \
26
#       kill.o popen.o sbrk.o sigblock.o sigpause.o sigsetmask.o \
27
#       sigtramp.o sigvec.o sleep.o setitimer.o start_float.o \
28
#       time.o times.o utime.o utimes.o wait3.o
29
COPYOFILES =
30
 
31
# These files are from Sun's libc.a but must be renamed because they
32
# conflict with other library .o's. They are renamed to xxxS.o.
33
# div.o is used by times.o. errno.o conflicts with libc/errno/errno.o.
34
#COPYRENAMEOFILES = divS.o errnoS.o
35
COPYRENAMEOFILES =
36
 
37
#COPYOMFILES = ieee_flags.o
38
COPYOMFILES =
39
 
40
# CFILES_R, SFILES_R, and TEMPLATE_SFILES_R define those system calls that are
41
# needed by the ANSI C part of newlib (and thus we must provide namespace
42
# clean versions of them because we define REENTRANT_SYSCALLS_PROVIDED).
43
 
44
CFILES = _main.c ieee.c \
45
        closedir.c opendir.c readdir.c rewinddir.c scandir.c seekdir.c \
46
        telldir.c \
47
        creat.c isatty.c utime2.c
48
 
49
CFILES_R =
50
 
51
SFILES = cerror.S crt0.S dup2.S execve.S _exit.S sigsetjmp.S utime.S
52
 
53
SFILES_R = sbrk.S wait.S
54
 
55
# List of files built from template.S (with an '_' suffix).
56
 
57
TEMPLATE_SFILES = access_ chdir_ chmod_ chown_ dup_ fcntl_ \
58
        lstat_ mkdir_ pipe_ rmdir_ times_ umask_ utimes_
59
 
60
TEMPLATE_SFILES_R = close_ fork_ fstat_ getpid_ gettimeofday_ kill_ \
61
        link_ lseek_ open_ read_ stat_ times_ unlink_ wait4_ write_
62
 
63
OFILES = $(COPYOFILES) $(COPYRENAMEOFILES) $(COPYOMFILES) \
64
        $(SFILES:.S=.o) $(SFILES_R:.S=.o) $(SFILES_R:.S=_r.o) \
65
        $(TEMPLATE_SFILES:_=.o) $(TEMPLATE_SFILES_R:_=.o) $(TEMPLATE_SFILES_R:_=_r.o) \
66
        $(CFILES:.c=.o) $(CFILES_R:.c=.o) $(CFILES_R:.c=_r.o)
67
 
68
lib_a_SOURCES = $(SFILES) $(SFILES_R) $(CFILES) $(CFILES_R)
69
lib_a_LIBADD = $(COPYOFILES) $(COPYRENAMEOFILES) $(COPYOMFILES) \
70
        $(SFILES_R:.S=_r.o) \
71
        $(TEMPLATE_SFILES:_=.o) $(TEMPLATE_SFILES_R:_=.o) \
72
        $(TEMPLATE_SFILES_R:_=_r.o) \
73
        $(CFILES_R:.c=_r.o)
74
 
75
$(COPYOFILES):
76
        $(AR) x /lib/libc.a $(COPYOFILES)
77
 
78
$(COPYRENAMEOFILES):
79
        $(AR) x /lib/libc.a $(COPYRENAMEOFILES:S.o=.o)
80
        for f in $(COPYRENAMEOFILES); do mv `basename $$f S.o`.o $$f; done
81
 
82
$(COPYOMFILES):
83
        $(AR) x /lib/libm.a $(COPYOMFILES)
84
 
85
stamp-srcs: Makefile template.S template_r.S
86
        for f in $(TEMPLATE_SFILES:_=); do \
87
          $(COMPILE) -E -Dfunc=$$f $(srcdir)/template.S >$$f.S; \
88
        done
89
        for f in $(TEMPLATE_SFILES_R:_=); do \
90
          $(COMPILE) -E -Dfunc=$$f $(srcdir)/template_r.S | sed -e 's/^_/#/' >$$f.S; \
91
        done
92
        touch stamp-srcs
93
 
94
# Make a dependency for each file built from a template.
95
 
96
$(TEMPLATE_SFILES:_=.S) $(TEMPLATE_SFILES_R:_=.S): stamp-srcs
97
 
98
all: crt0.o
99
 
100
close_r.o: close.S
101
fork_r.o: fork.S
102
fstat_r.o: fstat.S
103
getpid_r.o: getpid.S
104
gettimeofday_r.o: gettimeofday.S
105
kill_r.o: kill.S
106
link_r.o: link.S
107
lseek_r.o: lseek.S
108
open_r.o: open.S
109
read_r.o: read.S
110
sbrk_r.o: sbrk.S
111
stat_r.o: stat.S
112
times_r.o: times.S
113
unlink_r.o: unlink.S
114
wait_r.o: wait.S
115
wait4_r.o: wait4.S
116
write_r.o: write.S
117
 
118
ACLOCAL_AMFLAGS = -I ../../..
119
CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host

powered by: WebSVN 2.1.0

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