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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.18.0/] [libgloss/] [bfin/] [Makefile.in] - Blame information for rev 231

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

Line No. Rev Author Line
1 207 jeremybenn
#
2
#
3
 
4
DESTDIR =
5
VPATH = @srcdir@ @srcdir@/..
6
srcdir = @srcdir@
7
objdir = .
8
srcroot = $(srcdir)/../..
9
objroot = $(objdir)/../..
10
top_srcdir = @top_srcdir@
11
 
12
prefix = @prefix@
13
exec_prefix = @exec_prefix@
14
 
15
host_alias = @host_alias@
16
target_alias = @target_alias@
17
 
18
bindir = @bindir@
19
libdir = @libdir@
20
tooldir = $(exec_prefix)/$(target_alias)
21
 
22
INSTALL = @INSTALL@
23
INSTALL_PROGRAM = @INSTALL_PROGRAM@
24
INSTALL_DATA = @INSTALL_DATA@
25
 
26
# Multilib support variables.
27
# TOP is used instead of MULTI{BUILD,SRC}TOP.
28
MULTIDIRS =
29
MULTISUBDIR =
30
 
31
SHELL = /bin/sh
32
 
33
mkinstalldirs = $(SHELL) $(top_srcdir)/../../mkinstalldirs
34
 
35
CC = @CC@
36
 
37
AS = @AS@
38
AR = @AR@
39
LD = @LD@
40
RANLIB = @RANLIB@
41
 
42
OBJDUMP = `if [ -f ${objroot}/../binutils/objdump ] ; \
43
        then echo ${objroot}/../binutils/objdump ; \
44
        else t='$(program_transform_name)'; echo objdump | sed -e $$t ; fi`
45
OBJCOPY = `if [ -f ${objroot}/../binutils/objcopy ] ; \
46
        then echo ${objroot}/../binutils/objcopy ; \
47
        else t='$(program_transform_name)'; echo objcopy | sed -e $$t ; fi`
48
 
49
OBJS            =
50
CFLAGS          =
51
SCRIPTS         =
52
 
53
# Here is all of the simulator stuff
54
SIM_SCRIPTS     =
55
SIM_LDFLAGS     =
56
SIM_BSP         = libsim.a
57
SIM_CRT0        = crt0.o
58
SIM_OBJS        = syscalls.o
59
SIM_TEST        = sim-test
60
SIM_INSTALL     = install-sim
61
 
62
# Here is all of the development board stuff
63
BOARD_SCRIPTS   = bfin-common-sc.ld  bfin-common-mc.ld \
64
        bf512.ld bf514.ld bf516.ld bf518.ld \
65
        bf522.ld bf523.ld bf524.ld bf525.ld bf526.ld bf527.ld \
66
        bf531.ld bf532.ld bf533.ld \
67
        bf534.ld bf536.ld bf537.ld \
68
        bf538.ld bf539.ld \
69
        bf542.ld bf544.ld bf547.ld bf548.ld bf549.ld \
70
        bf561.ld bf561a.ld bf561b.ld bf561m.ld
71
BOARD_LDFLAGS   =
72
BOARD_BSP       = # We actually use libnosys.a
73
BOARD_CRT0S     = basiccrt.o basiccrts.o
74
BOARD_CRT0S     += basiccrt561.o basiccrt561s.o basiccrt561b.o
75
BOARD_OBJS      =
76
BOARD_TEST      =
77
BOARD_INSTALL   = install-board
78
 
79
# Host specific makefile fragment comes in here.
80
@host_makefile_frag@
81
 
82
INCLUDES += -I$(srcdir)/include
83
#
84
# build a test program for each target board. Just trying to get
85
# it to link is a good test, so we ignore all the errors for now.
86
#
87
all: ${SIM_CRT0} ${SIM_BSP} ${BOARD_CRT0S} ${BOARD_BSP}
88
 
89
#
90
# here's where we build the board support packages for each target
91
#
92
${SIM_BSP}: ${OBJS} ${SIM_OBJS}
93
        ${AR} ${ARFLAGS} ${SIM_BSP} ${SIM_OBJS} ${OBJS}
94
        ${RANLIB} ${SIM_BSP}
95
 
96
#
97
#
98
#
99
crt0.o: crt0.S
100
 
