root / prex-0.9.0 / bsp / boot / Makefile @ 03e9c04a
History | View | Annotate | Download (684 Bytes)
1 | 03e9c04a | Brad Neuman | # Rules to compile boot loader |
---|---|---|---|
2 | |||
3 | include $(SRCDIR)/mk/own.mk |
||
4 | |||
5 | TARGET:= bootldr |
||
6 | |||
7 | #MAP:= bootldr.map |
||
8 | #DISASM:= bootldr.lst |
||
9 | #SYMBOL:= bootldr.sym |
||
10 | |||
11 | _KERNEL_:= 1 |
||
12 | DEFS+= KERNEL |
||
13 | |||
14 | include $(CURDIR)/$(ARCH)/$(PLATFORM)/Makefile.inc |
||
15 | include $(CURDIR)/$(ARCH)/arch/Makefile.inc |
||
16 | include $(CURDIR)/common/Makefile.inc |
||
17 | |||
18 | LIBSDIR+= $(SRCDIR)/conf |
||
19 | INCSDIR+= $(CURDIR)/include $(CURDIR)/$(ARCH) |
||
20 | ifndef LDSCRIPT |
||
21 | LDSCRIPT:= $(CURDIR)/$(ARCH)/arch/boot.ld |
||
22 | endif |
||
23 | |||
24 | include $(SRCDIR)/mk/common.mk |
||
25 | |||
26 | $(TARGET): $(OBJS) $(LIBS) $(LDSCRIPT) |
||
27 | $(call echo-file,LD ,$@) |
||
28 | $(LD) $(LDFLAGS) $(OUTPUT_OPTION) $(OBJS) $(LIBS) $(PLATFORM_LIBS) |
||
29 | $(ASMGEN) |
||
30 | $(SYMGEN) |
||
31 | $(OBJCOPY) -O binary -R .note -R .comment -S $@ |