1 # Makefile for libgloss/m32r
2 # Copyright (c) 1996, 1998 Cygnus Support.
5 # Redistribution and use in source and binary forms are permitted
6 # provided that the above copyright notice and this paragraph are
7 # duplicated in all such forms and that any documentation,
8 # advertising materials, and other materials related to such
9 # distribution and use acknowledge that the software was developed
10 # at Cygnus Support, Inc. Cygnus Support, Inc. may not be used to
11 # endorse or promote products derived from this software without
12 # specific prior written permission.
13 # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
14 # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
15 # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
18 VPATH
= @
srcdir@ @
srcdir@
/..
21 srcroot
= $(srcdir)/..
/..
22 objroot
= $(objdir
)/..
/..
24 host_alias
= @host_alias@
25 target_alias
= @target_alias@
27 exec_prefix = @
exec_prefix@
30 tooldir
= $(exec_prefix)/$(target_alias
)
35 # Multilib support variables.
36 # TOP is used instead of MULTI{BUILD,SRC}TOP.
45 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
46 INSTALL_DATA
= @INSTALL_DATA@
64 TARGETDOC
= ..
/..
/targetdep.
tex
70 STUBSCRIPT
= eva-stub.
ld
73 chmod.o close.o exit.o fstat.o getpid.o isatty.o kill.o lseek.o \
74 open.o raise.o read.o sbrk.o stat.o unlink.o utime.o write.o
76 LIBOBJS
= trap0.o
$(GENERIC_LIBOBJS
)
79 MONLIBOBJS
= trapmon0.o
$(GENERIC_LIBOBJS
)
80 MONLIBGLOSS
= libmon.a
83 # Host specific makefile fragment comes in here.
86 all: $(CRT0
) $(LIBGLOSS
) $(MONLIBGLOSS
) $(GDBLIB
) $(GDBSTUB
)
88 m32r-stub.o
: $(srcdir)/$(MULTISRCTOP
)..
/..
/gdb
/m32r-stub.c
89 $(CC
) -c
$(CFLAGS
) -o
$@
$(srcdir)/$(MULTISRCTOP
)..
/..
/gdb
/m32r-stub.c
91 libgloss.a
: $(LIBOBJS
)
92 $(AR
) $(ARFLAGS
) $@
$(LIBOBJS
)
95 libmon.a
: $(MONLIBOBJS
)
96 $(AR
) $(ARFLAGS
) $@
$(MONLIBOBJS
)
100 mkdir
-p
$(DESTDIR
)$(tooldir
)/lib
${MULTISUBDIR}
101 $(INSTALL_DATA
) $(CRT0
) $(DESTDIR
)$(tooldir
)/lib
${MULTISUBDIR}/$(CRT0
)
102 $(INSTALL_DATA
) $(LIBGLOSS
) $(DESTDIR
)$(tooldir
)/lib
${MULTISUBDIR}/$(LIBGLOSS
)
103 $(INSTALL_DATA
) $(MONLIBGLOSS
) $(DESTDIR
)$(tooldir
)/lib
${MULTISUBDIR}/$(MONLIBGLOSS
)
104 $(INSTALL_DATA
) $(GDBLIB
) $(DESTDIR
)$(tooldir
)/lib
${MULTISUBDIR}/$(GDBLIB
)
105 $(INSTALL_DATA
) $(GDBSTUB
) $(DESTDIR
)$(tooldir
)/lib
${MULTISUBDIR}/$(GDBSTUB
)
106 $(INSTALL_DATA
) $(srcdir)/$(EVASCRIPT
) $(DESTDIR
)$(tooldir
)/lib
/$(EVASCRIPT
)
107 $(INSTALL_DATA
) $(srcdir)/$(STUBSCRIPT
) $(DESTDIR
)$(tooldir
)/lib
/$(STUBSCRIPT
)
108 $(INSTALL_DATA
) $(srcdir)/$(MONSPECS
) $(DESTDIR
)$(tooldir
)/lib
/$(MONSPECS
)
113 distclean maintainer-clean
realclean: clean
114 rm -f Makefile config.status
120 Makefile
: Makefile.in config.status @host_makefile_frag_path@
121 $(SHELL
) config.status
123 config.status
: configure
124 $(SHELL
) config.status
--recheck
126 # to support SunOS VPATH
128 m32r-lib.o
: m32r-lib.c
146 trapmon0.o
: trapmon0.c