2008-08-09 Christian Franke <franke@computer.org>
* Makefile.in: Add `target_os' and `enable_grub_pe2elf'. * conf/common.rmk: Install `grub-pe2elf' only if requested. Install `grub.d/10_windows' only on Cygwin. * configure.ac: Add subst of `target_os'. Check `target_os' also before setting TARGET_OBJ2ELF. Add `--enable-grub-pe2elf'.
This commit is contained in:
parent
042bd419da
commit
2d05bc6a3e
6 changed files with 54 additions and 9 deletions
|
@ -459,7 +459,10 @@ grub_editenv-kern_err.o: kern/err.c $(kern/err.c_DEPENDENCIES)
|
|||
CLEANFILES += grub-editenv
|
||||
|
||||
# for grub-pe2elf
|
||||
ifeq ($(enable_grub_pe2elf), yes)
|
||||
bin_UTILITIES += grub-pe2elf
|
||||
endif
|
||||
|
||||
grub_pe2elf_SOURCES = util/grub-pe2elf.c util/misc.c
|
||||
CLEANFILES += grub-pe2elf$(EXEEXT) grub_pe2elf-util_grub_pe2elf.o grub_pe2elf-util_misc.o
|
||||
MOSTLYCLEANFILES += grub_pe2elf-util_grub_pe2elf.d grub_pe2elf-util_misc.d
|
||||
|
@ -493,7 +496,11 @@ CLEANFILES += update-grub_lib
|
|||
%: util/grub.d/%.in config.status
|
||||
./config.status --file=$@:$<
|
||||
chmod +x $@
|
||||
update-grub_SCRIPTS = 00_header 10_linux 10_hurd 10_windows 30_os-prober 40_custom
|
||||
update-grub_SCRIPTS = 00_header 10_linux 10_hurd 30_os-prober 40_custom
|
||||
ifeq ($(target_os), cygwin)
|
||||
update-grub_SCRIPTS += 10_windows
|
||||
endif
|
||||
|
||||
CLEANFILES += $(update-grub_SCRIPTS)
|
||||
|
||||
update-grub_DATA += util/grub.d/README
|
||||
|
|
|
@ -100,7 +100,10 @@ grub_editenv_SOURCES = util/grub-editenv.c lib/envblk.c util/misc.c kern/misc.c
|
|||
CLEANFILES += grub-editenv
|
||||
|
||||
# for grub-pe2elf
|
||||
ifeq ($(enable_grub_pe2elf), yes)
|
||||
bin_UTILITIES += grub-pe2elf
|
||||
endif
|
||||
|
||||
grub_pe2elf_SOURCES = util/grub-pe2elf.c util/misc.c
|
||||
CLEANFILES += grub-pe2elf
|
||||
|
||||
|
@ -120,7 +123,11 @@ CLEANFILES += update-grub_lib
|
|||
%: util/grub.d/%.in config.status
|
||||
./config.status --file=$@:$<
|
||||
chmod +x $@
|
||||
update-grub_SCRIPTS = 00_header 10_linux 10_hurd 10_windows 30_os-prober 40_custom
|
||||
update-grub_SCRIPTS = 00_header 10_linux 10_hurd 30_os-prober 40_custom
|
||||
ifeq ($(target_os), cygwin)
|
||||
update-grub_SCRIPTS += 10_windows
|
||||
endif
|
||||
|
||||
CLEANFILES += $(update-grub_SCRIPTS)
|
||||
|
||||
update-grub_DATA += util/grub.d/README
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue