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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.18.0/] [libgloss/] [sparc/] [libsys/] [Makefile.in] - Blame information for rev 326

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

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