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

4.104.114.84.95
Last change on this file since 068231cd was 068231cd, checked in by Joel Sherrill <joel.sherrill@…>, on Sep 5, 2000 at 3:51:23 PM

2000-09-04 Ralf Corsepius <corsepiu@…>

  • bootloader/Makefile.am, clock/Makefile.am, console/Makefile.am, irq/Makefile.am, motorola/Makefile.am, openpic/Makefile.am, pci/Makefile.am, residual/Makefile.am, start/Makefile.am, startup/Makefile.am, vectors/Makefile.am, wrapup/Makefile.am: Include compile.am
  • Property mode set to 100644
File size: 1.8 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/compile.am
21include $(top_srcdir)/../../../../../../automake/lib.am
22
23#
24# (OPTIONAL) Add local stuff here using +=
25#
26
27## FIXME:
28## ASFLAGS = -mrelocatable
29CFLAGS_DEBUG_V = $(CFLAGS_OPTIMIZE_V)
30
31AM_CPPFLAGS += -D__BOOT__ -DDEBUG -mrelocatable
32AM_CFLAGS += -msoft-float -mstrict-align -fno-builtin -Wall -mmultiple \
33    -mstring -O2 -fomit-frame-pointer -ffixed-r13 -mno-sdata
34
35IMAGES = rtems.gz
36
37CLEANFILES += bootloader reloc.O
38DISTCLEANFILES += $(IMAGES)
39
40#
41# CAUTION :
42#
43# As we use very specific compilation options in this directory
44# we shall not use any other code. This includes the newlib libc.a
45# as well as other code located in .o files in mcp750 directory.
46#
47# NEVER remove lib.c. You have been warned...
48#
49bootloader : $(OBJS) $(IMAGES) $(BINARY_LOADED) ppcboot.lds
50        $(LD) -o bootloader $(OBJS) --just-symbols=$(BINARY_LOADED) \
51        -b binary $(IMAGES) -T @srcdir@/../../shared/bootloader/ppcboot.lds \
52        -Map $(ARCH)/bootloader.map
53
54check_unresolved : $(OBJS)
55        $(LD) -r -o reloc.O $(OBJS)
56        $(NM) reloc.O |grep ' U '
57        echo "Every symbol listed should be defined in @srcdir@/ppcboot.lds"
58
59rtems: $(BINARY_LOADED)
60        $(OBJCOPY)  $(BINARY_LOADED) rtems -O binary -R .comment -S
61
62rtems.gz: rtems
63        gzip -vf9 rtems
64
65all-local: $(ARCH) $(OBJS)
66
67include $(top_srcdir)/../../../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.