source: rtems/c/src/lib/libbsp/powerpc/mcp750/bootloader/Makefile.in @ 93180ea2

4.104.114.84.95
Last change on this file since 93180ea2 was 93180ea2, checked in by Joel Sherrill <joel.sherrill@…>, on 07/09/99 at 17:16:10

Patch from Eric Valette <valette@…>:

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