source: trunk/libs/newlib/src/libgloss/nds32/Makefile.in @ 630

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

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

File size: 3.3 KB
Line 
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
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
67CRT1 = crt1.o
68
69
70
71SYSCALLS1 = _exit.o _open.o _close.o _read.o _write.o
72SYSCALLS2 = _lseek.o _unlink.o _getpid.o _kill.o _fstat.o
73SYSCALLS3 = _argvlen.o _argv.o _chdir.o _stat.o _chmod.o
74SYSCALLS4 = _utime.o _time.o _gettimeofday.o _times.o _link.o
75SYSCALLS5 = _rename.o _isatty.o _system.o _sbrk.o syscall_error_handler.o
76SYSCALLS  = $(SYSCALLS1) $(SYSCALLS2) $(SYSCALLS3) $(SYSCALLS4) $(SYSCALLS5)
77GENERIC_LIBOBJS =
78
79LIBOBJS =  $(SYSCALLS) $(GENERIC_LIBOBJS)
80LIBGLOSS = libgloss.a
81
82# Host specific makefile fragment comes in here.
83@host_makefile_frag@
84
85all: $(CRT0) $(CRT1) $(LIBGLOSS)
86
87libgloss.a: $(LIBOBJS)
88        $(AR) $(ARFLAGS) $@ $(LIBOBJS)
89        $(RANLIB) $@
90
91install:
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
103clean mostlyclean:
104        rm -f *~ *.[oa]
105
106distclean maintainer-clean realclean: clean
107        rm -f Makefile config.status
108
109info doc:
110install-info:
111clean-info:
112
113Makefile: Makefile.in config.status @host_makefile_frag_path@
114        $(SHELL) config.status
115
116config.status: configure
117        $(SHELL) config.status --recheck
118
119# to support SunOS VPATH
120crt0.o: crt0.S
121crt1.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
146syscall_error_handler.o: syscall_error_handler.S
Note: See TracBrowser for help on using the repository browser.