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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [newlib-1.17.0/] [libgloss/] [mn10300/] [Makefile.in] - Blame information for rev 866

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

Line No. Rev Author Line
1 148 jeremybenn
# Copyright (c) 1998, 2000 Cygnus Support
2
#
3
# The authors hereby grant permission to use, copy, modify, distribute,
4
# and license this software and its documentation for any purpose, provided
5
# that existing copyright notices are retained in all copies and that this
6
# notice is included verbatim in any distributions. No written agreement,
7
# license, or royalty fee is required for any of the authorized uses.
8
# Modifications to this software may be copyrighted by their authors
9
# and need not follow the licensing terms described here, provided that
10
# the new terms are clearly indicated on the first page of each file where
11
# they apply.
12
 
13
DESTDIR =
14
VPATH = @srcdir@
15
srcdir = @srcdir@
16
objdir = .
17
srcroot = $(srcdir)/../..
18
objroot = $(objdir)/../..
19
 
20
prefix = @prefix@
21
exec_prefix = @exec_prefix@
22
 
23
host_alias = @host_alias@
24
target_alias = @target_alias@
25
program_transform_name = @program_transform_name@
26
 
27
bindir = @bindir@
28
libdir = @libdir@
29
tooldir = $(exec_prefix)/$(target_alias)
30
 
31
# Multilib support variables.
32
# TOP is used instead of MULTI{BUILD,SRC}TOP.
33
MULTIDIRS =
34
MULTISUBDIR =
35
MULTIDO = true
36
MULTICLEAN = true
37
 
38
INSTALL = @INSTALL@
39
INSTALL_PROGRAM = @INSTALL_PROGRAM@
40
INSTALL_DATA = @INSTALL_DATA@
41
 
42
SHELL = /bin/sh
43
 
44
CC = @CC@
45
 
46
#AS = @AS@
47
AS = `if [ -f ${objroot}/../gas/as.new ] ; \
48
        then echo ${objroot}/../gas/as.new ; \
49
        else echo as ; fi`
50
 
51
AR = @AR@
52
 
53
#LD = @LD@
54
LD = `if [ -f ${objroot}/../ld/ld.new ] ; \
55
        then echo ${objroot}/../ld/ld.new ; \
56
        else echo ld ; fi`
57
 
58
RANLIB = @RANLIB@
59
 
60
OBJDUMP = `if [ -f ${objroot}/../binutils/objdump ] ; \
61
        then echo ${objroot}/../binutils/objdump ; \
62
        else t='$(program_transform_name)'; echo objdump | sed -e $$t ; fi`
63
OBJCOPY = `if [ -f ${objroot}/../binutils/objcopy ] ; \
64
        then echo ${objroot}/../binutils/objcopy ; \
65
        else t='$(program_transform_name)'; echo objcopy | sed -e $$t ; fi`
66
 
67
CRT0 = crt0.o crt0_cygmon.o crt0_redboot.o
68
 
69
# Generic object files common to all targets.
70
GENOBJS_NO_TRAP = _exit.o access.o chmod.o close.o crt1.o \
71
        fstat.o getpid.o isatty.o \
72
        kill.o lseek.o open.o read.o \
73
        sbrk.o stat.o time.o times.o unlink.o utime.o write.o
74
GENOBJS = ${GENOBJS_NO_TRAP} trap.o
75
 
76
# Object files specific to particular targets.
77
EVALOBJS = ${GENOBJS}
78
CYGMONOBJS = cygmon.o ${GENOBJS_NO_TRAP}
79
 
80
CFLAGS = -g
81
 
82
GCC_LDFLAGS = `if [ -d ${objroot}/../gcc ] ; \
83
        then echo -L${objroot}/../gcc ; fi`
84
 
85
SCRIPTS = @script_list@
86
BSP = @bsp_list@
87
 
88
# Host specific makefile fragment comes in here.
89
@host_makefile_frag@
90
 
91
#
92
# build a test program for each target board. Just trying to get
93
# it to link is a good test, so we ignore all the errors for now.
94
#
95
 
96
all: ${CRT0} test.o ${BSP}
97
 
98
#
99
# here's where we build the board support packages for each target
100
#
101
 
102
libeval.a: $(EVALOBJS)
103
        ${AR} ${ARFLAGS} $@ $(EVALOBJS)
104
        ${RANLIB} $@
105
 
106
libcygmon.a: $(CYGMONOBJS)
107
        ${AR} ${ARFLAGS} $@ $(CYGMONOBJS)
108
        ${RANLIB} $@
109
 
110
 
111
# compile a fully linked binary. The -Wl,-T*.ld is for the linker
112
# script. By using -Wl, the linker script is put on the proper place
113
# in the comand line for ld, and all the symbols will get fully
114
# resolved.
115
 
116
test: ${CRT0} test.o
117
        ${CC} $(CFLAGS_FOR_TARGET) -L${srcdir} -L${objdir} \
118
        test.o -o $@ $(NEWLIB_LDFLAGS) -Wl,-Teval.ld
119
        @echo Done...
120
 
121
doc:
122
 
123
clean mostlyclean:
124
        rm -f a.out core *.i *~ *.o *-test *.srec *.dis *.map *.x
125
 
126
distclean maintainer-clean realclean: clean
127
        rm -f Makefile config.status a.out
128
 
129
.PHONY: install info install-info clean-info
130
install:
131
        @for crt in ${CRT0}; do \
132
        $(INSTALL_PROGRAM) $${crt} $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$${crt}; \
133
        done
134
        @for bsp in ${BSP}; do \
135
         $(INSTALL_PROGRAM) $${bsp} $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}; \
136
        done
137
        @for script in ${SCRIPTS}; do \
138
         $(INSTALL_DATA) ${srcdir}/$${script}.ld $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$${script}.ld; \
139
        done
140
 
141
info:
142
install-info:
143
clean-info:
144
 
145
test.o: ${srcdir}/test.c
146
 
147
# these are for the BSPs
148
crt0.o: ${srcdir}/crt0.S
149
crt0_cygmon.o: ${srcdir}/crt0_cygmon.S
150
 
151
# target specific makefile fragment comes in here.
152
@target_makefile_frag@
153
 
154
Makefile: Makefile.in config.status @host_makefile_frag_path@ @target_makefile_frag_path@
155
        $(SHELL) config.status
156
 
157
config.status: configure
158
        $(SHELL) config.status --recheck

powered by: WebSVN 2.1.0

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