source: rtems/c/src/lib/libbsp/powerpc/motorola_powerpc/bootloader/Makefile.am @ df49c60

4.104.114.84.95
Last change on this file since df49c60 was df49c60, checked in by Joel Sherrill <joel.sherrill@…>, on Jun 12, 2000 at 3:00:15 PM

Merged from 4.5.0-beta3a

  • Property mode set to 100644
File size: 1.7 KB
Line 
1##
2## $Id$
3##
4
5AUTOMAKE_OPTIONS = foreign 1.4
6
7VPATH = @srcdir@:@srcdir@/../../../shared:@srcdir@/../../shared/console:@srcdir@/../../shared/bootloader
8
9C_FILES = misc.c pci.c zlib.c mm.c em86.c polled_io.c lib.c
10C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
11
12H_FILES = bootldr.h zlib.h pci.h
13
14S_FILES = head.S exception.S em86real.S
15S_O_FILES = $(S_FILES:%.S=$(ARCH)/%.o)
16
17OBJS = $(S_O_FILES) $(C_O_FILES)
18
19include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
20include $(top_srcdir)/../../../../../../automake/lib.am
21
22#
23# (OPTIONAL) Add local stuff here using +=
24#
25
26## FIXME:
27## ASFLAGS = -mrelocatable
28CFLAGS_DEBUG_V = $(CFLAGS_OPTIMIZE_V)
29
30AM_CPPFLAGS += -D__BOOT__ -DDEBUG -mrelocatable
31AM_CFLAGS += -msoft-float -mstrict-align -fno-builtin -Wall -mmultiple -mstring -O2 -fomit-frame-pointer -ffixed-r13 -mno-sdata
32
33IMAGES = rtems.gz
34
35CLEANFILES += bootloader reloc.O
36DISTCLEANFILES += $(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#
47bootloader : $(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
52check_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
57rtems: $(BINARY_LOADED)
58        $(OBJCOPY)  $(BINARY_LOADED) rtems -O binary -R .comment -S
59
60rtems.gz: rtems
61        gzip -vf9 rtems
62
63all-local: $(ARCH) $(OBJS)
64
65include $(top_srcdir)/../../../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.