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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.18.0/] [libgloss/] [or32/] [Makefile.in] - Blame information for rev 308

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

Line No. Rev Author Line
1 207 jeremybenn
# Makefile.in. Autoconf input makefile.
2
 
3
# Copyright (c) 1998 Cygnus Support
4
# Copyright (C) 2004, Jacob Bower
5
# Copyright (C) 2010, Embecosm Limited 
6
 
7
# Contributor Jeremy Bennett 
8
 
9
# This file is part of Newlib.
10
 
11
# The original work by Jacob Bower is provided as-is without any kind of
12
# warranty. Use it at your own risk!
13
 
14
# All subsequent work is bound by version 3 of the GPL as follows.
15
 
16
# This program is free software; you can redistribute it and/or modify it
17
# under the terms of the GNU General Public License as published by the Free
18
# Software Foundation; either version 3 of the License, or (at your option)
19
# any later version.
20
 
21
# This program is distributed in the hope that it will be useful, but WITHOUT
22
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
23
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
24
# more details.
25
 
26
# You should have received a copy of the GNU General Public License along
27
# with this program.  If not, see .
28
 
29
DESTDIR =
30
VPATH = @srcdir@ @srcdir@/..
31
srcdir = @srcdir@
32
objdir = .
33
srcroot = $(srcdir)/../..
34
objroot = $(objdir)/../..
35
 
36
prefix = @prefix@
37
exec_prefix = @exec_prefix@
38
 
39
host_alias = @host_alias@
40
target_alias = @target_alias@
41
 
42
bindir = @bindir@
43
libdir = @libdir@
44
tooldir = $(exec_prefix)/$(target_alias)
45
 
46
# Multilib support variables.
47
# TOP is used instead of MULTI{BUILD,SRC}TOP.
48
MULTIDIRS =
49
MULTISUBDIR =
50
 
51
INSTALL = @INSTALL@
52
INSTALL_PROGRAM = @INSTALL_PROGRAM@
53
INSTALL_DATA = @INSTALL_DATA@
54
 
55
SHELL = /bin/sh
56
 
57
CC = @CC@
58
AS = @AS@
59
AR = @AR@
60
LD = @LD@
61
RANLIB = @RANLIB@
62
 
63
OBJDUMP = `if [ -f ${objroot}/../binutils/objdump ] ; \
64
        then echo ${objroot}/../binutils/objdump ; \
65
        else t='$(program_transform_name)'; echo objdump | sed -e $$t ; fi`
66
OBJCOPY = `if [ -f ${objroot}/../binutils/objcopy ] ; \
67
        then echo ${objroot}/../binutils/objcopy ; \
68
        else t='$(program_transform_name)'; echo objcopy | sed -e $$t ; fi`
69
 
70
# Add our own flags for C compilation
71
CFLAGS =  -g
72
 
73
# Our own C runtime startup and BSPs
74
CRT0     = crt0.o
75
BSP      = libor32.a
76
BSP_UART = libor32uart.a
77
 
78
OUTPUTS  = $(CRT0) $(BSP) $(BSP_UART)
79
 
80
# The object files for each BSP
81
OBJS = _exit.o      \
82
       close.o      \
83
       environ.o    \
84
       execve.o     \
85
       fork.o       \
86
       fstat.o      \
87
       getpid.o     \
88
       isatty.o     \
89
       kill.o       \
90
       link.o       \
91
       lseek.o      \
92
       open.o       \
93
       read.o       \
94
       sbrk.o       \
95
       stat.o       \
96
       times.o      \
97
       uart-dummy.o \
98
       unlink.o     \
99
       wait.o       \
100
       write.o
101
 
102
UART_OBJS = _exit.o       \
103
            close.o       \
104
            environ.o     \
105
            execve.o      \
106
            fork.o        \
107
            fstat-uart.o  \
108
            getpid.o      \
109
            isatty-uart.o \
110
            kill.o        \
111
            link.o        \
112
            lseek-uart.o  \
113
            open.o        \
114
            read-uart.o   \
115
            sbrk.o        \
116
            stat.o        \
117
            times.o       \
118
            uart.o        \
119
            unlink.o      \
120
            wait.o        \
121
            write-uart.o
122
 
123
# Host specific makefile fragment specifies the automatic rules
124
@host_makefile_frag@
125
 
126
# Build crt0.o and all the BSPs
127
all: ${CRT0} ${BSP} ${BSP_UART}
128
 
129
# Rules to build the BSPs from their objects. No need for a rule to build
130
# crt0.o, that happens autmatically from .S
131
$(BSP): $(OBJS)
132
        ${AR} ${ARFLAGS} $@ $(OBJS)
133
        ${RANLIB} $@
134
 
135
$(BSP_UART): $(UART_OBJS)
136
        ${AR} ${ARFLAGS} $@ $(UART_OBJS)
137
        ${RANLIB} $@
138
 
139
 
140
# Standard clean up rules.
141
clean mostlyclean:
142
        rm -f $(OUTPUTS) *.i *~ *.o *-test *.srec *.dis *.map *.x
143
 
144
distclean maintainer-clean realclean: clean
145
        rm -f Makefile config.status *~
146
 
147
# Standard install rules
148
.PHONY: install info install-info clean-info
149
install:
150
        @for outputs in ${OUTPUTS}; do\
151
             mkdir -p $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}; \
152
             $(INSTALL_PROGRAM) $${outputs} \
153
                                $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}; \
154
        done
155
 
156
# Deal with info if we had any.
157
info:
158
install-info:
159
clean-info:
160
 
161
 
162
# Standard make and configure dependencies.
163
Makefile: Makefile.in config.status @host_makefile_frag_path@
164
        $(SHELL) config.status
165
 
166
config.status: configure
167
        $(SHELL) config.status --recheck

powered by: WebSVN 2.1.0

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