mirror of
http://cgit.git.savannah.gnu.org/git/grub.git
synced 2026-09-06 22:11:30 +00:00
36 lines
1.0 KiB
Makefile
36 lines
1.0 KiB
Makefile
info_TEXINFOS = multiboot.texi
|
|
EXAMPLES = boot_mips.S kernel.c multiboot2.h
|
|
multiboot_TEXINFOS = boot.S.texi kernel.c.texi multiboot2.h.texi
|
|
SRC2TEXI = src2texi
|
|
noinst_SCRIPTS = $(SRC2TEXI)
|
|
EXTRA_PROGRAMS = kernel
|
|
pkginclude_HEADERS = multiboot2.h
|
|
|
|
# The example kernel is built if you specify --enable-example-kernel.
|
|
if BUILD_EXAMPLE_KERNEL
|
|
noinst_PROGRAMS = kernel
|
|
kernel_SOURCES = $(EXAMPLES)
|
|
kernel_CFLAGS = -fno-builtin -nostdinc -O -g -Wall \
|
|
-imacros $(top_builddir)/config.h
|
|
kernel_LDFLAGS = -nostdlib -Wl,-N -Wl,-Ttext -Wl,80100000 -Wl,--build-id=none
|
|
|
|
boot.o: multiboot2.h
|
|
endif
|
|
|
|
EXTRA_DIST = $(man_MANS) $(noinst_SCRIPTS) \
|
|
$(EXAMPLES) $(multiboot_TEXINFOS)
|
|
CLEANFILES = $(noinst_PROGRAMS)
|
|
|
|
# Cancel the rule %.texi -> %. This rule may confuse make to determine
|
|
# the dependecies.
|
|
.texi:
|
|
|
|
%.c.texi: %.c $(srcdir)/$(SRC2TEXI)
|
|
$(SHELL) $(srcdir)/$(SRC2TEXI) $(srcdir) $< $@
|
|
|
|
%.h.texi: %.h $(srcdir)/$(SRC2TEXI)
|
|
$(SHELL) $(srcdir)/$(SRC2TEXI) $(srcdir) $< $@
|
|
|
|
%.S.texi: %.S $(srcdir)/$(SRC2TEXI)
|
|
$(SHELL) $(srcdir)/$(SRC2TEXI) $(srcdir) $< $@
|