forked from vitasdk/newlib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ranjith Kumaran
committed
Mar 17, 2000
1 parent
fae4c29
commit 0326185
Showing
420 changed files
with
66,815 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,185 @@ | ||
# Top level makefile for libgloss | ||
# | ||
# Copyright (c) 1995, 1996 Cygnus Support | ||
# | ||
# The authors hereby grant permission to use, copy, modify, distribute, | ||
# and license this software and its documentation for any purpose, provided | ||
# that existing copyright notices are retained in all copies and that this | ||
# notice is included verbatim in any distributions. No written agreement, | ||
# license, or royalty fee is required for any of the authorized uses. | ||
# Modifications to this software may be copyrighted by their authors | ||
# and need not follow the licensing terms described here, provided that | ||
# the new terms are clearly indicated on the first page of each file where | ||
# they apply. | ||
# | ||
|
||
VPATH = @srcdir@ | ||
srcdir = @srcdir@ | ||
objdir = . | ||
srcroot = $(srcdir)/../.. | ||
objroot = $(objdir)/../.. | ||
|
||
prefix = @prefix@ | ||
exec_prefix = @exec_prefix@ | ||
|
||
host_alias = @host_alias@ | ||
target_alias = @target_alias@ | ||
|
||
bindir = @bindir@ | ||
libdir = @libdir@ | ||
tooldir = $(exec_prefix)/$(target_alias) | ||
|
||
TOP = . | ||
SRCTOP = . | ||
|
||
# Multilib support variables. | ||
# TOP is used instead of MULTI{BUILD,SRC}TOP. | ||
MULTISRCTOP = | ||
MULTIBUILDTOP = | ||
MULTIDIRS = | ||
MULTISUBDIR = | ||
MULTIDO = true | ||
MULTICLEAN = true | ||
|
||
INSTALL = @INSTALL@ | ||
INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
INSTALL_DATA = @INSTALL_DATA@ | ||
|
||
SHELL = /bin/sh | ||
|
||
CC = @CC@ | ||
|
||
AS = @AS@ | ||
AR = @AR@ | ||
LD = @LD@ | ||
RANLIB = @RANLIB@ | ||
|
||
AR_FLAGS = qv | ||
BISON = bison | ||
MAKEINFO = makeinfo | ||
|
||
SUBDIRS = @subdirs@ | ||
|
||
.NOEXPORT: | ||
MAKEOVERRIDES= | ||
|
||
# Host specific makefile fragment comes in here. | ||
@host_makefile_frag@ | ||
|
||
# These are roughly topologically sorted in order to make porting more | ||
# streamlined. | ||
FLAGS_TO_PASS = \ | ||
"CC=$(CC)" \ | ||
"CFLAGS=$(CFLAGS)" \ | ||
"AR=$(AR)" \ | ||
"RANLIB=$(RANLIB)" \ | ||
"AR_FLAGS=$(AR_FLAGS)" \ | ||
"MAKEINFO=$(MAKEINFO)" \ | ||
"AS=$(AS)" \ | ||
"LD=$(LD)" \ | ||
"CROSS_CFLAGS=$(CROSS_CFLAGS)" \ | ||
"TARGET_CFLAGS=$(TARGET_CFLAGS)" \ | ||
"exec_prefix=$(exec_prefix)" \ | ||
"prefix=$(prefix)" \ | ||
"tooldir=$(tooldir)" \ | ||
"INSTALL=$(INSTALL)" \ | ||
"INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ | ||
"INSTALL_DATA=$(INSTALL_DATA)" | ||
|
||
all: stmp-bsp force | ||
@rootpre=`pwd`/; export rootpre; \ | ||
srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \ | ||
$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=all | ||
|
||
stmp-bsp: force | ||
@rootpre=`pwd`/; export rootpre; \ | ||
srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \ | ||
for dir in .. ${SUBDIRS}; do \ | ||
if [ x$$dir != x.. ]; then \ | ||
if [ -d $$dir ]; then \ | ||
(cd $$dir; $(MAKE) $(FLAGS_TO_PASS)); \ | ||
else true; fi; \ | ||
else true; fi; \ | ||
done | ||
|
||
install: force | ||
@rootpre=`pwd`/; export rootpre; \ | ||
srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \ | ||
for dir in .. ${SUBDIRS}; do \ | ||
if [ x$$dir != x.. ]; then \ | ||
if [ -d $$dir ]; then \ | ||
(cd $$dir; $(MAKE) $(FLAGS_TO_PASS) install); \ | ||
else true; fi; \ | ||
else true; fi; \ | ||
done | ||
@rootpre=`pwd`/; export rootpre; \ | ||
srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \ | ||
$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install | ||
|
||
test: force | ||
@rootpre=`pwd`/; export rootpre; \ | ||
srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \ | ||
for dir in .. ${SUBDIRS}; do \ | ||
if [ x$$dir != x.. ]; then \ | ||
if [ -d $$dir ]; then \ | ||
(cd $$dir; $(MAKE) $(FLAGS_TO_PASS) test); \ | ||
else true; fi; \ | ||
else true; fi; \ | ||
done | ||
@rootpre=`pwd`/; export rootpre; \ | ||
srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \ | ||
$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=test | ||
|
||
clean-here: | ||
-rm -f *~ core *.o a.out xgdb *.x | ||
|
||
clean mostlyclean: clean-here | ||
rootpre=`pwd`/; export rootpre; \ | ||
srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \ | ||
$(MAKE) DO=$@ DODIRS="$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do; \ | ||
$(MULTICLEAN) multi-clean DO=$@ | ||
|
||
distclean maintainer-clean realclean: clean-here | ||
-rm -f Makefile config.cache config.log config.status | ||
-rm -f *-init.exp site.* | ||
-rm -fr *.log summary detail *.sum | ||
rootpre=`pwd`/; export rootpre; \ | ||
srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \ | ||
$(MAKE) DO=$@ DODIRS="$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do; \ | ||
$(MULTICLEAN) multi-clean DO=$@ | ||
|
||
.PHONY: info install-info clean-info | ||
subdir_do: | ||
@rootpre=`pwd`/; export rootpre; \ | ||
srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \ | ||
for i in .. $(DODIRS); do \ | ||
if [ x$$i != x.. ]; then \ | ||
if [ -f ./$$i/Makefile ]; then \ | ||
if (cd ./$$i; $(MAKE) $(FLAGS_TO_PASS) $(DO)); then \ | ||
true; \ | ||
else \ | ||
exit 1; \ | ||
fi; \ | ||
else true; fi; \ | ||
else true; fi; \ | ||
done | ||
|
||
info dvi docs: | ||
rootpre=`pwd`/; export rootpre; \ | ||
srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \ | ||
$(MAKE) DO=$@ DODIRS=doc $(FLAGS_TO_PASS) subdir_do | ||
|
||
install-info: | ||
rootpre=`pwd`/; export rootpre; \ | ||
srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \ | ||
$(MAKE) DO=$@ DODIRS=doc $(FLAGS_TO_PASS) subdir_do | ||
|
||
clean-info: | ||
|
||
force: | ||
|
||
Makefile: Makefile.in config.status @host_makefile_frag_path@ | ||
$(SHELL) config.status | ||
|
||
config.status: configure | ||
$(SHELL) config.status --recheck |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
sparc - Fujitsu Sparclite board. Works on the ex930, ex931, ex933 | ||
hp74x - Hewlett Packard HP742 board. Also some support for the hp743. | ||
m68k - Motorola MVME135 and IDP board. For CPU32 systems. | ||
pa - WinBond and Oki boards with a PA. | ||
mips - R3000 support. Array Tech LSI33k based RAID disk controller. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* close.c -- close a file descriptor. | ||
* | ||
* Copyright (c) 1995 Cygnus Support | ||
* | ||
* The authors hereby grant permission to use, copy, modify, distribute, | ||
* and license this software and its documentation for any purpose, provided | ||
* that existing copyright notices are retained in all copies and that this | ||
* notice is included verbatim in any distributions. No written agreement, | ||
* license, or royalty fee is required for any of the authorized uses. | ||
* Modifications to this software may be copyrighted by their authors | ||
* and need not follow the licensing terms described here, provided that | ||
* the new terms are clearly indicated on the first page of each file where | ||
* they apply. | ||
*/ | ||
#include "glue.h" | ||
|
||
/* | ||
* close -- We don't need to do anything, but pretend we did. | ||
*/ | ||
int | ||
_DEFUN (close ,(fd), | ||
int fd) | ||
{ | ||
return (0); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
NEWLIB_CFLAGS = `if [ -d ${objroot}/newlib ]; then echo -I${objroot}/newlib/targ-include -I${srcroot}/newlib/libc/include; fi` | ||
NEWLIB_LDFLAGS = `if [ -d ${objroot}/newlib ]; then echo -B${objroot}/newlib/ -L${objroot}/newlib/; fi` | ||
|
||
INCLUDES = -I. -I$(srcdir)/.. | ||
# Note that when building the library, ${MULTILIB} is not the way multilib | ||
# options are passed; they're passed in $(CFLAGS). | ||
CFLAGS_FOR_TARGET = -O2 -g ${MULTILIB} ${INCLUDES} ${NEWLIB_CFLAGS} | ||
LDFLAGS_FOR_TARGET = ${MULTILIB} ${NEWLIB_LDFLAGS} | ||
AR_FLAGS = qc | ||
|
||
.c.o: | ||
$(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $< | ||
|
||
.C.o: | ||
$(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $< | ||
.s.o: | ||
$(AS) $(ASFLAGS_FOR_TARGET) $(INCLUDES) $(ASFLAGS) -o $*.o $< | ||
|
||
# | ||
# GCC knows to run the preprocessor on .S files before it assembles them. | ||
# | ||
.S.o: | ||
$(CC) $(CFLAGS_FOR_TARGET) $(INCLUDES) $(CFLAGS) -c $< | ||
|
||
# | ||
# this is a bogus target that'll produce an assembler from the | ||
# C source with the right compiler options. this is so we can | ||
# track down code generation or debug symbol bugs. | ||
# | ||
.c.s: | ||
$(CC) $(CFLAGS_FOR_TARGET) -S $(INCLUDES) $(CFLAGS) $< |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# | ||
# these are the minimum required stubs to support newlib | ||
# | ||
close.o: ${srcdir}/../close.c | ||
$(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $? | ||
fstat.o: ${srcdir}/../fstat.c | ||
$(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $? | ||
getpid.o: ${srcdir}/../getpid.c | ||
$(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $? | ||
isatty.o: ${srcdir}/../isatty.c | ||
$(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $? | ||
kill.o: ${srcdir}/../kill.c | ||
$(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $? | ||
lseek.o: ${srcdir}/../lseek.c | ||
$(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $? | ||
open.o: ${srcdir}/../open.c | ||
$(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $? | ||
print.o: ${srcdir}/../print.c | ||
$(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $? | ||
putnum.o: ${srcdir}/../putnum.c | ||
$(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $? | ||
read.o: ${srcdir}/../read.c | ||
$(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $? | ||
sbrk.o: ${srcdir}/../sbrk.c | ||
$(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $? | ||
stat.o: ${srcdir}/../stat.c | ||
$(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $? | ||
unlink.o: ${srcdir}/../unlink.c | ||
$(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $? | ||
write.o: ${srcdir}/../write.c | ||
$(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $? | ||
debug.o: ${srcdir}/../debug.c ${srcdir}/../debug.h | ||
$(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) ${srcdir}/../debug.c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
NEWLIB_CFLAGS = `if [ -d ${objroot}/newlib ]; then echo -I${objroot}/newlib/targ-include -I${srcroot}/newlib/libc/include; fi` | ||
NEWLIB_LDFLAGS = `if [ -d ${objroot}/newlib ]; then echo -B${objroot}/newlib/; fi` | ||
|
||
INCLUDES = -I. | ||
# Note that when building the library, ${MULTILIB} is not the way multilib | ||
# options are passed; they're passed in $(CFLAGS). | ||
CFLAGS_FOR_TARGET = -O2 -g ${MULTILIB} ${INCLUDES} ${NEWLIB_CFLAGS} | ||
LDFLAGS_FOR_TARGET = ${MULTILIB} ${NEWLIB_LDFLAGS} | ||
ARFLAGS_FOR_TARGET = qc | ||
|
||
# find the tools used to build libgloss. As this is a DOS build in a | ||
# 3way cross, we have to specify the name as it lives prebuilt in Unix | ||
# land. The freshly built tools are for the wrong architecture. | ||
CC_FOR_TARGET = `t='$(program_transform_name)'; echo gcc | sed -e $$t` | ||
|
||
AS_FOR_TARGET = `t='$(program_transform_name)'; echo as | sed -e $$t` | ||
|
||
AR_FOR_TARGET = `t='$(program_transform_name)'; echo ar | sed -e $$t` | ||
|
||
LD_FOR_TARGET = `t='$(program_transform_name)'; echo ld | sed -e $$t` | ||
|
||
RANLIB_FOR_TARGET = `t='$(program_transform_name)'; echo ranlib | sed -e $$t` | ||
|
||
OBJDUMP_FOR_TARGET = `t='$(program_transform_name)'; echo objdump | sed -e $$t` | ||
|
||
OBJCOPY_FOR_TARGET = `t='$(program_transform_name)'; echo objcopy | sed -e $$t` | ||
|
||
|
||
# Using CFLAGS here may be confusing if the user has given a special | ||
# CFLAGS intended for use on the host, since we are passing it to the | ||
# cross-compiler; I'm not sure what to do about this. INCLUDES is | ||
# from the top level Makefile. | ||
# FIXME: But isn't CFLAGS what is used to pass multilib options when | ||
# building the library? | ||
|
||
.c.o: | ||
rootme=`pwd` ; \ | ||
echo CC_FOR_TARGET is ${CC_FOR_TARGET} ; \ | ||
$(CC_FOR_TARGET) $(CFLAGS_FOR_TARGET) $(INCLUDES) -c $< | ||
|
||
.c.s: | ||
rootme=`pwd` ; \ | ||
echo CC_FOR_TARGET is ${CC_FOR_TARGET} ; \ | ||
$(CC_FOR_TARGET) $(CFLAGS_FOR_TARGET) -S $(INCLUDES) $< | ||
|
||
.S.o: | ||
rootme=`pwd` ; \ | ||
echo CC_FOR_TARGET is ${CC_FOR_TARGET} ; \ | ||
$(CC_FOR_TARGET) $(CFLAGS_FOR_TARGET) $(INCLUDES) -c $< | ||
|
||
.s.o: | ||
rootme=`pwd` ; \ | ||
echo AS_FOR_TARGET is ${AS_FOR_TARGET} ; \ | ||
$(AS_FOR_TARGET) $(ASFLAGS_FOR_TARGET) $(INCLUDES) -o $*.o $< | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# | ||
# These are the minimum required stubs to support newlib | ||
# for embedded MIPS targets. Note that although read.o and write.o | ||
# are mentioned here, they are not used for all targets. | ||
# | ||
close.o: ${srcdir}/../close.c | ||
$(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $? | ||
fstat.o: ${srcdir}/../fstat.c | ||
$(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $? | ||
getpid.o: ${srcdir}/../getpid.c | ||
$(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $? | ||
isatty.o: ${srcdir}/../isatty.c | ||
$(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $? | ||
kill.o: ${srcdir}/../kill.c | ||
$(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $? | ||
lseek.o: ${srcdir}/../lseek.c | ||
$(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $? | ||
open.o: ${srcdir}/../open.c | ||
$(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $? | ||
print.o: ${srcdir}/../print.c | ||
$(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $? | ||
putnum.o: ${srcdir}/../putnum.c | ||
$(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $? | ||
read.o: ${srcdir}/../read.c | ||
$(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $? | ||
stat.o: ${srcdir}/../stat.c | ||
$(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $? | ||
unlink.o: ${srcdir}/../unlink.c | ||
$(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $? | ||
write.o: ${srcdir}/../write.c | ||
$(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Dummy target-specific Makefile fragment for MN10200. We can't | ||
# use default.mt because it refers to generic source files whose | ||
# names conflict with the MN10200-specific sources. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Dummy target-specific Makefile fragment for MN10300. We can't | ||
# use default.mt because it refers to generic source files whose | ||
# names conflict with the MN10300-specific sources. |
Oops, something went wrong.