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

4.104.114.84.9
Last change on this file since d5b3fe52 was d5b3fe52, checked in by Eric Norum <WENorum@…>, on Nov 9, 2005 at 4:38:33 PM

Fix disagreement between GCCSPECS and GCC_SPECS.

  • Property mode set to 100644
File size: 2.6 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# ----
28DEFAULT_INCLUDES =
29
30# Remove references to EABI when compiling bootloader
31BOOTLOADER_CPU_CFLAGS=$(subst -msdata=eabi,,$(subst -meabi,,$(CPU_CFLAGS)))
32AM_CPPFLAGS = -D__BOOT__
33AM_CFLAGS = $(GCCSPECS) -mrelocatable -msoft-float \
34    -mstrict-align -fno-builtin -Wall -mmultiple -mstring -O2 \
35    -fomit-frame-pointer -ffixed-r13 -mno-sdata $(BOOTLOADER_CPU_CFLAGS)
36AM_CCASFLAGS = $(AM_CPPFLAGS) $(GCCSPECS) \
37    -mrelocatable -DASM $(BOOTLOADER_CPU_CFLAGS)
38
39#
40# CAUTION :
41#
42# As we use very specific compilation options in this directory
43# we shall not use any other code. This includes the newlib libc.a
44# as well as other code located in .$(OBJEXT) files in mcp750 directory.
45#
46# NEVER remove lib.c. You have been warned...
47#
48bootloader$(EXEEXT): $(bootloader_OBJECTS)
49        $(LD) -r -o $@ $(bootloader_OBJECTS)
50        $(NM)  $@ | grep ' U '
51        @echo "Every symbol listed should be defined in @srcdir@/ppcboot.lds"
52bootloader.$(OBJEXT): bootloader$(EXEEXT)
53        cp $< $@
54
55project_lib_DATA = bootloader.$(OBJEXT)
56project_lib_DATA += ../../shared/bootloader/ppcboot.lds
57
58all-local: $(TMPINSTALL_FILES)
59
60TMPINSTALL_FILES =
61
62$(PROJECT_LIB)/$(dirstamp):
63        @$(mkdir_p) $(PROJECT_LIB)
64        @: > $(PROJECT_LIB)/$(dirstamp)
65TMPINSTALL_FILES += $(PROJECT_LIB)/$(dirstamp)
66
67$(PROJECT_LIB)/bootloader.$(OBJEXT): bootloader.$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
68        $(INSTALL_DATA) $< $(PROJECT_LIB)/bootloader.$(OBJEXT)
69TMPINSTALL_FILES += $(PROJECT_LIB)/bootloader.$(OBJEXT)
70
71$(PROJECT_LIB)/ppcboot.lds: ../../shared/bootloader/ppcboot.lds $(PROJECT_LIB)/$(dirstamp)
72        $(INSTALL_DATA) $< $(PROJECT_LIB)/ppcboot.lds
73TMPINSTALL_FILES += $(PROJECT_LIB)/ppcboot.lds
74
75CLEANFILES = $(TMPINSTALL_FILES)
76
77include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.