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

Subversion Repositories openrisc

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

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

powered by: WebSVN 2.1.0

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