URL
https://opencores.org/ocsvn/or1k_old/or1k_old/trunk
Subversion Repositories or1k_old
[/] [or1k_old/] [trunk/] [newlib/] [newlib/] [libc/] [sys/] [Makefile.in] - Rev 39
Go to most recent revision | Compare with Previous | Blame | View Log
# Makefile for newlib/libc/sys.
# Copyright (c) 1994 Cygnus Support.
# All rights reserved.
#
# Redistribution and use in source and binary forms are permitted
# provided that the above copyright notice and this paragraph are
# duplicated in all such forms and that any documentation,
# advertising materials, and other materials related to such
# distribution and use acknowledge that the software was developed
# at Cygnus Support, Inc. Cygnus Support, Inc. may not be used to
# endorse or promote products derived from this software without
# specific prior written permission.
# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
srcdir = .
SHELL = /bin/sh
AR_FLAGS = qv
BISON = bison
MAKEINFO = makeinfo
TOP = ../..
SRCTOP = ../..
TARGETDOC = ../targetdep.tex
.NOEXPORT:
MAKEOVERRIDES=
sys_dir =
#### Host, target, and site specific Makefile fragments come in here.
###
# These are roughly topologically sorted in order to make porting more
# streamlined.
FLAGS_TO_PASS = \
"CC=$(CC)" \
"CFLAGS=$(CFLAGS)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"AS=$(AS)" \
"DLLTOOL=$(DLLTOOL)" \
"CROSS_CFLAGS=$(CROSS_CFLAGS)" \
"TARGET_CFLAGS=$(TARGET_CFLAGS)" \
"TARGET_ASFLAGS=$(TARGET_ASFLAGS)" \
"INCLUDES=$(INCLUDES)"
all: subs lib.a crt0.o
lib.a: subs $(sys_dir)/lib.a
rm -f $@
ln $(sys_dir)/lib.a $@ >/dev/null 2>/dev/null \
|| cp $(sys_dir)/lib.a $@
crt0.o: subs $(sys_dir)/crt0.o
rm -f $@
ln $(sys_dir)/crt0.o $@ >/dev/null 2>/dev/null \
|| cp $(sys_dir)/crt0.o $@
subs:
@rootpre=`pwd`/; export rootpre; \
srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
cd $(sys_dir); $(MAKE) $(FLAGS_TO_PASS) all
clean-here:
rm -f crt0.o lib.a
clean mostlyclean: clean-here
@rootpre=`pwd`/; export rootpre; \
srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
cd $(sys_dir); $(MAKE) $(FLAGS_TO_PASS) $@
distclean maintainer-clean realclean: clean-here
@rootpre=`pwd`/; export rootpre; \
srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
cd $(sys_dir); $(MAKE) $(FLAGS_TO_PASS) $@
rm -f lib.a crt0.o Makefile config.status
doc:
Makefile: Makefile.in $(host_makefile_frag) $(target_makefile_frag)
$(SHELL) config.status
Go to most recent revision | Compare with Previous | Blame | View Log