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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib/] [newlib/] [libc/] [machine/] [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/libc/machine.
2
# Copyright (c) 1994 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
srcdir = .
18
 
19
SHELL = /bin/sh
20
 
21
AR_FLAGS = qv
22
BISON = bison
23
MAKEINFO = makeinfo
24
 
25
TOP = ../..
26
SRCTOP = ../..
27
TARGETDOC = `echo $${rootpre}../targetdep.tex`
28
 
29
.NOEXPORT:
30
MAKEOVERRIDES=
31
 
32
machine_dir =
33
 
34
#### Host, target, and site specific Makefile fragments come in here.
35
###
36
 
37
# These are roughly topologically sorted in order to make porting more
38
# streamlined.
39
FLAGS_TO_PASS = \
40
        "CC=$(CC)" \
41
        "CFLAGS=$(CFLAGS)" \
42
        "AR=$(AR)" \
43
        "AR_FLAGS=$(AR_FLAGS)" \
44
        "AS=$(AS)" \
45
        "CROSS_CFLAGS=$(CROSS_CFLAGS)" \
46
        "TARGET_CFLAGS=$(TARGET_CFLAGS)" \
47
        "TARGET_ASFLAGS=$(TARGET_ASFLAGS)" \
48
        "INCLUDES=$(INCLUDES)"
49
 
50
all: lib.a
51
lib.a: $(machine_dir)/lib.a
52
        rm -f $@
53
        ln $(machine_dir)/lib.a $@ >/dev/null 2>/dev/null || \
54
         cp $(machine_dir)/lib.a $@
55
 
56
$(machine_dir)/lib.a: force
57
        @rootpre=`pwd`/; export rootpre; \
58
        srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
59
        (cd $(machine_dir); $(MAKE) $(FLAGS_TO_PASS) all) || exit 1
60
 
61
clean-here:
62
        rm -rf lib.a
63
 
64
clean mostlyclean: clean-here
65
        @rootpre=`pwd`/; export rootpre; \
66
        srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
67
        cd $(machine_dir); $(MAKE) $(FLAGS_TO_PASS) $@
68
 
69
distclean maintainer-clean realclean: clean-here
70
        @rootpre=`pwd`/; export rootpre; \
71
        srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
72
        cd $(machine_dir); $(MAKE) $(FLAGS_TO_PASS) $@
73
        rm -f Makefile config.status
74
 
75
doc:
76
        @rootpre=`pwd`/; export rootpre; \
77
        srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
78
        cd $(machine_dir); $(MAKE) "CHEW=$(CHEW)" "TARGETDOC=$(TARGETDOC)" doc
79
 
80
force:
81
 
82
Makefile: Makefile.in $(host_makefile_frag) $(target_makefile_frag)
83
        $(SHELL) config.status

powered by: WebSVN 2.1.0

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