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
13 # Makefile for libgloss/frv. This is the board support
14 # code for the various frv targets.
16 VPATH
= @
srcdir@ @
srcdir@
/..
19 srcroot
= $(srcdir)/..
/..
20 objroot
= $(objdir
)/..
/..
23 exec_prefix = @
exec_prefix@
25 host_alias
= @host_alias@
26 target_alias
= @target_alias@
30 tooldir
= $(exec_prefix)/$(target_alias
)
32 # Multilib support variables.
33 # TOP is used instead of MULTI{BUILD,SRC}TOP.
40 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
41 INSTALL_DATA
= @INSTALL_DATA@
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`
79 #### Host specific Makefile fragment comes in here.
82 all: $(CRT0
) $(SIM_BSP
)
84 $(SIM_BSP
): $(SIM_OBJS
)
85 $(AR
) $(ARFLAGS
) $@
$?
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
)
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
120 Makefile
: Makefile.in config.status @host_makefile_frag_path@
121 $(SHELL
) config.status
123 config.status
: configure
124 $(SHELL
) config.status
--recheck