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

Subversion Repositories openrisc_me

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

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

Line No. Rev Author Line
1 148 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
# BF531, BF532, BF533, BF537
64
BOARD_SCRIPTS   = bfin-common-sc.ld  bfin-common-mc.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
ifneq (,$(findstring mcpu=bf532-none,$(CFLAGS)))
103
        $(CC) $(CFLAGS_FOR_TARGET) $(INCLUDES) $(CFLAGS) -o $@ -c $<
104
else
105
        $(CC) $(CFLAGS_FOR_TARGET) $(INCLUDES) $(CFLAGS) -mcpu=bf532-any -o $@ -c $<
106
endif
107
 
108
basiccrts.o: basiccrt.S
109
ifneq (,$(findstring mcpu=bf532-none,$(CFLAGS)))
110
        $(CC) -D__BFIN_SDRAM $(CFLAGS_FOR_TARGET) $(INCLUDES) $(CFLAGS) -o $@ -c $<
111
else
112
        $(CC) -D__BFIN_SDRAM $(CFLAGS_FOR_TARGET) $(INCLUDES) $(CFLAGS) -mcpu=bf532-any -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
 
130
basiccrt561b.o: basiccrt.S
131
ifneq (,$(findstring mcpu=bf532-none,$(CFLAGS)))
132
        $(CC) -D__ADSPBF561_COREB__ $(CFLAGS_FOR_TARGET) $(INCLUDES) $(CFLAGS) -mcpu=bf561-none -o $@ -c $<
133
else
134
        $(CC) -D__ADSPBF561_COREB__ $(CFLAGS_FOR_TARGET) $(INCLUDES) $(CFLAGS) -mcpu=bf561-any -o $@ -c $<
135
endif
136
 
137
clean mostlyclean:
138
        rm -f a.out core *.i *.o ${SIM_BSP} ${BOARD_BSP}
139
 
140
distclean maintainer-clean realclean: clean
141
        rm -f Makefile config.status *~
142
 
143
.PHONY: install info install-info clean-info
144
install: ${SIM_INSTALL} ${BOARD_INSTALL}
145
 
146
install-sim:
147
        for x in ${SIM_CRT0} ${SIM_BSP} ${SIM_SCRIPTS}; do \
148
         ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; \
149
        done
150
 
151
install-board:
152
        for x in ${BOARD_CRT0S} ${BOARD_BSP}; do \
153
         ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; \
154
        done
155
        -if [ -z "${MULTISUBDIR}" ]; then \
156
          for x in ${BOARD_SCRIPTS}; do \
157
           ${INSTALL_DATA} ${srcdir}/$$x $(DESTDIR)${tooldir}/lib/$$x; \
158
          done; \
159
          ${mkinstalldirs} ${DESTDIR}${tooldir}/include; \
160
          for i in ${srcdir}/include/*.h; do \
161
           ${INSTALL_DATA} $$i ${DESTDIR}${tooldir}/include/`basename $$i`; \
162
          done; \
163
          ${mkinstalldirs} ${DESTDIR}${tooldir}/include/sys; \
164
          for i in ${srcdir}/include/sys/*.h; do \
165
           ${INSTALL_DATA} $$i ${DESTDIR}${tooldir}/include/sys/`basename $$i`; \
166
          done; \
167
        else true; fi
168
 
169
doc:
170
info:
171
install-info:
172
clean-info:
173
 
174
Makefile: Makefile.in config.status @host_makefile_frag_path@
175
        $(SHELL) config.status
176
 
177
config.status: configure
178
        $(SHELL) config.status --recheck

powered by: WebSVN 2.1.0

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