OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib/] [newlib/] [libc/] [Makefile.am] - Blame information for rev 1782

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 56 joel
## Process this file with automake to generate Makefile.in
2
 
3
AUTOMAKE_OPTIONS = cygnus
4
 
5
if HAVE_POSIX_DIR
6
POSIX_SUBDIR = posix
7
endif
8
 
9
if HAVE_SIGNAL_DIR
10
SIGNAL_SUBDIR = signal
11
endif
12
 
13
if HAVE_SYSCALL_DIR
14
SYSCALLS_SUBDIR = syscalls
15
endif
16
 
17
if HAVE_UNIX_DIR
18
UNIX_SUBDIR = unix
19
endif
20
 
21
# The order of SUBDIRS is important for the integrated documentation.
22
# Do not change the order without considering the doc impact.
23
SUBDIRS = stdlib ctype stdio string $(SIGNAL_SUBDIR) time locale sys reent \
24
        errno misc machine $(UNIX_SUBDIR) $(POSIX_SUBDIR) $(SYSCALLS_SUBDIR) .
25
 
26
noinst_LIBRARIES = libc.a
27
noinst_DATA = $(CRT0)
28
 
29
SUBLIBS = \
30
        stdlib/lib.a \
31
        ctype/lib.a \
32
        stdio/lib.a \
33
        string/lib.a \
34
        $(LIBC_SIGNAL_LIB) \
35
        time/lib.a \
36
        locale/lib.a \
37
        $(LIBC_SYS_LIB) \
38
        reent/lib.a \
39
        errno/lib.a \
40
        misc/lib.a \
41
        $(LIBC_MACHINE_LIB) \
42
        $(LIBC_UNIX_LIB) \
43
        $(LIBC_POSIX_LIB) \
44
        $(LIBC_SYSCALL_LIB)
45
 
46
libc.a: $(SUBLIBS)
47
        rm -f $@
48
        rm -rf tmp
49
        mkdir tmp
50
        cd tmp; \
51
         for i in $(SUBLIBS); do \
52
           $(AR) x ../$$i; \
53
         done; \
54
        $(AR) $(AR_FLAGS) ../$@ *.o
55
        $(RANLIB) $@
56
        rm -rf tmp
57
 
58
$(SUBLIBS): ; @true
59
 
60
crt0.o: sys/crt0.o
61
        rm -f $@
62
        ln sys/crt0.o $@ >/dev/null 2>/dev/null || cp sys/crt0.o $@
63
 
64
sys/crt0.o: ; @true
65
 
66
info_TEXINFOS = libc.texinfo
67
 
68
# This is a list of the stmp-def files in each subdirectory which
69
# builds .def files.  We don't list subdirectories which don't build
70
# .def files; if the list of subdirectories changes, we must change
71
# this as well.
72
SUBDEFS = \
73
        stdlib/stmp-def \
74
        ctype/stmp-def \
75
        stdio/stmp-def \
76
        string/stmp-def \
77
        $(LIBC_SIGNAL_DEF) \
78
        time/stmp-def \
79
        locale/stmp-def \
80
        reent/stmp-def \
81
        misc/stmp-def
82
 
83
libc.info: sigset.texi targetdep.tex $(SUBDEFS)
84
 
85
stmp-sigset: config.status
86
        if test -n "$(LIBC_SIGNAL_LIB)"; then \
87
          echo "@set SIGNALS" >tmp.texi; \
88
        else \
89
          echo "@clear SIGNALS" >tmp.texi; \
90
        fi
91
        $(SHELL) $(newlib_basedir)/../move-if-change tmp.texi sigset.texi
92
        touch $@
93
 
94
sigset.texi: stmp-sigset ; @true
95
 
96
stmp-targetdep: force
97
        rm -f tmp.texi
98
        targetdoc=`pwd`/tmp.texi; \
99
        for d in $(SUBDIRS); do \
100
          if test "$$d" != "."; then \
101
            (cd $$d && $(MAKE) TARGETDOC=$${targetdoc} doc) || exit 1; \
102
          fi; \
103
        done
104
        cat $(srcdir)/sys.tex >>tmp.texi
105
        $(SHELL) $(newlib_basedir)/../move-if-change tmp.texi targetdep.tex
106
        touch $@
107
 
108
targetdep.tex: stmp-targetdep ; @true
109
 
110
$(SUBDEFS): stmp-targetdep ; @true
111
 
112
.PHONY: force
113
force:
114
 
115
CLEANFILES = crt0.o \
116
        sigset.texi stmp-sigset tmp.texi targetdep.tex stmp-targetdep
117
 
118
ACLOCAL_AMFLAGS = -I ..
119
CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.