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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [newlib/] [newlib/] [libc/] [sys/] [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/sys.
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 = ../targetdep.tex
28
 
29
.NOEXPORT:
30
MAKEOVERRIDES=
31
 
32
sys_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
        "DLLTOOL=$(DLLTOOL)" \
46
        "CROSS_CFLAGS=$(CROSS_CFLAGS)" \
47
        "TARGET_CFLAGS=$(TARGET_CFLAGS)" \
48
        "TARGET_ASFLAGS=$(TARGET_ASFLAGS)" \
49
        "INCLUDES=$(INCLUDES)"
50
 
51
all: subs lib.a crt0.o
52
 
53
lib.a: subs $(sys_dir)/lib.a
54
        rm -f $@
55
        ln $(sys_dir)/lib.a $@ >/dev/null 2>/dev/null \
56
         || cp $(sys_dir)/lib.a $@
57
 
58
crt0.o: subs $(sys_dir)/crt0.o
59
        rm -f $@
60
        ln $(sys_dir)/crt0.o $@ >/dev/null 2>/dev/null \
61
         || cp $(sys_dir)/crt0.o $@
62
 
63
subs:
64
        @rootpre=`pwd`/; export rootpre; \
65
        srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
66
        cd $(sys_dir); $(MAKE) $(FLAGS_TO_PASS) all
67
 
68
clean-here:
69
        rm -f crt0.o lib.a
70
 
71
clean mostlyclean: clean-here
72
        @rootpre=`pwd`/; export rootpre; \
73
        srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
74
        cd $(sys_dir); $(MAKE) $(FLAGS_TO_PASS) $@
75
 
76
distclean maintainer-clean realclean: clean-here
77
        @rootpre=`pwd`/; export rootpre; \
78
        srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
79
        cd $(sys_dir); $(MAKE) $(FLAGS_TO_PASS) $@
80
        rm -f lib.a crt0.o Makefile config.status
81
 
82
doc:
83
 
84
Makefile: Makefile.in $(host_makefile_frag) $(target_makefile_frag)
85
        $(SHELL) config.status

powered by: WebSVN 2.1.0

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