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

Subversion Repositories or1k

[/] [or1k/] [tags/] [tn_m001/] [newlib/] [libgloss/] [sparc/] [libsys/] [Makefile.in] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 39 lampret
# Makefile for libgloss/sparc/libsys
2
# Copyright (c) 1996 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
VPATH = @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
INSTALL = @INSTALL@
34
INSTALL_PROGRAM = @INSTALL_PROGRAM@
35
INSTALL_DATA = @INSTALL_DATA@
36
 
37
SHELL = /bin/sh
38
 
39
CC = @CC@
40
 
41
AS = @AS@
42
AR = @AR@
43
LD = @LD@
44
RANLIB = @RANLIB@
45
 
46
# _r.o is for the reentrant syscall stubs.
47
# The .S_r.o/.c_r.o rules are from host/any.
48
 
49
.SUFFIXES: .c .S .o _r.o
50
 
51
.S_r.o:
52
        $(CC) $(CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) $(NEWLIB_CFLAGS) -DREENT $(INCLUDES) -c $< -o $@
53
.c_r.o:
54
        $(CC) $(CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) $(NEWLIB_CFLAGS) -DREENT $(INCLUDES) -c $< -o $@
55
 
56
# CFILES_R, SFILES_R, and TEMPLATE_SFILES_R define those system calls that are
57
# needed by the ANSI C part of newlib when REENTRANT_SYSCALLS_PROVIDED is
58
# defined.
59
 
60
CFILES = isatty.c
61
 
62
CFILES_R =
63
 
64
SFILES = cerror.S _exit.S
65
 
66
SFILES_R = sbrk.S
67
 
68
# List of files built from template.S (with an '_' suffix).
69
 
70
TEMPLATE_SFILES = chdir_ lstat_
71
 
72
TEMPLATE_SFILES_R = close_ fstat_ getpid_ kill_ \
73
        lseek_ open_ read_ stat_ unlink_ write_
74
 
75
# If newlib defines REENTRANT_SYSCALLS_PROVIDED, then these are used as well.
76
REENTRANT_OFILES = $(SFILES_R:.S=_r.o) $(TEMPLATE_SFILES_R:_=_r.o) \
77
        $(CFILES_R:.c=_r.o)
78
 
79
OFILES = $(SFILES:.S=.o) $(SFILES_R:.S=.o) \
80
        $(TEMPLATE_SFILES:_=.o) $(TEMPLATE_SFILES_R:_=.o) \
81
        $(CFILES:.c=.o) $(CFILES_R:.c=.o) \
82
        $(REENTRANT_OFILES)
83
 
84
#### Host specific Makefile fragment comes in here.
85
@host_makefile_frag@
86
 
87
all: libsys.a libsys-crt0.o
88
 
89
libsys.a: $(OFILES)
90
        rm -f $@
91
        $(AR) $(AR_FLAGS) $@ $(OFILES)
92
 
93
install:
94
        $(INSTALL_DATA) libsys-crt0.o $(tooldir)/lib/libsys-crt0.o
95
        $(INSTALL_DATA) libsys.a $(tooldir)/lib/libsys.a
96
 
97
doc:
98
 
99
.PHONY: info install-info clean-info
100
info:
101
install-info:
102
clean-info:
103
 
104
clean mostlyclean:
105
        rm -f *.o *.a *.s stamp-srcs
106
 
107
distclean maintainer-clean realclean: clean
108
        rm -f Makefile config.status
109
 
110
Makefile: Makefile.in config.status @host_makefile_frag_path@
111
        $(SHELL) config.status
112
 
113
config.status: configure
114
        $(SHELL) config.status --recheck
115
 
116
stamp-srcs: Makefile template.S template_r.S
117
        for f in $(TEMPLATE_SFILES:_=) ; \
118
        do \
119
                $(CC) -E -Dfunc=$$f \
120
                $(CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) $(NEWLIB_CFLAGS) $(INCLUDES) \
121
                $(srcdir)/template.S >$$f.S ; \
122
        done
123
        for f in $(TEMPLATE_SFILES_R:_=) ; \
124
        do \
125
                $(CC) -E -Dfunc=$$f \
126
                $(CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) $(NEWLIB_CFLAGS) $(INCLUDES) \
127
                $(srcdir)/template_r.S | sed -e 's/^_/#/' >$$f.S ; \
128
        done
129
        touch stamp-srcs
130
 
131
# Make a dependency for each file built from a template.
132
 
133
$(TEMPLATE_SFILES:_=.S) $(TEMPLATE_SFILES_R:_=.S): stamp-srcs
134
 
135
# To support SunOS broken VPATH (sigh).
136
 
137
_exit.o: _exit.S
138
cerror.o: cerror.S
139
chdir.o: chdir.S
140
close.o: close.S
141
fstat.o: fstat.S
142
getpid.o: getpid.S
143
isatty.o: isatty.c
144
kill.o: kill.S
145
libsys-crt0.o: libsys-crt0.S
146
lseek.o: lseek.S
147
lstat.o: lstat.S
148
open.o: open.S
149
read.o: read.S
150
sbrk.o: sbrk.S
151
stat.o: stat.S
152
write.o: write.S
153
 
154
# Reentrant versions ...
155
# These are all needed to support the ANSI C library routines.
156
 
157
close_r.o: close.S
158
fstat_r.o: fstat.S
159
getpid_r.o: getpid.S
160
kill_r.o: kill.S
161
lseek_r.o: lseek.S
162
open_r.o: open.S
163
read_r.o: read.S
164
sbrk_r.o: sbrk.S
165
stat_r.o: stat.S
166
unlink_r.o: unlink.S
167
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.