2009-10-09 17:50:31 +00:00
|
|
|
|
|
|
|
# -*- makefile -*-
|
|
|
|
|
2010-02-10 00:39:23 +00:00
|
|
|
COMMON_CFLAGS += -mexplicit-relocs -mflush-func=grub_cpu_flush_cache
|
2009-10-09 17:50:31 +00:00
|
|
|
|
|
|
|
# Images.
|
2010-04-10 23:14:31 +00:00
|
|
|
kernel_img_HEADERS += cpu/cache.h
|
2010-01-20 07:04:01 +00:00
|
|
|
|
2009-10-09 17:50:31 +00:00
|
|
|
# Scripts.
|
2009-10-10 11:30:14 +00:00
|
|
|
sbin_SCRIPTS =
|
|
|
|
bin_SCRIPTS =
|
2009-10-09 17:50:31 +00:00
|
|
|
|
2009-10-18 13:04:14 +00:00
|
|
|
# For grub-mkimage.
|
|
|
|
bin_UTILITIES += grub-mkimage
|
2009-11-22 01:55:07 +00:00
|
|
|
grub_mkimage_SOURCES = gnulib/progname.c util/grub-mkrawimage.c util/misc.c \
|
2010-05-06 04:03:45 +00:00
|
|
|
kern/emu/misc.c util/resolve.c lib/LzmaEnc.c lib/LzFind.c
|
2009-10-24 10:43:49 +00:00
|
|
|
grub_mkimage_CFLAGS = -DGRUB_KERNEL_MACHINE_LINK_ADDR=$(LINK_BASE)
|
2009-12-05 17:46:28 +00:00
|
|
|
util/grub-mkrawimage.c_DEPENDENCIES = Makefile
|
2009-10-18 13:04:14 +00:00
|
|
|
|
2009-10-11 00:07:52 +00:00
|
|
|
# For serial.mod.
|
|
|
|
pkglib_MODULES += serial.mod
|
|
|
|
serial_mod_SOURCES = term/serial.c
|
|
|
|
serial_mod_CFLAGS = $(COMMON_CFLAGS)
|
|
|
|
serial_mod_LDFLAGS = $(COMMON_LDFLAGS)
|
|
|
|
|
2009-10-11 21:00:22 +00:00
|
|
|
# For relocator.mod.
|
|
|
|
pkglib_MODULES += relocator.mod
|
|
|
|
relocator_mod_SOURCES = lib/$(target_cpu)/relocator.c lib/$(target_cpu)/relocator_asm.S
|
|
|
|
relocator_mod_CFLAGS = $(COMMON_CFLAGS)
|
|
|
|
relocator_mod_ASFLAGS = $(COMMON_ASFLAGS)
|
|
|
|
relocator_mod_LDFLAGS = $(COMMON_LDFLAGS)
|
|
|
|
|
2010-04-03 12:14:48 +00:00
|
|
|
pkglib_MODULES += multiboot2.mod
|
2010-04-03 12:29:11 +00:00
|
|
|
multiboot2_mod_SOURCES = loader/multiboot.c \
|
|
|
|
loader/multiboot_mbi2.c
|
2010-04-03 12:14:48 +00:00
|
|
|
multiboot2_mod_CFLAGS = $(COMMON_CFLAGS) -DGRUB_USE_MULTIBOOT2
|
|
|
|
multiboot2_mod_LDFLAGS = $(COMMON_LDFLAGS)
|
|
|
|
multiboot2_mod_ASFLAGS = $(COMMON_ASFLAGS)
|
|
|
|
|
2009-10-09 17:50:31 +00:00
|
|
|
include $(srcdir)/conf/common.mk
|