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

Last change on this file since 454e6b1 was 454e6b1, checked in by Ralf Corsepius <ralf.corsepius@…>, on Oct 17, 2006 at 2:26:55 AM

2006-10-17 Ralf Corsépius <ralf.corsepius@…>

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