Line 1... |
Line 1... |
# Makefile for libgloss/m32r
|
# Makefile for libgloss/m32r
|
# Copyright (c) 1996 Cygnus Support.
|
# Copyright (c) 1996, 1998 Cygnus Support.
|
# All rights reserved.
|
# All rights reserved.
|
#
|
#
|
# Redistribution and use in source and binary forms are permitted
|
# Redistribution and use in source and binary forms are permitted
|
# provided that the above copyright notice and this paragraph are
|
# provided that the above copyright notice and this paragraph are
|
# duplicated in all such forms and that any documentation,
|
# duplicated in all such forms and that any documentation,
|
Line 61... |
Line 61... |
MAKEOVERRIDES=
|
MAKEOVERRIDES=
|
|
|
TARGETDOC = ../../targetdep.tex
|
TARGETDOC = ../../targetdep.tex
|
|
|
CRT0 = crt0.o
|
CRT0 = crt0.o
|
SYSCALLS = crtsysc.o
|
|
GDBLIB = m32r-lib.o
|
GDBLIB = m32r-lib.o
|
GDBSTUB = m32r-stub.o
|
GDBSTUB = m32r-stub.o
|
EVASCRIPT = eva.ld
|
EVASCRIPT = eva.ld
|
STUBSCRIPT = eva-stub.ld
|
STUBSCRIPT = eva-stub.ld
|
|
|
|
GENERIC_LIBOBJS = \
|
|
chmod.o close.o exit.o fstat.o getpid.o isatty.o kill.o lseek.o \
|
|
open.o raise.o read.o sbrk.o stat.o unlink.o utime.o write.o
|
|
|
|
LIBOBJS = trap0.o $(GENERIC_LIBOBJS)
|
|
LIBGLOSS = libgloss.a
|
|
|
|
MONLIBOBJS = trapmon0.o $(GENERIC_LIBOBJS)
|
|
MONLIBGLOSS = libmon.a
|
|
MONSPECS = mon.specs
|
|
|
# Host specific makefile fragment comes in here.
|
# Host specific makefile fragment comes in here.
|
@host_makefile_frag@
|
@host_makefile_frag@
|
|
|
all: $(CRT0) $(SYSCALLS) $(GDBLIB) $(GDBSTUB)
|
all: $(CRT0) $(LIBGLOSS) $(MONLIBGLOSS) $(GDBLIB) $(GDBSTUB)
|
|
|
m32r-stub.o: $(srcdir)/$(MULTISRCTOP)../../gdb/m32r-stub.c
|
m32r-stub.o: $(srcdir)/$(MULTISRCTOP)../../gdb/m32r-stub.c
|
$(CC) -c $(CFLAGS) -o $@ $(srcdir)/$(MULTISRCTOP)../../gdb/m32r-stub.c
|
$(CC) -c $(CFLAGS) -o $@ $(srcdir)/$(MULTISRCTOP)../../gdb/m32r-stub.c
|
|
|
|
libgloss.a: $(LIBOBJS)
|
|
$(AR) $(ARFLAGS) $@ $(LIBOBJS)
|
|
$(RANLIB) $@
|
|
|
|
libmon.a: $(MONLIBOBJS)
|
|
$(AR) $(ARFLAGS) $@ $(MONLIBOBJS)
|
|
$(RANLIB) $@
|
|
|
install:
|
install:
|
$(INSTALL_DATA) $(CRT0) $(tooldir)/lib${MULTISUBDIR}/$(CRT0)
|
$(INSTALL_DATA) $(CRT0) $(tooldir)/lib${MULTISUBDIR}/$(CRT0)
|
$(INSTALL_DATA) $(SYSCALLS) $(tooldir)/lib${MULTISUBDIR}/$(SYSCALLS)
|
$(INSTALL_DATA) $(LIBGLOSS) $(tooldir)/lib${MULTISUBDIR}/$(LIBGLOSS)
|
|
$(INSTALL_DATA) $(MONLIBGLOSS) $(tooldir)/lib${MULTISUBDIR}/$(MONLIBGLOSS)
|
$(INSTALL_DATA) $(GDBLIB) $(tooldir)/lib${MULTISUBDIR}/$(GDBLIB)
|
$(INSTALL_DATA) $(GDBLIB) $(tooldir)/lib${MULTISUBDIR}/$(GDBLIB)
|
$(INSTALL_DATA) $(GDBSTUB) $(tooldir)/lib${MULTISUBDIR}/$(GDBSTUB)
|
$(INSTALL_DATA) $(GDBSTUB) $(tooldir)/lib${MULTISUBDIR}/$(GDBSTUB)
|
$(INSTALL_DATA) $(srcdir)/$(EVASCRIPT) $(tooldir)/lib/$(EVASCRIPT)
|
$(INSTALL_DATA) $(srcdir)/$(EVASCRIPT) $(tooldir)/lib/$(EVASCRIPT)
|
$(INSTALL_DATA) $(srcdir)/$(STUBSCRIPT) $(tooldir)/lib/$(STUBSCRIPT)
|
$(INSTALL_DATA) $(srcdir)/$(STUBSCRIPT) $(tooldir)/lib/$(STUBSCRIPT)
|
|
$(INSTALL_DATA) $(srcdir)/$(MONSPECS) $(tooldir)/lib/$(MONSPECS)
|
|
|
clean mostlyclean:
|
clean mostlyclean:
|
rm -f *~ *.[oa]
|
rm -f *~ *.[oa]
|
|
|
distclean maintainer-clean realclean: clean
|
distclean maintainer-clean realclean: clean
|
Line 101... |
Line 121... |
config.status: configure
|
config.status: configure
|
$(SHELL) config.status --recheck
|
$(SHELL) config.status --recheck
|
|
|
# to support SunOS VPATH
|
# to support SunOS VPATH
|
crt0.o: crt0.S
|
crt0.o: crt0.S
|
crtsysc.o: crtsysc.c
|
|
m32r-lib.o: m32r-lib.c
|
m32r-lib.o: m32r-lib.c
|
|
chmod.o: chmod.c
|
|
close.o: close.c
|
|
exit.o: exit.c
|
|
fstat.o: fstat.c
|
|
getpid.o: getpid.c
|
|
isatty.o: isatty.c
|
|
kill.o: kill.c
|
|
lseek.o: lseek.c
|
|
open.o: open.c
|
|
raise.o: raise.c
|
|
read.o: read.c
|
|
sbrk.o: sbrk.c
|
|
stat.o: stat.c
|
|
unlink.o: unlink.c
|
|
utime.o: utime.c
|
|
write.o: write.c
|
|
trap0.o: trap0.S
|
|
trapmon0.o: trapmon0.c
|