fixed more binutils issues (newer gcc/libc)
[zpugcc/jano.git] / toolchain / gcc / libgloss / frv / Makefile.in
blobb350945305e95dfd3dec8eb8f34acf85ef91b5c5
1 # Copyright (c) 2002 Red Hat, Inc
3 # The authors hereby grant permission to use, copy, modify, distribute,
4 # and license this software and its documentation for any purpose, provided
5 # that existing copyright notices are retained in all copies and that this
6 # notice is included verbatim in any distributions. No written agreement,
7 # license, or royalty fee is required for any of the authorized uses.
8 # Modifications to this software may be copyrighted by their authors
9 # and need not follow the licensing terms described here, provided that
10 # the new terms are clearly indicated on the first page of each file where
11 # they apply.
13 # Makefile for libgloss/frv. This is the board support
14 # code for the various frv targets.
16 VPATH = @srcdir@ @srcdir@/..
17 srcdir = @srcdir@
18 objdir = .
19 srcroot = $(srcdir)/../..
20 objroot = $(objdir)/../..
22 prefix = @prefix@
23 exec_prefix = @exec_prefix@
25 host_alias = @host_alias@
26 target_alias = @target_alias@
28 bindir = @bindir@
29 libdir = @libdir@
30 tooldir = $(exec_prefix)/$(target_alias)
32 # Multilib support variables.
33 # TOP is used instead of MULTI{BUILD,SRC}TOP.
34 MULTIDIRS =
35 MULTISUBDIR =
36 MULTIDO = true
37 MULTICLEAN = true
39 INSTALL = @INSTALL@
40 INSTALL_PROGRAM = @INSTALL_PROGRAM@
41 INSTALL_DATA = @INSTALL_DATA@
43 SHELL = /bin/sh
45 CC = @CC@
47 AS = @AS@
48 AR = @AR@
49 LD = @LD@
50 RANLIB = @RANLIB@
51 AR_FLAGS = rc
53 OBJDUMP = `if [ -f ${objroot}/../binutils/objdump ] ; \
54 then echo ${objroot}/../binutils/objdump ; \
55 else t='$(program_transform_name)'; echo objdump | sed -e $$t ; fi`
56 OBJCOPY = `if [ -f ${objroot}/../binutils/objcopy ] ; \
57 then echo ${objroot}/../binutils/objcopy ; \
58 else t='$(program_transform_name)'; echo objcopy | sed -e $$t ; fi`
60 CRT0 = crt0.o
61 SIM_BSP = libsim.a
62 SIM_OBJS = fstat.o \
63 getpid.o \
64 isatty.o \
65 kill.o \
66 putnum.o \
67 sbrk.o \
68 sim-close.o \
69 sim-exit.o \
70 sim-inbyte.o \
71 sim-lseek.o \
72 sim-open.o \
73 sim-read.o \
74 sim-time.o \
75 sim-unlink.o \
76 sim-write.o \
77 stat.o
79 #### Host specific Makefile fragment comes in here.
80 @host_makefile_frag@
82 all: $(CRT0) $(SIM_BSP)
84 $(SIM_BSP): $(SIM_OBJS)
85 $(AR) $(ARFLAGS) $@ $?
86 $(RANLIB) $@
88 fstat.o: $(srcdir)/fstat.c
89 getpid.o: $(srcdir)/getpid.c
90 isatty.o: $(srcdir)/isatty.c
91 kill.o: $(srcdir)/kill.c
92 putnum.o: $(srcdir)/putnum.c
93 sbrk.o: $(srcdir)/sbrk.c
94 sim-close.o: $(srcdir)/sim-close.S
95 sim-exit.o: $(srcdir)/sim-exit.S
96 sim-inbyte.o: $(srcdir)/sim-inbyte.c
97 sim-lseek.o: $(srcdir)/sim-lseek.S
98 sim-open.o: $(srcdir)/sim-open.S
99 sim-read.o: $(srcdir)/sim-read.S
100 sim-time.o: $(srcdir)/sim-time.c
101 sim-unlink.o: $(srcdir)/sim-unlink.S
102 sim-write.o: $(srcdir)/sim-write.S
103 stat.o: $(srcdir)/stat.c
105 install: $($(CPU)_INSTALL)
106 $(INSTALL_DATA) $(CRT0) $(tooldir)/lib${MULTISUBDIR}/$(CRT0)
107 $(INSTALL_DATA) $(SIM_BSP) $(tooldir)/lib${MULTISUBDIR}/$(SIM_BSP)
109 clean mostlyclean:
110 rm -f *.o *.a
112 distclean maintainer-clean realclean: clean
113 rm -f Makefile config.cache config.log config.status
115 .PHONY: info dvi doc install-info clean-info
116 info doc dvi:
117 install-info:
118 clean-info:
120 Makefile: Makefile.in config.status @host_makefile_frag_path@
121 $(SHELL) config.status
123 config.status: configure
124 $(SHELL) config.status --recheck