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

Subversion Repositories openrisc_me

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

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 180 jeremybenn
# Copyright (C) 2004, Jacob Bower
4
# Copyright (C) 2010, Embecosm Limited 
5
 
6
# Contributor Jeremy Bennett 
7
 
8
# This file is part of Newlib.
9
 
10
# The original work by Jacob Bower is provided as-is without any kind of
11
# warranty. Use it at your own risk!
12
 
13
# All subsequent work is bound by version 3 of the GPL as follows.
14
 
15
# This program is free software; you can redistribute it and/or modify it
16
# under the terms of the GNU General Public License as published by the Free
17
# Software Foundation; either version 3 of the License, or (at your option)
18
# any later version.
19
 
20
# This program is distributed in the hope that it will be useful, but WITHOUT
21
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
22
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
23
# more details.
24
 
25
# You should have received a copy of the GNU General Public License along
26
# with this program.  If not, see .
27
 
28 148 jeremybenn
DESTDIR =
29
VPATH = @srcdir@ @srcdir@/..
30
srcdir = @srcdir@
31
objdir = .
32
srcroot = $(srcdir)/../..
33
objroot = $(objdir)/../..
34
 
35
prefix = @prefix@
36
exec_prefix = @exec_prefix@
37
 
38
host_alias = @host_alias@
39
target_alias = @target_alias@
40
 
41
bindir = @bindir@
42
libdir = @libdir@
43
tooldir = $(exec_prefix)/$(target_alias)
44
 
45
INSTALL = @INSTALL@
46
INSTALL_PROGRAM = @INSTALL_PROGRAM@
47
INSTALL_DATA = @INSTALL_DATA@
48
 
49
# Multilib support variables.
50
# TOP is used instead of MULTI{BUILD,SRC}TOP.
51
MULTIDIRS =
52
MULTISUBDIR =
53
 
54
SHELL = /bin/sh
55
 
56
CC = @CC@
57
 
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
OBJS            = putnum.o unlink.o
71
CFLAGS          = -g
72
 
73 180 jeremybenn
BSP = libor32.a libor32uart.a
74 148 jeremybenn
 
75 180 jeremybenn
CRT0      = crt0.o
76
OR32_OBJS = _exit.o      \
77
            close.o      \
78
            environ.o    \
79
            execve.o     \
80
            fork.o       \
81
            fstat.o      \
82
            getpid.o     \
83
            isatty.o     \
84
            kill.o       \
85
            link.o       \
86
            lseek.o      \
87
            open.o       \
88
            read.o       \
89
            sbrk.o       \
90
            stat.o       \
91
            times.o      \
92
            uart-dummy.o \
93
            unlink.o     \
94
            wait.o       \
95
            write.o
96
UART_OBJS = _exit.o       \
97
            close-uart.o  \
98
            environ.o     \
99
            execve.o      \
100
            fork.o        \
101
            fstat-uart.o  \
102
            getpid.o      \
103
            isatty-uart.o \
104
            kill.o        \
105
            link.o        \
106
            lseek-uart.o  \
107
            open.o        \
108
            read-uart.o   \
109
            sbrk.o        \
110
            stat.o        \
111
            times.o       \
112
            uart.o        \
113
            unlink.o      \
114
            wait.o        \
115
            write-uart.o
116 148 jeremybenn
 
117
# Host specific makefile fragment comes in here.
118
@host_makefile_frag@
119
 
120
#
121
# build a test program for each target board. Just trying to get
122
# it to link is a good test, so we ignore all the errors for now.
123
#
124
all: ${CRT0} ${BSP}
125
 
126
#
127
# here's where we build the board support packages for each target
128
#
129
libor32.a: $(OR32_OBJS)
130
        ${AR} ${ARFLAGS} $@ $(OR32_OBJS)
131
        ${RANLIB} $@
132
 
133 180 jeremybenn
libor32uart.a: $(UART_OBJS)
134
        ${AR} ${ARFLAGS} $@ $(UART_OBJS)
135
        ${RANLIB} $@
136
 
137 148 jeremybenn
crt0.o: crt0.S
138
        $(CC) -c $(CFLAGS)  $(<) -o $@
139
 
140
 
141
clean mostlyclean:
142
        rm -f a.out core *.i *.o *-test *.srec *.dis *.x $(SIM_BSP) $(MON_BSP)
143
 
144
distclean maintainer-clean realclean: clean
145
        rm -f Makefile config.status *~
146
 
147
.PHONY: install info install-info clean-info
148
install:
149 180 jeremybenn
        $(INSTALL_PROGRAM) $(CRT0) \
150
                $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(CRT0)
151 148 jeremybenn
        @for bsp in ${BSP}; do\
152 180 jeremybenn
            $(INSTALL_PROGRAM) $${bsp} $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}; \
153 148 jeremybenn
        done
154
 
155
info:
156
install-info:
157
clean-info:
158
 
159
 
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.