source: trunk/libs/newlib/src/libgloss/m32r/Makefile.in @ 612

Last change on this file since 612 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

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