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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib-1.10.0/] [libgloss/] [mn10300/] [Makefile.in] - Blame information for rev 1765

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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