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.18.0/] [libgloss/] [or32/] [Makefile.in] - Blame information for rev 507

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
BOARDS   = or1ksim or1ksim-uart orpsocrefdesign ordb1a3pe1500 ml501
77
 
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
LIBOR32_OBJS = _exception_handler.o     \
92
        _cache.o                \
93
        _exit.o                 \
94
        _interrupt_handler.o    \
95
        close.o                 \
96
        environ.o               \
97
        execve.o                \
98
        fork.o                  \
99
        fstat.o                 \
100
        getpid.o                \
101
        isatty.o                \
102
        kill.o                  \
103
        link.o                  \
104
        lseek.o                 \
105
        open.o                  \
106
        read.o                  \
107
        sbrk.o                  \
108
        stat.o                  \
109
        times.o                 \
110
        uart.o                  \
111
        unlink.o                \
112
        wait.o                  \
113
        write.o
114 207 jeremybenn
 
115
# Host specific makefile fragment specifies the automatic rules
116
@host_makefile_frag@
117
 
118 507 julius
# Build what we need out
119
all: $(OUTPUTS) $(BOARD_LIBS)
120 207 jeremybenn
 
121
# Rules to build the BSPs from their objects. No need for a rule to build
122
# crt0.o, that happens autmatically from .S
123 507 julius
$(LIBOR32): $(LIBOR32_OBJS)
124
        ${AR} ${ARFLAGS} $@ $^
125 207 jeremybenn
        ${RANLIB} $@
126
 
127 507 julius
%.a: %.o
128
        ${AR} ${ARFLAGS} $@ $^
129 207 jeremybenn
        ${RANLIB} $@
130
 
131
# Standard clean up rules.
132
clean mostlyclean:
133
        rm -f $(OUTPUTS) *.i *~ *.o *-test *.srec *.dis *.map *.x
134
 
135
distclean maintainer-clean realclean: clean
136
        rm -f Makefile config.status *~
137
 
138 507 julius
# Standard install rules for libor32 and crt0
139
# Boards installed into lib/board/$${board} and named board.a. GCC links against with
140
# board specified by -mboard=whichboard and adds
141
#   -lboard -L/lib/board/whichboard
142
#
143 207 jeremybenn
.PHONY: install info install-info clean-info
144
install:
145
        @for outputs in ${OUTPUTS}; do\
146
             mkdir -p $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}; \
147
             $(INSTALL_PROGRAM) $${outputs} \
148
                                $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}; \
149 507 julius
        done; \
150
        for board in ${BOARDS}; do\
151
             mkdir -p $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/boards/$${board}; \
152
             $(INSTALL_PROGRAM) $${board}.a \
153
                        $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/boards/$${board}/$(LIBBOARD); \
154 207 jeremybenn
        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.