fixes for host gcc 4.6.1
[zpugcc/jano.git] / toolchain / gcc / libgloss / i960 / Makefile.in
blob5b483dcda3c5e3dda23605aedee81773e3c481fa
4 VPATH = @srcdir@ @srcdir@/..
5 srcdir = @srcdir@
6 objdir = .
7 srcroot = $(srcdir)/../..
8 objroot = $(objdir)/../..
10 prefix = @prefix@
11 exec_prefix = @exec_prefix@
13 host_alias = @host_alias@
14 target_alias = @target_alias@
16 bindir = @bindir@
17 libdir = @libdir@
18 tooldir = $(exec_prefix)/$(target_alias)
20 INSTALL = @INSTALL@
21 INSTALL_PROGRAM = @INSTALL_PROGRAM@
22 INSTALL_DATA = @INSTALL_DATA@
24 # Multilib support variables.
25 # TOP is used instead of MULTI{BUILD,SRC}TOP.
26 MULTIDIRS =
27 MULTISUBDIR =
29 SHELL = /bin/sh
31 CC = @CC@
33 AS = @AS@
34 AR = @AR@
35 LD = @LD@
36 RANLIB = @RANLIB@
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`
45 OBJS = putnum.o unlink.o
46 CFLAGS = -g
47 SCRIPTS =
49 # Here is all of the simulator stuff
50 SIM_SCRIPTS =
51 SIM_LDFLAGS =
52 SIM_BSP = libsim.a
53 SIM_CRT0 = sim-crt0.o
54 SIM_OBJS = sim-print.o sim-inbyte.o sim-sbrk.o sim-abort.o sim-errno.o simulator.o
55 SIM_TEST = sim-test
56 SIM_INSTALL = install-sim
58 # Here is all of the mon960 stuff
59 MON_LDFLAGS =
60 MON_BSP = libmon960.a
61 MON_CRT0 = crt0.o
62 MON_OBJS = mon-read.o mon-write.o mon-syscalls.o mon960.o
63 MON_SCRIPTS = mon960.ld
64 MON_TEST =
65 MON_INSTALL = install-mon
67 # Host specific makefile fragment comes in here.
68 @host_makefile_frag@
71 # build a test program for each target board. Just trying to get
72 # it to link is a good test, so we ignore all the errors for now.
74 all: ${MON_CRT0} ${MON_BSP}
77 # here's where we build the board support packages for each target
79 ${SIM_BSP}: ${OBJS} ${SIM_OBJS}
80 ${AR} ${ARFLAGS} ${SIM_BSP} ${SIM_OBJS} ${OBJS}
81 ${RANLIB} ${SIM_BSP}
83 ${MON_BSP}: ${OBJS} ${MON_OBJS}
84 ${AR} ${ARFLAGS} ${MON_BSP} ${MON_OBJS} ${OBJS}
85 ${RANLIB} ${MON_BSP}
88 # here's where we build the test programs for each target
90 .PHONY: test
91 test: ${SIM_TEST} ${MVME_TEST} ${EVM_TEST}
93 sim-test: sim-test.x sim-test.dis
95 sim-test.x: test.o ${SIM_CRT0} ${SIM_BSP}
96 ${CC} ${LDFLAGS_FOR_TARGET} -L${objdir} \
97 ${SIM_CRT0} test.o \
98 -o sim-test.x ${LIBS_FOR_TARGET} -lc ${SIM_BSP}
100 sim-test.dis: sim-test.x
101 ${OBJDUMP} -d sim-test.x > sim-test.dis
107 .c.S:
108 ${CC} ${CFLAGS_FOR_TARGET} -c $<
110 simulator.o: simulator.S
111 sim-crt0.o: sim-crt0.S
112 mvme-crt0.o: mvme-crt0.S
113 mvme-exit.o: mvme-exit.S
114 mvme-inbyte.o: mvme-inbyte.S
115 mvme-outbyte.o: mvme-outbyte.S
117 clean mostlyclean:
118 rm -f a.out core *.i *.o *-test *.srec *.dis *.x
120 distclean maintainer-clean realclean: clean
121 rm -f Makefile config.status *~
123 .PHONY: install info install-info clean-info
124 install: ${MON_INSTALL}
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}/$$x ${tooldir}/lib${MULTISUBDIR}/$$x; done
130 install-sim:
131 set -e; for x in ${SIM_CRT0} ${SIM_BSP} ${SIM_SCRIPTS}; do ${INSTALL_DATA} $$x ${tooldir}/lib/$$x; done
133 doc:
134 info:
135 install-info:
136 clean-info:
138 Makefile: Makefile.in config.status @host_makefile_frag_path@
139 $(SHELL) config.status
141 config.status: configure
142 $(SHELL) config.status --recheck