URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
[/] [or1k/] [trunk/] [newlib/] [newlib/] [host/] [any] - Rev 1775
Go to most recent revision | Compare with Previous | Blame | View Log
# These are set by configure.
program_transform_name=
# Find the tools used to build newlib.
# ${rootpre} should be set to the name of the top level newlib build directory
# followed by a '/'. Likewise with ${srcrootpre}. If ${rootpre} is not set,
# we use program_transform_name to guess the name of the program.
# Each Makefile must define $(TOP) and $(SRCTOP); they will usually be the
# same, but they are different when building multiple versions with
# different compilation flags: $(TOP) will typically contain extra ../'s.
CC = `if [ -f $${rootpre}$(TOP)/../../gcc/xgcc ] ; \
then echo $${rootpre}$(TOP)/../../gcc/xgcc -B$${rootpre}$(TOP)/../../gcc/ ; \
else t='$(program_transform_name)'; echo gcc | sed -e '' $$t ; fi`
AS = `if [ -f $${rootpre}$(TOP)/../../gas/as.new ] ; \
then echo $${rootpre}$(TOP)/../../gas/as.new ; \
else t='$(program_transform_name)'; echo as | sed -e '' $$t ; fi`
DLLTOOL = `if [ -f $${rootpre}$(TOP)/../../binutils/dlltool ] ; \
then echo $${rootpre}$(TOP)/../../binutils/dlltool ; \
else t='$(program_transform_name)'; echo dlltool | sed -e '' $$t ; fi`
AR = `if [ -f $${rootpre}$(TOP)/../../binutils/ar ] ; \
then echo $${rootpre}$(TOP)/../../binutils/ar ; \
else t='$(program_transform_name)'; echo ar | sed -e '' $$t ; fi`
AR_FLAGS = qc
RANLIB = `if [ -f $${rootpre}$(TOP)/../../binutils/ranlib ] ; \
then echo $${rootpre}$(TOP)/../../binutils/ranlib ; \
else t='$(program_transform_name)'; echo ranlib | sed -e '' $$t ; fi`
# CFLAGS is the general CFLAGS. CROSS_CFLAGS is for special newlib
# flags. TARGET_CFLAGS is for target specific flags, and is
# initialized by the configure script. NEWLIB_CFLAGS is for flags we
# must always pass to gcc.
CFLAGS = -g
CROSS_CFLAGS =
TARGET_CFLAGS =
NEWLIB_CFLAGS = -fno-builtin
# Get the include directories. Note that in subdirectories, the
# string passed down from the top newlib Makefile will override this
# expression.
# If we are doing a cygwin32 build, we need to add a -I for the winsup
# header files. We can't check whether winsup has been configured at
# this point, because newlib is normally built before winsup is
# configured.
INCLUDES = ` \
srcrootpre=$${srcrootpre-$(srcdir)/}; \
if [ x$(target_os) = xcygwin32 ]; then \
echo -I$${rootpre}$(TOP)/targ-include -I$${srcrootpre}$(SRCTOP)/libc/include -I$${srcrootpre}$(SRCTOP)/../winsup/include; \
else \
echo -I$${rootpre}$(TOP)/targ-include -I$${srcrootpre}$(SRCTOP)/libc/include; \
fi`
# 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.
.c.o:
$(CC) $(CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) $(NEWLIB_CFLAGS) $(INCLUDES) -c $<
.s.o:
$(AS) $(INCLUDES) -o $*.o $<
.S.o:
$(CC) $(CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) $(NEWLIB_CFLAGS) $(INCLUDES) -c $<
# Build documentation from a .c file.
CHEW = `srcrootpre=$${srcrootpre-$(srcdir)/}; echo $${rootpre}$(TOP)/doc/makedoc -f $${srcrootpre}$(SRCTOP)/doc/doc.str`
.c.def:
$(CHEW) < $< >$*.def 2>$*.ref
Go to most recent revision | Compare with Previous | Blame | View Log