101
basiccrt.o: basiccrt.S
102
ifeq (,$(findstring mcpu=,$(CFLAGS)))
103
        $(CC) $(CFLAGS_FOR_TARGET) $(INCLUDES) $(CFLAGS) -mcpu=bf532-any -o $@ -c $<
104
else
105
        $(CC) $(CFLAGS_FOR_TARGET) $(INCLUDES) $(CFLAGS) -o $@ -c $<
106
endif
107
 
108
basiccrts.o: basiccrt.S
109
ifeq (,$(findstring mcpu=,$(CFLAGS)))
110
        $(CC) -D__BFIN_SDRAM $(CFLAGS_FOR_TARGET) $(INCLUDES) $(CFLAGS) -mcpu=bf532-any -o $@ -c $<
111
else
112
        $(CC) -D__BFIN_SDRAM $(CFLAGS_FOR_TARGET) $(INCLUDES) $(CFLAGS) -o $@ -c $<
113
endif
114
 
115
basiccrt561.o: basiccrt.S
116
ifneq (,$(findstring mcpu=bf532-none,$(CFLAGS)))
117
        $(CC) $(CFLAGS_FOR_TARGET) $(INCLUDES) $(CFLAGS) -mcpu=bf561-none -o $@ -c $<
118
else
119
        $(CC) $(CFLAGS_FOR_TARGET) $(INCLUDES) $(CFLAGS) -mcpu=bf561-any -o $@ -c $<
120
endif
121
 
122
basiccrt561s.o: basiccrt.S
123
ifneq (,$(findstring mcpu=bf532-none,$(CFLAGS)))
124
        $(CC) -D__BFIN_SDRAM $(CFLAGS_FOR_TARGET) $(INCLUDES) $(CFLAGS) -mcpu=bf561-none -o $@ -c $<
125
else
126
        $(CC) -D__BFIN_SDRAM $(CFLAGS_FOR_TARGET) $(INCLUDES) $(CFLAGS) -mcpu=bf561-any -o $@ -c $<
127
endif
128
 
129
basiccrt561b.o: basiccrt.S
130
ifneq (,$(findstring mcpu=bf532-none,$(CFLAGS)))
131
        $(CC) -D__ADSPBF561_COREB__ $(CFLAGS_FOR_TARGET) $(INCLUDES) $(CFLAGS) -mcpu=bf561-none -o $@ -c $<
132
else
133
        $(CC) -D__ADSPBF561_COREB__ $(CFLAGS_FOR_TARGET) $(INCLUDES) $(CFLAGS) -mcpu=bf561-any -o $@ -c $<
134
endif
135
 
136
clean mostlyclean:
137
        rm -f a.out core *.i *.o ${SIM_BSP} ${BOARD_BSP}
138
 
139
distclean maintainer-clean realclean: clean
140
        rm -f Makefile config.status *~
141
 
142
.PHONY: install info install-info clean-info
143
install: ${SIM_INSTALL} ${BOARD_INSTALL}
144
 
145
install-sim:
146
        for x in ${SIM_CRT0} ${SIM_BSP} ${SIM_SCRIPTS}; do \
147
         ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; \
148
        done
149
 
150
install-board:
151
        for x in ${BOARD_CRT0S} ${BOARD_BSP}; do \
152
         ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; \
153
        done
154
        -if [ -z "${MULTISUBDIR}" ]; then \
155
          for x in ${BOARD_SCRIPTS}; do \
156
           ${INSTALL_DATA} ${srcdir}/$$x $(DESTDIR)${tooldir}/lib/$$x; \
157
          done; \
158
          ${mkinstalldirs} ${DESTDIR}${tooldir}/include; \
159
          for i in ${srcdir}/include/*.h; do \
160
           ${INSTALL_DATA} $$i ${DESTDIR}${tooldir}/include/`basename $$i`; \
161
          done; \
162
          ${mkinstalldirs} ${DESTDIR}${tooldir}/include/sys; \
163
          for i in ${srcdir}/include/sys/*.h; do \
164
           ${INSTALL_DATA} $$i ${DESTDIR}${tooldir}/include/sys/`basename $$i`; \
165
          done; \
166
        else true; fi
167
 
168
doc:
169
info:
170
install-info:
171
clean-info:
172
 
173
Makefile: Makefile.in config.status @host_makefile_frag_path@
174
        $(SHELL) config.status
175
 
176
config.status: configure
177
        $(SHELL) config.status --recheck

powered by: WebSVN 2.1.0

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