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

Subversion Repositories or1k

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 56 joel
#
2
#
3
 
4
VPATH = @srcdir@ @srcdir@/..
5
srcdir = @srcdir@
6
objdir = .
7
srcroot = $(srcdir)/../..
8
objroot = $(objdir)/../..
9
 
10
prefix = @prefix@
11
exec_prefix = @exec_prefix@
12
 
13
host_alias = @host_alias@
14
target_alias = @target_alias@
15
 
16
bindir = @bindir@
17
libdir = @libdir@
18
tooldir = $(exec_prefix)/$(target_alias)
19
 
20
INSTALL = @INSTALL@
21
INSTALL_PROGRAM = @INSTALL_PROGRAM@
22
INSTALL_DATA = @INSTALL_DATA@
23
 
24
# Multilib support variables.
25
# TOP is used instead of MULTI{BUILD,SRC}TOP.
26
MULTIDIRS =
27
MULTISUBDIR =
28
 
29
SHELL = /bin/sh
30
 
31
CC = @CC@
32
 
33
AS = @AS@
34
AR = @AR@
35
LD = @LD@
36
RANLIB = @RANLIB@
37
 
38
OBJDUMP = `if [ -f ${objroot}/../binutils/objdump ] ; \
39
        then echo ${objroot}/../binutils/objdump ; \
40
        else t='$(program_transform_name)'; echo objdump | sed -e $$t ; fi`
41
OBJCOPY = `if [ -f ${objroot}/../binutils/objcopy ] ; \
42
        then echo ${objroot}/../binutils/objcopy ; \
43
        else t='$(program_transform_name)'; echo objcopy | sed -e $$t ; fi`
44
 
45
OBJS            = fstat.o getpid.o isatty.o kill.o raise.o putnum.o stat.o unlink.o
46
CFLAGS          = -g
47
SCRIPTS         =
48
 
49
# Here is all of the simulator stuff
50
SIM_SCRIPTS     =
51
SIM_LDFLAGS     =
52
SIM_BSP         = libsim.a
53
SIM_CRT0        = crt0.o
54
SIM_OBJS        = syscalls.o
55
SIM_TEST        = sim-test
56
SIM_INSTALL     = install-sim
57
 
58
# Here is all of the picobug on cmb stuff
59
MON_PREFIX      = @bsp_prefix@
60
MON_LDFLAGS     =
61
MON_BSP         = libcmb.a
62
MON_CRT0        = crt0.o
63
MON_OBJS        = open.o close.o lseek.o sbrk.o read.o write.o print.o cmb-exit.o cmb-inbyte.o cmb-outbyte.o
64
MON_SCRIPTS     = cmb.ld cmb.specs
65
MON_TEST        =
66
MON_INSTALL     = install-mon
67
 
68
# Host specific makefile fragment comes in here.
69
@host_makefile_frag@
70
 
71
#
72
# build a test program for each target board. Just trying to get
73
# it to link is a good test, so we ignore all the errors for now.
74
#
75
all: ${SIM_CRT0} ${SIM_BSP} ${MON_BSP}
76
 
77
#
78
# here's where we build the board support packages for each target
79
#
80
${SIM_BSP}: ${OBJS} ${SIM_OBJS}
81
        ${AR} ${ARFLAGS} ${SIM_BSP} ${SIM_OBJS} ${OBJS}
82
        ${RANLIB} ${SIM_BSP}
83
 
84
${MON_BSP}: ${OBJS} ${MON_OBJS}
85
        ${AR} ${ARFLAGS} ${MON_BSP} ${MON_OBJS} ${OBJS}
86
        ${RANLIB} ${MON_BSP}
87
 
88
#
89
# here's where we build the test programs for each target
90
#
91
.PHONY: test
92
test:   ${SIM_TEST} ${MON_TEST}
93
 
94
sim-test:       sim-test.x sim-test.dis
95
 
96
sim-test.x:     test.o ${SIM_CRT0} ${SIM_BSP}
97
        ${CC} ${LDFLAGS_FOR_TARGET} -L${objdir} \
98
        ${SIM_CRT0} test.o \
99
        -o sim-test.x ${LIBS_FOR_TARGET} -lc ${SIM_BSP}
100
 
101
sim-test.dis:   sim-test.x
102
        ${OBJDUMP} -d sim-test.x > sim-test.dis
103
 
104
 
105
#
106
#
107
#
108
.c.S:
109
        ${CC} ${CFLAGS_FOR_TARGET} $(INCLUDES) $(CFLAGS) -c $<
110
 
111
simulator.o: simulator.S
112
sim-crt0.o: sim-crt0.S
113
cmb-exit.o: cmb-exit.c
114
cmb-inbyte.o: cmb-inbyte.c
115
cmb-outbyte.o: cmb-outbyte.c
116
 
117
clean mostlyclean:
118
        rm -f a.out core *.i *.o *-test *.srec *.dis *.x $(SIM_BSP) $(MON_BSP)
119
 
120
distclean maintainer-clean realclean: clean
121
        rm -f Makefile config.status *~
122
 
123
.PHONY: install info install-info clean-info
124
install: ${SIM_INSTALL} ${MON_INSTALL}
125
 
126
install-mon:
127
        set -e; for x in ${MON_CRT0} ${MON_BSP}; do ${INSTALL_DATA} $$x ${tooldir}/lib${MULTISUBDIR}/$$x; done
128
        set -e; for x in ${MON_SCRIPTS}; do ${INSTALL_DATA} ${srcdir}/${MON_PREFIX}$$x ${tooldir}/lib${MULTISUBDIR}/$$x; done
129
 
130
install-sim:
131
        set -e; for x in ${SIM_CRT0} ${SIM_BSP} ${SIM_SCRIPTS}; do ${INSTALL_DATA} $$x ${tooldir}/lib${MULTISUBDIR}/$$x; done
132
 
133
doc:
134
info:
135
install-info:
136
clean-info:
137
 
138
Makefile: Makefile.in config.status @host_makefile_frag_path@
139
        $(SHELL) config.status
140
 
141
config.status: configure
142
        $(SHELL) config.status --recheck

powered by: WebSVN 2.1.0

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