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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [lib/] [libbsp/] [powerpc/] [motorola_powerpc/] [bootloader/] [Makefile.am] - Rev 173

Compare with Previous | Blame | View Log

##
## $Id: Makefile.am,v 1.2 2001-09-27 12:00:37 chris Exp $
##

AUTOMAKE_OPTIONS = foreign 1.4

VPATH = @srcdir@:@srcdir@/../../../shared:@srcdir@/../../shared/console:@srcdir@/../../shared/bootloader

C_FILES = misc.c pci.c zlib.c mm.c em86.c polled_io.c lib.c
C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)

H_FILES = bootldr.h zlib.h pci.h

S_FILES = head.S exception.S em86real.S
S_O_FILES = $(S_FILES:%.S=$(ARCH)/%.o)

OBJS = $(S_O_FILES) $(C_O_FILES)

include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
include $(top_srcdir)/../../../../../../automake/lib.am

#
# (OPTIONAL) Add local stuff here using +=
#

## FIXME:
## ASFLAGS = -mrelocatable
CFLAGS_DEBUG_V = $(CFLAGS_OPTIMIZE_V)

AM_CPPFLAGS += -D__BOOT__ -DDEBUG -mrelocatable
AM_CFLAGS += -msoft-float -mstrict-align -fno-builtin -Wall -mmultiple -mstring -O2 -fomit-frame-pointer -ffixed-r13 -mno-sdata

IMAGES = rtems.gz

CLEANFILES += bootloader reloc.O
DISTCLEANFILES += $(IMAGES)

#
# CAUTION :
#
# As we use very specific compilation options in this directory
# we shall not use any other code. This includes the newlib libc.a
# as well as other code located in .o files in mcp750 directory.
#
# NEVER remove lib.c. You have been warned...
#
bootloader : $(OBJS) $(IMAGES) $(BINARY_LOADED) ppcboot.lds
        $(LD) -o bootloader $(OBJS) --just-symbols=$(BINARY_LOADED) \
        -b binary $(IMAGES) -T @srcdir@/../../shared/bootloader/ppcboot.lds \
        -Map $(ARCH)/bootloader.map

check_unresolved : $(OBJS)
        $(LD) -r -o reloc.O $(OBJS)
        $(NM) reloc.O |grep ' U '
        echo "Every symbol listed should be defined in @srcdir@/ppcboot.lds"

rtems: $(BINARY_LOADED)
        $(OBJCOPY)  $(BINARY_LOADED) rtems -O binary -R .comment -S

rtems.gz: rtems
        gzip -vf9 rtems

all-local: $(ARCH) $(OBJS)

include $(top_srcdir)/../../../../../../automake/local.am

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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