[444] | 1 | # Makefile for libgloss/m32r |
---|
| 2 | # Copyright (c) 1996, 1998 Cygnus Support. |
---|
| 3 | # All rights reserved. |
---|
| 4 | # |
---|
| 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. |
---|
| 16 | |
---|
| 17 | DESTDIR = |
---|
| 18 | VPATH = @srcdir@ @srcdir@/.. |
---|
| 19 | srcdir = @srcdir@ |
---|
| 20 | objdir = . |
---|
| 21 | srcroot = $(srcdir)/../.. |
---|
| 22 | objroot = $(objdir)/../.. |
---|
| 23 | |
---|
| 24 | host_alias = @host_alias@ |
---|
| 25 | target_alias = @target_alias@ |
---|
| 26 | prefix = @prefix@ |
---|
| 27 | exec_prefix = @exec_prefix@ |
---|
| 28 | bindir = @bindir@ |
---|
| 29 | libdir = @libdir@ |
---|
| 30 | tooldir = $(exec_prefix)/$(target_alias) |
---|
| 31 | |
---|
| 32 | TOP = ../.. |
---|
| 33 | SRCTOP = ../.. |
---|
| 34 | |
---|
| 35 | # Multilib support variables. |
---|
| 36 | # TOP is used instead of MULTI{BUILD,SRC}TOP. |
---|
| 37 | MULTISRCTOP = |
---|
| 38 | MULTIBUILDTOP = |
---|
| 39 | MULTIDIRS = |
---|
| 40 | MULTISUBDIR = |
---|
| 41 | MULTIDO = true |
---|
| 42 | MULTICLEAN = true |
---|
| 43 | |
---|
| 44 | INSTALL = @INSTALL@ |
---|
| 45 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
---|
| 46 | INSTALL_DATA = @INSTALL_DATA@ |
---|
| 47 | |
---|
| 48 | SHELL = /bin/sh |
---|
| 49 | |
---|
| 50 | CC = @CC@ |
---|
| 51 | |
---|
| 52 | AS = @AS@ |
---|
| 53 | AR = @AR@ |
---|
| 54 | LD = @LD@ |
---|
| 55 | RANLIB = @RANLIB@ |
---|
| 56 | |
---|
| 57 | AR_FLAGS = qv |
---|
| 58 | BISON = bison |
---|
| 59 | MAKEINFO = makeinfo |
---|
| 60 | |
---|
| 61 | .NOEXPORT: |
---|
| 62 | MAKEOVERRIDES= |
---|
| 63 | |
---|
| 64 | TARGETDOC = ../../targetdep.tex |
---|
| 65 | |
---|
| 66 | CRT0 = crt0.o |
---|
| 67 | GDBLIB = m32r-lib.o |
---|
| 68 | GDBSTUB = m32r-stub.o |
---|
| 69 | EVASCRIPT = eva.ld |
---|
| 70 | STUBSCRIPT = eva-stub.ld |
---|
| 71 | |
---|
| 72 | GENERIC_LIBOBJS = \ |
---|
| 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 |
---|
| 75 | |
---|
| 76 | LIBOBJS = trap0.o $(GENERIC_LIBOBJS) |
---|
| 77 | LIBGLOSS = libgloss.a |
---|
| 78 | |
---|
| 79 | MONLIBOBJS = trapmon0.o $(GENERIC_LIBOBJS) |
---|
| 80 | MONLIBGLOSS = libmon.a |
---|
| 81 | MONSPECS = mon.specs |
---|
| 82 | |
---|
| 83 | # Host specific makefile fragment comes in here. |
---|
| 84 | @host_makefile_frag@ |
---|
| 85 | |
---|
| 86 | all: $(CRT0) $(LIBGLOSS) $(MONLIBGLOSS) $(GDBLIB) $(GDBSTUB) |
---|
| 87 | |
---|
| 88 | libgloss.a: $(LIBOBJS) |
---|
| 89 | $(AR) $(ARFLAGS) $@ $(LIBOBJS) |
---|
| 90 | $(RANLIB) $@ |
---|
| 91 | |
---|
| 92 | libmon.a: $(MONLIBOBJS) |
---|
| 93 | $(AR) $(ARFLAGS) $@ $(MONLIBOBJS) |
---|
| 94 | $(RANLIB) $@ |
---|
| 95 | |
---|
| 96 | install: |
---|
| 97 | mkdir -p $(DESTDIR)$(tooldir)/lib${MULTISUBDIR} |
---|
| 98 | $(INSTALL_DATA) $(CRT0) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(CRT0) |
---|
| 99 | $(INSTALL_DATA) $(LIBGLOSS) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(LIBGLOSS) |
---|
| 100 | $(INSTALL_DATA) $(MONLIBGLOSS) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(MONLIBGLOSS) |
---|
| 101 | $(INSTALL_DATA) $(GDBLIB) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(GDBLIB) |
---|
| 102 | $(INSTALL_DATA) $(GDBSTUB) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(GDBSTUB) |
---|
| 103 | $(INSTALL_DATA) $(srcdir)/$(EVASCRIPT) $(DESTDIR)$(tooldir)/lib/$(EVASCRIPT) |
---|
| 104 | $(INSTALL_DATA) $(srcdir)/$(STUBSCRIPT) $(DESTDIR)$(tooldir)/lib/$(STUBSCRIPT) |
---|
| 105 | $(INSTALL_DATA) $(srcdir)/$(MONSPECS) $(DESTDIR)$(tooldir)/lib/$(MONSPECS) |
---|
| 106 | |
---|
| 107 | clean mostlyclean: |
---|
| 108 | rm -f *~ *.[oa] |
---|
| 109 | |
---|
| 110 | distclean maintainer-clean realclean: clean |
---|
| 111 | rm -f Makefile config.status |
---|
| 112 | |
---|
| 113 | info doc: |
---|
| 114 | install-info: |
---|
| 115 | clean-info: |
---|
| 116 | |
---|
| 117 | Makefile: Makefile.in config.status @host_makefile_frag_path@ |
---|
| 118 | $(SHELL) config.status |
---|
| 119 | |
---|
| 120 | config.status: configure |
---|
| 121 | $(SHELL) config.status --recheck |
---|
| 122 | |
---|
| 123 | # to support SunOS VPATH |
---|
| 124 | crt0.o: crt0.S |
---|
| 125 | m32r-lib.o: m32r-lib.c |
---|
| 126 | m32r-stub.o: m32r-stub.c |
---|
| 127 | chmod.o: chmod.c |
---|
| 128 | close.o: close.c |
---|
| 129 | exit.o: exit.c |
---|
| 130 | fstat.o: fstat.c |
---|
| 131 | getpid.o: getpid.c |
---|
| 132 | isatty.o: isatty.c |
---|
| 133 | kill.o: kill.c |
---|
| 134 | lseek.o: lseek.c |
---|
| 135 | open.o: open.c |
---|
| 136 | raise.o: raise.c |
---|
| 137 | read.o: read.c |
---|
| 138 | sbrk.o: sbrk.c |
---|
| 139 | stat.o: stat.c |
---|
| 140 | unlink.o: unlink.c |
---|
| 141 | utime.o: utime.c |
---|
| 142 | write.o: write.c |
---|
| 143 | trap0.o: trap0.S |
---|
| 144 | trapmon0.o: trapmon0.c |
---|