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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib/] [newlib/] [libm/] [Makefile.in] - Blame information for rev 39

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

Line No. Rev Author Line
1 39 lampret
# Makefile for newlib/libm.
2
# Copyright (c) 1994, 1995, 1997 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
 
17
VERSION = 1.8.1
18
 
19
srcdir = .
20
 
21
prefix = /usr/local
22
 
23
exec_prefix = $(prefix)
24
bindir = $(exec_prefix)/bin
25
libdir = $(exec_prefix)/lib
26
 
27
datadir = $(prefix)/share
28
 
29
mandir = $(prefix)/man
30
man1dir = $(mandir)/man1
31
man2dir = $(mandir)/man2
32
man3dir = $(mandir)/man3
33
man4dir = $(mandir)/man4
34
man5dir = $(mandir)/man5
35
man6dir = $(mandir)/man6
36
man7dir = $(mandir)/man7
37
man8dir = $(mandir)/man8
38
man9dir = $(mandir)/man9
39
infodir = $(prefix)/info
40
includedir = $(prefix)/include
41
 
42
SHELL = /bin/sh
43
 
44
INSTALL = install -c
45
INSTALL_PROGRAM = $(INSTALL)
46
INSTALL_DATA = $(INSTALL)
47
 
48
AR_FLAGS = qv
49
BISON = bison
50
MAKEINFO = makeinfo
51
TEXI2DVI = texi2dvi
52
TEXIDIR=$(srcdir)/../../texinfo
53
SET_TEXINPUTS = TEXINPUTS=${TEXIDIR}:.:$(srcdir):$$TEXINPUTS
54
 
55
TOP = ..
56
SRCTOP = ..
57
TARGETDOC = `echo $${rootpre}./targetdep.tex`
58
 
59
.NOEXPORT:
60
MAKEOVERRIDES=
61
 
62
#### Host, target, and site specific Makefile fragments come in here.
63
###
64
 
65
# These are roughly topologically sorted in order to make porting more
66
# streamlined.
67
FLAGS_TO_PASS = \
68
        "CC=$(CC)" \
69
        "CFLAGS=$(CFLAGS)" \
70
        "BISON=$(BISON)" \
71
        "AR=$(AR)" \
72
        "AR_FLAGS=$(AR_FLAGS)" \
73
        "AS=$(AS)" \
74
        "CROSS_CFLAGS=$(CROSS_CFLAGS)" \
75
        "TARGET_CFLAGS=$(TARGET_CFLAGS)" \
76
        "INCLUDES=$(INCLUDES)" \
77
        "CHEW=$(CHEW)" \
78
        "TARGETDOC=$(TARGETDOC)"
79
 
80
SUBDIRS = math
81
SUBLIBS = \
82
        math/lib.a
83
 
84
all: libm.a
85
libm.a: $(SUBLIBS)
86
        rm -f $@
87
        rm -rf tmp
88
        mkdir tmp
89
        rootpre=`pwd`/; export rootpre; \
90
        srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre ; \
91
        cd tmp ; \
92
                for i in $(SUBLIBS) ; do \
93
                        $(AR) x ../$$i ; \
94
                done ; \
95
                $(AR) $(AR_FLAGS) ../$@ *.o
96
        $(RANLIB) $@
97
        rm -rf tmp
98
 
99
$(SUBLIBS): force
100
        @rootpre=`pwd`/; export rootpre; \
101
        srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
102
        (cd `echo $@ | sed -e 's:/[^/]*$$::'` ; \
103
                $(MAKE) $(FLAGS_TO_PASS) all) \
104
        || exit 1
105
 
106
.PHONY: subdir_do
107
subdir_do:
108
        @for i in $(DODIRS); do \
109
                if [ -f ./$$i/Makefile ] ; then \
110
                        echo "cd $$i; make $(DO)" ; \
111
                        (cd $$i ; $(MAKE) $(FLAGS_TO_PASS) $(DO)) || exit 1 ; \
112
                else true ; fi ; \
113
        done
114
 
115
clean-here:
116
        rm -f core *~ libm.a
117
        rm -f libm.cp libm.dvi targetdep.tex libm.log libm.cps
118
        rm -f libm.aux libm.toc libm.fn libm.vr libm.tp libm.ky
119
        rm -f libm.pg libm.fns libm.kys libm.pgs libm.tps libm.vrs
120
 
121
clean mostlyclean: clean-here
122
        @rootpre=`pwd`/; export rootpre; \
123
        srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
124
        $(MAKE) DO=$@ DODIRS="$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do
125
 
126
distclean maintainer-clean realclean: clean-here
127
        @rootpre=`pwd`/; export rootpre; \
128
        srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
129
        $(MAKE) DO=$@ DODIRS="$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do
130
        rm -f Makefile config.status
131
 
132
info:
133
        -rm -f targetdep.tex
134
        @rootpre=`pwd`/; export rootpre; \
135
        srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
136
        $(MAKE) $(FLAGS_TO_PASS) targetdep.tex
137
        $(MAKEINFO) -o libm.info $(srcdir)/libm.texinfo
138
 
139
targetdep.tex:
140
        touch targetdep.tex
141
        @rootpre=`pwd`/; export rootpre; \
142
        srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
143
        $(MAKE) DO=doc DODIRS="$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do
144
 
145
docs: dvi
146
 
147
dvi:
148
        -rm -f targetdep.tex
149
        @rootpre=`pwd`/; export rootpre; \
150
        srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
151
        $(MAKE) $(FLAGS_TO_PASS) targetdep.tex
152
        $(SET_TEXINPUTS) $(TEXI2DVI) $(srcdir)/libm.texinfo
153
 
154
install:
155
 
156
install-info:
157
        -for i in libm.info*; do \
158
            $(INSTALL_DATA) $$i $(infodir)/$$i; \
159
          done
160
 
161
force:
162
 
163
Makefile: Makefile.in $(host_makefile_frag) $(target_makefile_frag)
164
        $(SHELL) config.status

powered by: WebSVN 2.1.0

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