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 517

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