OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

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

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

Line No. Rev Author Line
1 180 jeremybenn
# Makefile.in. Autoconf input makefile.
2 148 jeremybenn
 
3 204 jeremybenn
# Copyright (c) 1998 Cygnus Support
4 180 jeremybenn
# 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 148 jeremybenn
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 204 jeremybenn
INSTALL = @INSTALL@
52
INSTALL_PROGRAM = @INSTALL_PROGRAM@
53
INSTALL_DATA = @INSTALL_DATA@
54
 
55 148 jeremybenn
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 204 jeremybenn
# Add our own flags for C compilation
71
CFLAGS =  -g
72 148 jeremybenn
 
73 204 jeremybenn
# Our own C runtime startup and BSPs
74
CRT0     = crt0.o
75
BSP      = libor32.a
76
BSP_UART = libor32uart.a
77 148 jeremybenn
 
78 204 jeremybenn
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 180 jeremybenn
UART_OBJS = _exit.o       \
103 198 jeremybenn
            close.o       \
104 180 jeremybenn
            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 148 jeremybenn
 
123 204 jeremybenn
# Host specific makefile fragment specifies the automatic rules
124 148 jeremybenn
@host_makefile_frag@
125
 
126 204 jeremybenn
# Build crt0.o and all the BSPs
127
all: ${CRT0} ${BSP} ${BSP_UART}
128 148 jeremybenn
 
129 204 jeremybenn
# 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 148 jeremybenn
        ${RANLIB} $@
134
 
135 204 jeremybenn
$(BSP_UART): $(UART_OBJS)
136 180 jeremybenn
        ${AR} ${ARFLAGS} $@ $(UART_OBJS)
137
        ${RANLIB} $@
138
 
139 148 jeremybenn
 
140 204 jeremybenn
# Standard clean up rules.
141 148 jeremybenn
clean mostlyclean:
142 204 jeremybenn
        rm -f $(OUTPUTS) *.i *~ *.o *-test *.srec *.dis *.map *.x
143 148 jeremybenn
 
144
distclean maintainer-clean realclean: clean
145
        rm -f Makefile config.status *~
146
 
147 204 jeremybenn
# Standard install rules
148 148 jeremybenn
.PHONY: install info install-info clean-info
149
install:
150 204 jeremybenn
        @for outputs in ${OUTPUTS}; do\
151
             mkdir -p $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}; \
152
             $(INSTALL_PROGRAM) $${outputs} \
153
                                $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}; \
154 148 jeremybenn
        done
155
 
156 204 jeremybenn
# Deal with info if we had any.
157 148 jeremybenn
info:
158
install-info:
159
clean-info:
160
 
161
 
162 204 jeremybenn
# Standard make and configure dependencies.
163 148 jeremybenn
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.