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

4.104.114.84.95
Last change on this file since d497b74 was d497b74, checked in by Ralf Corsepius <ralf.corsepius@…>, on Dec 3, 2003 at 4:00:12 PM

2003-12-03 Ralf Corsepius <corsepiu@…>

  • Makefile.am: Cosmetics.
  • bootloader/Makefile.am: Cosmetics.
  • startup/Makefile.am: Cosmetics.
  • Property mode set to 100644
File size: 2.1 KB
Line 
1##
2## $Id$
3##
4
5## NOTE: This Makefile.am applies automake compilation rules and does not
6## apply RTEMS's compilation rules.
7
8AUTOMAKE_OPTIONS = no-exeext
9
10VPATH = @srcdir@:@srcdir@/../../shared/bootloader:@srcdir@/../../shared/console
11
12noinst_PROGRAMS = bootloader
13
14## IMPORTANT: head.S must be first, T. Straumann 12/17/2001
15bootloader_SOURCES = head.S exception.S em86real.S
16bootloader_SOURCES += misc.c pci.c zlib.c mm.c em86.c polled_io.c lib.c
17bootloader_SOURCES += bootldr.h zlib.h pci.h keyboard.h
18
19NM = @NM@
20LD = @LD@
21
22# ----
23DEFAULT_INCLUDES =
24
25# Remove references to EABI when compiling bootloader
26BOOTLOADER_CPU_FLAGS=$(subst -msdata=eabi,,$(subst -meabi,,$(CPU_CFLAGS)))
27AM_CPPFLAGS = -D__BOOT__ -DDEBUG
28AM_CFLAGS = $(GCC_SPECS) -specs bsp_specs -qrtems -mrelocatable -msoft-float \
29    -mstrict-align -fno-builtin -Wall -mmultiple -mstring -O2 \
30    -fomit-frame-pointer -ffixed-r13 -mno-sdata $(BOOTLOADER_CPU_CFLAGS)
31AM_CCASFLAGS = $(AM_CPPFLAGS) $(GCC_SPECS) -specs bsp_specs -qrtems \
32    -mrelocatable -DASM $(BOOTLOADER_CPU_CFLAGS)
33
34#
35# CAUTION :
36#
37# As we use very specific compilation options in this directory
38# we shall not use any other code. This includes the newlib libc.a
39# as well as other code located in .$(OBJEXT) files in mcp750 directory.
40#
41# NEVER remove lib.c. You have been warned...
42#
43bootloader$(EXEEXT): $(bootloader_OBJECTS)
44        $(LD) -r -o $@ $(bootloader_OBJECTS)
45        $(NM)  $@ | grep ' U '
46        @echo "Every symbol listed should be defined in @srcdir@/ppcboot.lds"
47bootloader.$(OBJEXT): bootloader$(EXEEXT)
48        cp $< $@
49
50ppcbootdir = $(bsplibdir)
51ppcboot_DATA = bootloader.$(OBJEXT)
52ppcboot_DATA += ../../shared/bootloader/ppcboot.lds
53
54# FIXME: Tmp-install stuff to make mcp750.cfg's make-exe happy.
55# As mcp750.cfg's make-exe doesn't work outside of the source-tree.
56# We might consider to use this directory directly for in-source-tree
57# building, instead.
58$(PROJECT_RELEASE)/lib/%: %
59        $(INSTALL_DATA) $< $@
60
61TMPINSTALL_FILES = $(PROJECT_RELEASE)/lib/bootloader.$(OBJEXT) \
62    $(PROJECT_RELEASE)/lib/ppcboot.lds
63
64all-local: $(TMPINSTALL_FILES)
65
66include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.