[444] | 1 | # Makefile for libgloss/nds32 |
---|
| 2 | # Copyright (c) 1996, 1998 Cygnus Support. 2012 Andes Porting. |
---|
| 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 | CRT1 = crt1.o |
---|
| 68 | |
---|
| 69 | |
---|
| 70 | |
---|
| 71 | SYSCALLS1 = _exit.o _open.o _close.o _read.o _write.o |
---|
| 72 | SYSCALLS2 = _lseek.o _unlink.o _getpid.o _kill.o _fstat.o |
---|
| 73 | SYSCALLS3 = _argvlen.o _argv.o _chdir.o _stat.o _chmod.o |
---|
| 74 | SYSCALLS4 = _utime.o _time.o _gettimeofday.o _times.o _link.o |
---|
| 75 | SYSCALLS5 = _rename.o _isatty.o _system.o _sbrk.o syscall_error_handler.o |
---|
| 76 | SYSCALLS = $(SYSCALLS1) $(SYSCALLS2) $(SYSCALLS3) $(SYSCALLS4) $(SYSCALLS5) |
---|
| 77 | GENERIC_LIBOBJS = |
---|
| 78 | |
---|
| 79 | LIBOBJS = $(SYSCALLS) $(GENERIC_LIBOBJS) |
---|
| 80 | LIBGLOSS = libgloss.a |
---|
| 81 | |
---|
| 82 | # Host specific makefile fragment comes in here. |
---|
| 83 | @host_makefile_frag@ |
---|
| 84 | |
---|
| 85 | all: $(CRT0) $(CRT1) $(LIBGLOSS) |
---|
| 86 | |
---|
| 87 | libgloss.a: $(LIBOBJS) |
---|
| 88 | $(AR) $(ARFLAGS) $@ $(LIBOBJS) |
---|
| 89 | $(RANLIB) $@ |
---|
| 90 | |
---|
| 91 | install: |
---|
| 92 | mkdir -p $(DESTDIR)$(tooldir)/lib${MULTISUBDIR} |
---|
| 93 | $(INSTALL_DATA) $(CRT0) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(CRT0) |
---|
| 94 | $(INSTALL_DATA) $(CRT1) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(CRT1) |
---|
| 95 | $(INSTALL_DATA) $(LIBGLOSS) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(LIBGLOSS) |
---|
| 96 | |
---|
| 97 | |
---|
| 98 | |
---|
| 99 | |
---|
| 100 | |
---|
| 101 | |
---|
| 102 | |
---|
| 103 | clean mostlyclean: |
---|
| 104 | rm -f *~ *.[oa] |
---|
| 105 | |
---|
| 106 | distclean maintainer-clean realclean: clean |
---|
| 107 | rm -f Makefile config.status |
---|
| 108 | |
---|
| 109 | info doc: |
---|
| 110 | install-info: |
---|
| 111 | clean-info: |
---|
| 112 | |
---|
| 113 | Makefile: Makefile.in config.status @host_makefile_frag_path@ |
---|
| 114 | $(SHELL) config.status |
---|
| 115 | |
---|
| 116 | config.status: configure |
---|
| 117 | $(SHELL) config.status --recheck |
---|
| 118 | |
---|
| 119 | # to support SunOS VPATH |
---|
| 120 | crt0.o: crt0.S |
---|
| 121 | crt1.o: crt1.S |
---|
| 122 | _exit.o: _exit.S |
---|
| 123 | _open.o: _open.S |
---|
| 124 | _close.o: _close.S |
---|
| 125 | _read.o: _read.S |
---|
| 126 | _write.o: _write.S |
---|
| 127 | _lseek.o: _lseek.S |
---|
| 128 | _unlink.o: _unlink.S |
---|
| 129 | _getpid.o: _getpid.S |
---|
| 130 | _kill.o: _kill.S |
---|
| 131 | _fstat.o: _fstat.S |
---|
| 132 | _argvlen.o: _argvlen.S |
---|
| 133 | _argv.o: _argv.S |
---|
| 134 | _chdir.o: _chdir.S |
---|
| 135 | _stat.o: _stat.S |
---|
| 136 | _chmod.o: _chmod.S |
---|
| 137 | _utime.o: _utime.S |
---|
| 138 | _time.o: _time.S |
---|
| 139 | _gettimeofday.o: _gettimeofday.S |
---|
| 140 | _times.o: _times.S |
---|
| 141 | _link.o: _link.S |
---|
| 142 | _rename.o: _rename.S |
---|
| 143 | _isatty.o: _isatty.S |
---|
| 144 | _system.o: _system.S |
---|
| 145 | _sbrk.o: _sbrk.S |
---|
| 146 | syscall_error_handler.o: syscall_error_handler.S |
---|