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] - Blame information for rev 173

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
##
2
## $Id: Makefile.am,v 1.2 2001-09-27 12:00:37 chris Exp $
3
##
4
 
5
AUTOMAKE_OPTIONS = foreign 1.4
6
 
7
VPATH = @srcdir@:@srcdir@/../../../shared:@srcdir@/../../shared/console:@srcdir@/../../shared/bootloader
8
 
9
C_FILES = misc.c pci.c zlib.c mm.c em86.c polled_io.c lib.c
10
C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
11
 
12
H_FILES = bootldr.h zlib.h pci.h
13
 
14
S_FILES = head.S exception.S em86real.S
15
S_O_FILES = $(S_FILES:%.S=$(ARCH)/%.o)
16
 
17
OBJS = $(S_O_FILES) $(C_O_FILES)
18
 
19
include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
20
include $(top_srcdir)/../../../../../../automake/lib.am
21
 
22
#
23
# (OPTIONAL) Add local stuff here using +=
24
#
25
 
26
## FIXME:
27
## ASFLAGS = -mrelocatable
28
CFLAGS_DEBUG_V = $(CFLAGS_OPTIMIZE_V)
29
 
30
AM_CPPFLAGS += -D__BOOT__ -DDEBUG -mrelocatable
31
AM_CFLAGS += -msoft-float -mstrict-align -fno-builtin -Wall -mmultiple -mstring -O2 -fomit-frame-pointer -ffixed-r13 -mno-sdata
32
 
33
IMAGES = rtems.gz
34
 
35
CLEANFILES += bootloader reloc.O
36
DISTCLEANFILES += $(IMAGES)
37
 
38
#
39
# CAUTION :
40
#
41
# As we use very specific compilation options in this directory
42
# we shall not use any other code. This includes the newlib libc.a
43
# as well as other code located in .o files in mcp750 directory.
44
#
45
# NEVER remove lib.c. You have been warned...
46
#
47
bootloader : $(OBJS) $(IMAGES) $(BINARY_LOADED) ppcboot.lds
48
        $(LD) -o bootloader $(OBJS) --just-symbols=$(BINARY_LOADED) \
49
        -b binary $(IMAGES) -T @srcdir@/../../shared/bootloader/ppcboot.lds \
50
        -Map $(ARCH)/bootloader.map
51
 
52
check_unresolved : $(OBJS)
53
        $(LD) -r -o reloc.O $(OBJS)
54
        $(NM) reloc.O |grep ' U '
55
        echo "Every symbol listed should be defined in @srcdir@/ppcboot.lds"
56
 
57
rtems: $(BINARY_LOADED)
58
        $(OBJCOPY)  $(BINARY_LOADED) rtems -O binary -R .comment -S
59
 
60
rtems.gz: rtems
61
        gzip -vf9 rtems
62
 
63
all-local: $(ARCH) $(OBJS)
64
 
65
include $(top_srcdir)/../../../../../../automake/local.am

powered by: WebSVN 2.1.0

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