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

4.104.114.84.95
Last change on this file since 7eeb740a was 84f0cfb, checked in by Ralf Corsepius <ralf.corsepius@…>, on 12/09/03 at 14:52:20

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

  • bootloader/Makefile.am: Misc cleanups and fixes.
  • motorola/Makefile.am: Misc cleanups and fixes.
  • start/Makefile.am: Misc cleanups and fixes.
  • startup/Makefile.am: Misc cleanups and fixes.
  • startup/linkcmds: Preparations for gcc-3.3.x.
  • Property mode set to 100644
File size: 2.4 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
50project_lib_DATA = bootloader.$(OBJEXT)
51project_lib_DATA += ../../shared/bootloader/ppcboot.lds
52
53# FIXME: Tmp-install stuff to make mcp750.cfg's make-exe happy.
54# As mcp750.cfg's make-exe doesn't work outside of the source-tree.
55# We might consider to use this directory directly for in-source-tree
56# building, instead.
57
58all-local: $(TMPINSTALL_FILES)
59
60TMPINSTALL_FILES =
61
62${PROJECT_RELEASE}/lib/bootloader.$(OBJEXT): bootloader.$(OBJEXT) ${PROJECT_RELEASE}/lib/$(dirstamp)
63        $(INSTALL_DATA) $< ${PROJECT_RELEASE}/lib/bootloader.$(OBJEXT)
64TMPINSTALL_FILES += ${PROJECT_RELEASE}/lib/bootloader.$(OBJEXT)
65
66${PROJECT_RELEASE}/lib/ppcboot.lds: ../../shared/bootloader/ppcboot.lds ${PROJECT_RELEASE}/lib/$(dirstamp)
67        $(INSTALL_DATA) $< ${PROJECT_RELEASE}/lib/ppcboot.lds
68TMPINSTALL_FILES += ${PROJECT_RELEASE}/lib/ppcboot.lds
69
70include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.