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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [newlib-1.18.0/] [libgloss/] [rx/] [Makefile.in] - Blame information for rev 862

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

Line No. Rev Author Line
1 207 jeremybenn
# Copyright (c) 2008, 2009 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/rx.
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
SCRIPTS = $(srcdir)/rx.ld $(srcdir)/rx-sim.ld
60
CRT = gcrt0.o crt0.o crtn.o
61
SIM_BSP = libsim.a
62
LIBNOSYS = ../libnosys/libnosys.a
63
SIM_OBJS = \
64
        sbrk.o \
65
        heaptop.o \
66
        exit.o \
67
        open.o \
68
        close.o \
69
        read.o \
70
        write.o \
71
        lseek.o \
72
        unlink.o \
73
        getpid.o \
74
        kill.o \
75
        fstat.o \
76
        argvlen.o \
77
        argv.o \
78
        chdir.o \
79
        stat.o \
80
        chmod.o \
81
        utime.o \
82
        time.o \
83
        gettimeofday.o \
84
        times.o \
85
        link.o \
86
        isatty.o \
87
        abort.o \
88
        mcount.o \
89
        sigprocmask.o \
90
        sleep.o
91
 
92
#### Host specific Makefile fragment comes in here.
93
@host_makefile_frag@
94
 
95
 
96
# Override .S.o rule to pass assembler debugging flags
97
.S.o:
98
        $(CC) -Wa,-gdwarf2 -Wa,-I$(srcdir) $(CFLAGS_FOR_TARGET) $(INCLUDES) $(CFLAGS) -c $<
99
 
100
all: $(CRT) $(SIM_BSP) copy_scripts_to_objdir
101
 
102
$(SIM_BSP): $(SIM_OBJS)
103
        $(AR) $(ARFLAGS) $@ $?
104
        $(RANLIB) $@
105
 
106
copy_scripts_to_objdir: $(SCRIPTS)
107
        cp $(SCRIPTS) $(objdir)
108
 
109
# Dependencies
110
 
111
SDEPS = $(srcdir)/rxsys.h $(srcdir)/../syscall.h
112
 
113
abort.o : $(SDEPS)
114
argv.o : $(SDEPS)
115
argvlen.o : $(SDEPS)
116
chdir.o : $(SDEPS)
117
chmod.o : $(SDEPS)
118
close.o : $(SDEPS)
119
exit.o : $(SDEPS)
120
fstat.o : $(SDEPS)
121
getpid.o : $(SDEPS)
122
gettimeofday.o : $(SDEPS)
123
gcrt0.o: gcrt0.S crt0.S
124
heaptop.o : $(SDEPS)
125
kill.o : $(SDEPS)
126
link.o : $(SDEPS)
127
lseek.o : $(SDEPS)
128
mcount.o : $(SDEPS)
129
open.o : $(SDEPS)
130
read.o : $(SDEPS)
131
sigprocmask.o : $(SDEPS)
132
sleep.o : $(SDEPS)
133
stat.o : $(SDEPS)
134
time.o : $(SDEPS)
135
times.o : $(SDEPS)
136
unlink.o : $(SDEPS)
137
utime.o : $(SDEPS)
138
write.o : $(SDEPS)
139
 
140
install: $(CRT) $(SIM_BSP) $(SCRIPTS)
141
        for c in $(CRT) $(SIM_BSP); do \
142
          $(INSTALL_DATA) $$c $(tooldir)/lib${MULTISUBDIR}/$$c ;\
143
        done
144
        for c in $(SCRIPTS); do \
145
          b=`basename $$c`; \
146
          $(INSTALL_DATA) $$c $(tooldir)/lib${MULTISUBDIR}/$$b ;\
147
        done
148
 
149
clean mostlyclean:
150
        rm -f *.o *.a
151
 
152
distclean maintainer-clean realclean: clean
153
        rm -f Makefile config.cache config.log config.status
154
 
155
.PHONY: info dvi doc install-info clean-info
156
info doc dvi:
157
install-info:
158
clean-info:
159
 
160
Makefile: Makefile.in config.status @host_makefile_frag_path@
161
        $(SHELL) config.status
162
 
163
config.status: configure
164
        $(SHELL) config.status --recheck

powered by: WebSVN 2.1.0

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