source: rtems/c/src/lib/libbsp/powerpc/motorola_powerpc/bootloader/Makefile.in @ acc25ee

4.104.114.84.95
Last change on this file since acc25ee was acc25ee, checked in by Joel Sherrill <joel.sherrill@…>, on 12/02/99 at 14:31:19

Merged of mcp750 and mvme2307 BSP by Eric Valette <valette@…>.
As part of this effort, the mpc750 libcpu code is now shared with the
ppc6xx.

  • Property mode set to 100644
File size: 2.5 KB
Line 
1#
2#  $Id$
3#
4
5@SET_MAKE@
6srcdir = @srcdir@
7top_srcdir = @top_srcdir@
8top_builddir = ../../..
9subdir = powerpc/mcp750/bootloader
10
11RTEMS_ROOT = @RTEMS_ROOT@
12PROJECT_ROOT = @PROJECT_ROOT@
13
14VPATH = @srcdir@:@srcdir@/../../../shared:@srcdir@/../../shared/console:@srcdir@/../../shared/bootloader
15
16# C source names, if any, go here -- minus the .c
17C_PIECES = misc pci zlib mm em86 polled_io lib
18C_FILES = $(C_PIECES:%=%.c)
19C_O_FILES = $(C_PIECES:%=${ARCH}/%.o)
20
21H_FILES = bootldr.h zlib.h pci.h
22
23# Assembly source names, if any, go here -- minus the .s
24S_PIECES = head exception em86real
25S_FILES = $(S_PIECES:%=%.S)
26S_O_FILES = $(S_FILES:%.S=${ARCH}/%.o)
27
28SRCS = $(C_FILES) $(CC_FILES) $(H_FILES) $(S_FILES)
29OBJS = $(S_O_FILES) $(C_O_FILES)
30
31include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
32include $(RTEMS_ROOT)/make/leaf.cfg
33
34INSTALL_CHANGE = @INSTALL_CHANGE@
35
36CC_PIECES =
37CC_FILES = $(CC_PIECES:%=%.cc)
38CC_O_FILES = $(CC_PIECES:%=${ARCH}/%.o)
39
40#
41# (OPTIONAL) Add local stuff here using +=
42#
43
44DEFINES +=
45CPPFLAGS += -D__BOOT__ -DDEBUG
46CFLAGS += -msoft-float -mstrict-align -fno-builtin -Wall -mmultiple -mstring \
47    -O2 -fomit-frame-pointer -mrelocatable -ffixed-r13 -mno-sdata -D__BOOT__ \
48    -DDEBUG
49
50ASFLAGS += -mrelocatable
51
52LD_PATHS +=
53LD_LIBS +=
54LDFLAGS +=
55
56IMAGES = rtems.gz
57
58#
59# Add your list of files to delete here.  The config files
60#  already know how to delete some stuff, so you may want
61
62#  to just run 'make clean' first to see what gets missed.
63#  'make clobber' already includes 'make clean'
64#
65
66CLEAN_ADDITIONS += bootloader reloc.O
67CLOBBER_ADDITIONS += $(IMAGES)
68
69#
70# CAUTION :
71#
72# As we use very specific compilation options in this directory
73# we shall not use any other code. This includes the newlib libc.a
74# as well as other code located in .o files in mcp750 directory.
75#
76# NEVER remove lib.c. You have been warned...
77#
78bootloader : ${OBJS} $(IMAGES) $(BINARY_LOADED) ppcboot.lds
79        $(LD) -o bootloader $(OBJS) --just-symbols=$(BINARY_LOADED) \
80        -b binary $(IMAGES) -T @srcdir@/../../shared/bootloader/ppcboot.lds \
81         -Map bootloader.map
82
83check_unresolved : ${OBJS}
84        $(LD) -r -o reloc.O ${OBJS}
85        $(NM) reloc.O |grep ' U '
86        echo "Every symbol listed should be defined in @srcdir@/ppcboot.lds"
87
88rtems.gz: $(BINARY_LOADED)
89        $(OBJCOPY)  $(BINARY_LOADED) rtems -O binary -R .comment -S
90        gzip -vf9 rtems
91        rm -f rtems
92
93all: ${ARCH} $(SRCS) ${OBJ}
94
95Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
96        cd $(top_builddir) \
97         && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
Note: See TracBrowser for help on using the repository browser.