source: trunk/libs/newlib/src/libgloss/libnosys/Makefile.in @ 477

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

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

File size: 3.0 KB
Line 
1# Copyright (c) 1998 Cygnus Support
2#
3# The authors hereby grant permission to use, copy, modify, distribute,
4# and license this software and its documentation for any purpose, provided
5# that existing copyright notices are retained in all copies and that this
6# notice is included verbatim in any distributions. No written agreement,
7# license, or royalty fee is required for any of the authorized uses.
8# Modifications to this software may be copyrighted by their authors
9# and need not follow the licensing terms described here, provided that
10# the new terms are clearly indicated on the first page of each file where
11# they apply.
12
13DESTDIR =
14VPATH = @srcdir@
15srcdir = @srcdir@
16objdir = .
17srcroot = $(srcdir)/../..
18objroot = $(objdir)/../..
19
20prefix = @prefix@
21exec_prefix = @exec_prefix@
22
23host_alias = @host_alias@
24target_alias = @target_alias@
25program_transform_name = @program_transform_name@
26
27bindir = @bindir@
28libdir = @libdir@
29tooldir = $(exec_prefix)/$(target_alias)
30
31# Multilib support variables.
32# TOP is used instead of MULTI{BUILD,SRC}TOP.
33MULTIDIRS =
34MULTISUBDIR =
35MULTIDO = true
36MULTICLEAN = true
37
38INSTALL = @INSTALL@
39INSTALL_PROGRAM = @INSTALL_PROGRAM@
40INSTALL_DATA = @INSTALL_DATA@
41
42SHELL = /bin/sh
43
44CC = @CC@
45
46#AS = @AS@
47AS = `if [ -f ${objroot}/../gas/as-new ] ; \
48        then echo ${objroot}/../gas/as-new ; \
49        else echo as ; fi`
50
51AR = @AR@
52
53#LD = @LD@
54LD = `if [ -f ${objroot}/../ld/ld-new ] ; \
55        then echo ${objroot}/../ld/ld-new ; \
56        else echo ld ; fi`
57
58RANLIB = @RANLIB@
59
60OBJDUMP = `if [ -f ${objroot}/../binutils/objdump ] ; \
61        then echo ${objroot}/../binutils/objdump ; \
62        else t='$(program_transform_name)'; echo objdump | sed -e $$t ; fi`
63OBJCOPY = `if [ -f ${objroot}/../binutils/objcopy ] ; \
64        then echo ${objroot}/../binutils/objcopy ; \
65        else t='$(program_transform_name)'; echo objcopy | sed -e $$t ; fi`
66
67# object files needed
68OBJS = chown.o close.o environ.o errno.o execve.o fork.o fstat.o \
69        getpid.o gettod.o isatty.o kill.o link.o lseek.o open.o \
70        read.o readlink.o sbrk.o stat.o symlink.o times.o unlink.o \
71        wait.o write.o _exit.o
72
73# Object files specific to particular targets.
74EVALOBJS = ${OBJS}
75
76GCC_LDFLAGS = `if [ -d ${objroot}/../gcc ] ; \
77        then echo -L${objroot}/../gcc ; fi`
78
79OUTPUTS = libnosys.a
80SPECS = ${srcdir}/nosys.specs
81
82# Host specific makefile fragment comes in here.
83@host_makefile_frag@
84
85all: ${OUTPUTS}
86
87#
88# here's where we build the library for each target
89#
90
91libnosys.a: $(EVALOBJS)
92        ${AR} ${ARFLAGS} $@ $(EVALOBJS)
93        ${RANLIB} $@
94
95doc:   
96
97clean mostlyclean:
98        rm -f $(OUTPUTS) *.i *~ *.o *-test *.srec *.dis *.map *.x
99
100distclean maintainer-clean realclean: clean
101        rm -f Makefile config.status $(OUTPUTS)
102
103.PHONY: install info install-info clean-info
104install:
105        @for outputs in ${OUTPUTS} ${SPECS}; do\
106         mkdir -p $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}; \
107         $(INSTALL_DATA) $${outputs} $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}; \
108        done
109
110info:
111install-info:
112clean-info:
113
114Makefile: Makefile.in config.status @host_makefile_frag_path@
115        $(SHELL) config.status
116
117config.status: configure
118        $(SHELL) config.status --recheck
Note: See TracBrowser for help on using the repository browser.