OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.17.0/] [libgloss/] [or32/] [Makefile.in] - Diff between revs 198 and 204

Show entire file | Details | Blame | View Log

Rev 198 Rev 204
Line 1... Line 1...
# Makefile.in. Autoconf input makefile.
# Makefile.in. Autoconf input makefile.
 
 
 
# Copyright (c) 1998 Cygnus Support
# Copyright (C) 2004, Jacob Bower
# Copyright (C) 2004, Jacob Bower
# Copyright (C) 2010, Embecosm Limited 
# Copyright (C) 2010, Embecosm Limited 
 
 
# Contributor Jeremy Bennett 
# Contributor Jeremy Bennett 
 
 
Line 40... Line 41...
 
 
bindir = @bindir@
bindir = @bindir@
libdir = @libdir@
libdir = @libdir@
tooldir = $(exec_prefix)/$(target_alias)
tooldir = $(exec_prefix)/$(target_alias)
 
 
INSTALL = @INSTALL@
 
INSTALL_PROGRAM = @INSTALL_PROGRAM@
 
INSTALL_DATA = @INSTALL_DATA@
 
 
 
# Multilib support variables.
# Multilib support variables.
# TOP is used instead of MULTI{BUILD,SRC}TOP.
# TOP is used instead of MULTI{BUILD,SRC}TOP.
MULTIDIRS =
MULTIDIRS =
MULTISUBDIR =
MULTISUBDIR =
 
 
 
INSTALL = @INSTALL@
 
INSTALL_PROGRAM = @INSTALL_PROGRAM@
 
INSTALL_DATA = @INSTALL_DATA@
 
 
SHELL = /bin/sh
SHELL = /bin/sh
 
 
CC = @CC@
CC = @CC@
 
 
AS = @AS@
AS = @AS@
AR = @AR@
AR = @AR@
LD = @LD@
LD = @LD@
RANLIB = @RANLIB@
RANLIB = @RANLIB@
 
 
Line 65... Line 65...
        else t='$(program_transform_name)'; echo objdump | sed -e $$t ; fi`
        else t='$(program_transform_name)'; echo objdump | sed -e $$t ; fi`
OBJCOPY = `if [ -f ${objroot}/../binutils/objcopy ] ; \
OBJCOPY = `if [ -f ${objroot}/../binutils/objcopy ] ; \
        then echo ${objroot}/../binutils/objcopy ; \
        then echo ${objroot}/../binutils/objcopy ; \
        else t='$(program_transform_name)'; echo objcopy | sed -e $$t ; fi`
        else t='$(program_transform_name)'; echo objcopy | sed -e $$t ; fi`
 
 
OBJS            = putnum.o unlink.o
# Add our own flags for C compilation
CFLAGS          = -g
CFLAGS          = -g
 
 
BSP = libor32.a libor32uart.a
# Our own C runtime startup and BSPs
 
 
CRT0      = crt0.o
CRT0      = crt0.o
OR32_OBJS = _exit.o      \
BSP      = libor32.a
 
BSP_UART = libor32uart.a
 
 
 
OUTPUTS  = $(CRT0) $(BSP) $(BSP_UART)
 
 
 
# The object files for each BSP
 
OBJS = _exit.o      \
            close.o      \
            close.o      \
            environ.o    \
            environ.o    \
            execve.o     \
            execve.o     \
            fork.o       \
            fork.o       \
            fstat.o      \
            fstat.o      \
Line 91... Line 96...
            times.o      \
            times.o      \
            uart-dummy.o \
            uart-dummy.o \
            unlink.o     \
            unlink.o     \
            wait.o       \
            wait.o       \
            write.o
            write.o
 
 
UART_OBJS = _exit.o       \
UART_OBJS = _exit.o       \
            close.o       \
            close.o       \
            environ.o     \
            environ.o     \
            execve.o      \
            execve.o      \
            fork.o        \
            fork.o        \
Line 112... Line 118...
            uart.o        \
            uart.o        \
            unlink.o      \
            unlink.o      \
            wait.o        \
            wait.o        \
            write-uart.o
            write-uart.o
 
 
# Host specific makefile fragment comes in here.
# Host specific makefile fragment specifies the automatic rules
@host_makefile_frag@
@host_makefile_frag@
 
 
#
# Build crt0.o and all the BSPs
# build a test program for each target board. Just trying to get
all: ${CRT0} ${BSP} ${BSP_UART}
# it to link is a good test, so we ignore all the errors for now.
 
#
# Rules to build the BSPs from their objects. No need for a rule to build
all: ${CRT0} ${BSP}
# crt0.o, that happens autmatically from .S
 
$(BSP): $(OBJS)
#
        ${AR} ${ARFLAGS} $@ $(OBJS)
# here's where we build the board support packages for each target
 
#
 
libor32.a: $(OR32_OBJS)
 
        ${AR} ${ARFLAGS} $@ $(OR32_OBJS)
 
        ${RANLIB} $@
        ${RANLIB} $@
 
 
libor32uart.a: $(UART_OBJS)
$(BSP_UART): $(UART_OBJS)
        ${AR} ${ARFLAGS} $@ $(UART_OBJS)
        ${AR} ${ARFLAGS} $@ $(UART_OBJS)
        ${RANLIB} $@
        ${RANLIB} $@
 
 
crt0.o: crt0.S
 
        $(CC) -c $(CFLAGS)  $(<) -o $@
 
 
 
 
 
 
# Standard clean up rules.
clean mostlyclean:
clean mostlyclean:
        rm -f a.out core *.i *.o *-test *.srec *.dis *.x $(SIM_BSP) $(MON_BSP)
        rm -f $(OUTPUTS) *.i *~ *.o *-test *.srec *.dis *.map *.x
 
 
distclean maintainer-clean realclean: clean
distclean maintainer-clean realclean: clean
        rm -f Makefile config.status *~
        rm -f Makefile config.status *~
 
 
 
# Standard install rules
.PHONY: install info install-info clean-info
.PHONY: install info install-info clean-info
install:
install:
        $(INSTALL_PROGRAM) $(CRT0) \
        @for outputs in ${OUTPUTS}; do\
                $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(CRT0)
             mkdir -p $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}; \
        @for bsp in ${BSP}; do\
             $(INSTALL_PROGRAM) $${outputs} \
            $(INSTALL_PROGRAM) $${bsp} $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}; \
                                $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}; \
        done
        done
 
 
 
# Deal with info if we had any.
info:
info:
install-info:
install-info:
clean-info:
clean-info:
 
 
 
 
 
# Standard make and configure dependencies.
Makefile: Makefile.in config.status @host_makefile_frag_path@
Makefile: Makefile.in config.status @host_makefile_frag_path@
        $(SHELL) config.status
        $(SHELL) config.status
 
 
config.status: configure
config.status: configure
        $(SHELL) config.status --recheck
        $(SHELL) config.status --recheck

powered by: WebSVN 2.1.0

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