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

Subversion Repositories openrisc_me

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

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
 
11
prefix = @prefix@
12
exec_prefix = @exec_prefix@
13
 
14
host_alias = @host_alias@
15
target_alias = @target_alias@
16
 
17
bindir = @bindir@
18
libdir = @libdir@
19
tooldir = $(exec_prefix)/$(target_alias)
20
 
21
INSTALL = @INSTALL@
22
INSTALL_PROGRAM = @INSTALL_PROGRAM@
23
INSTALL_DATA = @INSTALL_DATA@
24
 
25
# Multilib support variables.
26
# TOP is used instead of MULTI{BUILD,SRC}TOP.
27
MULTIDIRS =
28
MULTISUBDIR =
29
 
30
SHELL = /bin/sh
31
 
32
CC = @CC@
33
 
34
AS = @AS@
35
AR = @AR@
36
LD = @LD@
37
RANLIB = @RANLIB@
38
 
39
# Yuk.
40
OBJCOPY = $(subst ranlib,objcopy,$(RANLIB))
41
 
42
OBJS            = isatty.o
43
CFLAGS          = -g -O2
44
ASFLAGS         = --gdwarf2
45
SCRIPTS         =
46
CRT             = crt0.o crti.o crtn.o
47
 
48
# Here is all of the simulator stuff
49
SIM_SCRIPTS     = sim_high.ld sim_rom.ld
50
SIM_LDFLAGS     =
51
SIM_BSP         = libsim.a
52
SIM_OBJS        = syscalls.o sim_malloc_start.o
53
 
54
# Here is stuff for building apps for GDB on the EVA board
55
EVA_APP_BSP     = libeva_app.a
56
EVA_APP_OBJS    = close.o fstat.o getpid.o kill.o lseek.o open.o \
57
                  stat.o unlink.o eva_app.o
58
EVA_APP_SCRIPTS = eva_app.ld
59
 
60
# Stub stuff
61
EVA_STUB_HEX    = eva_stub.hex
62
EVA_STUB        = eva_stub.elf
63
EVA_STUB_OBJS   = xstormy16_stub.o crt0_stub.o
64
 
65
# Host specific makefile fragment comes in here.
66
@host_makefile_frag@
67
 
68
#
69
# build a test program for each target board. Just trying to get
70
# it to link is a good test, so we ignore all the errors for now.
71
#
72
# all: ${MON_CRT0} ${MON_BSP}
73
all: ${CRT} ${SIM_BSP} ${EVA_APP_BSP} ${EVA_STUB_HEX}
74
 
75
#
76
# here's where we build the board support packages for each target
77
#
78
${SIM_BSP}: ${OBJS} ${SIM_OBJS}
79
        ${AR} ${ARFLAGS} ${SIM_BSP} ${SIM_OBJS} ${OBJS}
80
        ${RANLIB} ${SIM_BSP}
81
 
82
${EVA_APP_BSP}: ${OBJS} ${EVA_APP_OBJS}
83
        ${AR} ${ARFLAGS} ${EVA_APP_BSP} ${EVA_APP_OBJS} ${OBJS}
84
        ${RANLIB} ${EVA_APP_BSP}
85
 
86
${EVA_STUB_HEX}: ${EVA_STUB}
87
        ${OBJCOPY} -O ihex $< $@
88
 
89
${EVA_STUB}: ${EVA_STUB_OBJS} ${srcdir}/eva_stub.ld
90
        ${CC} -g -Os -nostartfiles -T${srcdir}/eva_stub.ld ${EVA_STUB_OBJS} -o $@
91
 
92
 
93
#
94
# here's where we build the test programs for each target
95
#
96
.PHONY: test
97
test:
98
        true
99
 
100
#
101
#
102
#
103
.c.S:
104
        ${CC} ${CFLAGS_FOR_TARGET} -c $<
105
 
106
clean mostlyclean:
107
        rm -f a.out core *.i *.o *-test *.srec *.dis *.x *.hex $(SIM_BSP) $(EVA_APP_BSP) $(EVA_STUB)
108
 
109
distclean maintainer-clean realclean: clean
110
        rm -f Makefile config.status *~
111
 
112
.PHONY: install info install-info clean-info
113
install:
114
        set -e; for x in ${SIM_BSP} ${CRT} ${EVA_APP_BSP} ${EVA_STUB_HEX} ${EVA_STUB} ; do\
115
          ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; \
116
        done
117
        @for script in ${SCRIPTS} ${SIM_SCRIPTS} ${EVA_APP_SCRIPTS}; do\
118
          ${INSTALL_DATA} ${srcdir}/$${script} $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$${script}; \
119
        done
120
 
121
 
122
doc:
123
info:
124
install-info:
125
clean-info:
126
 
127
Makefile: Makefile.in config.status @host_makefile_frag_path@
128
        $(SHELL) config.status
129
 
130
config.status: configure
131
        $(SHELL) config.status --recheck

powered by: WebSVN 2.1.0

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