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
|
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-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
|
2010-01-23 12:30:24 +00:00
|
|
|
relocator_mod_SOURCES = lib/$(target_cpu)/relocator.c lib/relocator.c lib/$(target_cpu)/relocator_asm.S
|
2009-10-11 21:00:22 +00:00
|
|
|
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
|