2011-08-19 18:06:42 +00:00
|
|
|
AUTOMAKE_OPTIONS = subdir-objects -Wno-portability
|
2010-06-04 04:04:28 +00:00
|
|
|
|
2010-08-18 11:23:11 +00:00
|
|
|
DEPDIR=.deps-core
|
2010-08-17 13:33:22 +00:00
|
|
|
|
2010-08-20 04:44:29 +00:00
|
|
|
include $(top_srcdir)/conf/Makefile.common
|
2010-08-17 13:33:22 +00:00
|
|
|
|
2010-08-20 04:44:29 +00:00
|
|
|
CC=$(TARGET_CC)
|
|
|
|
CPP=$(TARGET_CC)
|
|
|
|
CCAS=$(TARGET_CC)
|
2013-09-23 10:55:18 +00:00
|
|
|
RANLIB=$(TARGET_RANLIB)
|
|
|
|
STRIP=$(TARGET_STRIP)
|
2010-05-06 06:04:04 +00:00
|
|
|
|
2012-02-29 14:08:08 +00:00
|
|
|
MACHO2IMG=$(top_builddir)/grub-macho2img
|
|
|
|
|
2010-08-20 04:44:29 +00:00
|
|
|
AM_CFLAGS = $(TARGET_CFLAGS)
|
|
|
|
AM_LDFLAGS = $(TARGET_LDFLAGS)
|
|
|
|
AM_CPPFLAGS = $(TARGET_CPPFLAGS) $(CPPFLAGS_DEFAULT)
|
|
|
|
AM_CCASFLAGS = $(TARGET_CCASFLAGS) $(CCASFLAGS_DEFAULT)
|
2010-05-06 06:04:04 +00:00
|
|
|
|
2010-08-20 04:44:29 +00:00
|
|
|
CFLAGS_PROGRAM += $(CFLAGS_PLATFORM)
|
|
|
|
LDFLAGS_PROGRAM += $(LDFLAGS_PLATFORM)
|
|
|
|
CPPFLAGS_PROGRAM += $(CPPFLAGS_PLATFORM)
|
|
|
|
CCASFLAGS_PROGRAM += $(CCASFLAGS_PLATFORM)
|
2010-05-06 06:04:04 +00:00
|
|
|
|
2010-08-20 04:44:29 +00:00
|
|
|
CFLAGS_LIBRARY += $(CFLAGS_PLATFORM) -fno-builtin
|
|
|
|
CPPFLAGS_LIBRARY += $(CPPFLAGS_PLATFORM)
|
|
|
|
CCASFLAGS_LIBRARY += $(CCASFLAGS_PLATFORM)
|
2010-05-06 06:04:04 +00:00
|
|
|
|
2014-01-18 16:41:24 +00:00
|
|
|
build-grub-pep2elf$(BUILD_EXEEXT): $(top_srcdir)/util/grub-pe2elf.c $(top_srcdir)/grub-core/kern/emu/misc.c $(top_srcdir)/util/misc.c
|
2014-01-18 15:50:54 +00:00
|
|
|
$(BUILD_CC) -o $@ -I$(top_srcdir)/include $(BUILD_CFLAGS) $(BUILD_CPPFLAGS) $(BUILD_LDFLAGS) -DGRUB_BUILD=1 -DGRUB_TARGET_WORDSIZE=64 -DGRUB_UTIL=1 -DGRUB_BUILD_PROGRAM_NAME=\"build-grub-pep2elf\" $^
|
2014-01-18 16:41:24 +00:00
|
|
|
CLEANFILES += build-grub-pep2elf$(BUILD_EXEEXT)
|
2013-12-16 14:30:50 +00:00
|
|
|
|
2014-01-18 16:41:24 +00:00
|
|
|
build-grub-pe2elf$(BUILD_EXEEXT): $(top_srcdir)/util/grub-pe2elf.c $(top_srcdir)/grub-core/kern/emu/misc.c $(top_srcdir)/util/misc.c
|
2014-01-18 15:50:54 +00:00
|
|
|
$(BUILD_CC) -o $@ -I$(top_srcdir)/include $(BUILD_CFLAGS) $(BUILD_CPPFLAGS) $(BUILD_LDFLAGS) -DGRUB_BUILD=1 -DGRUB_TARGET_WORDSIZE=32 -DGRUB_UTIL=1 -DGRUB_BUILD_PROGRAM_NAME=\"build-grub-pe2elf\" $^
|
2014-01-18 16:41:24 +00:00
|
|
|
CLEANFILES += build-grub-pe2elf$(BUILD_EXEEXT)
|
2013-08-22 15:00:59 +00:00
|
|
|
|
2010-05-06 06:04:04 +00:00
|
|
|
# gentrigtables
|
2014-01-18 16:41:24 +00:00
|
|
|
gentrigtables$(BUILD_EXEEXT): gentrigtables.c
|
2014-01-18 15:50:54 +00:00
|
|
|
$(BUILD_CC) -o $@ -I$(top_srcdir)/include $(BUILD_CFLAGS) $(BUILD_CPPFLAGS) $(BUILD_LDFLAGS) $< $(BUILD_LIBM)
|
2014-01-18 16:41:24 +00:00
|
|
|
CLEANFILES += gentrigtables$(BUILD_EXEEXT)
|
2010-05-06 06:04:04 +00:00
|
|
|
|
2015-12-31 12:09:15 +00:00
|
|
|
build-grub-module-verifier$(BUILD_EXEEXT): $(top_srcdir)/util/grub-module-verifier.c $(top_srcdir)/util/grub-module-verifier32.c $(top_srcdir)/util/grub-module-verifier64.c $(top_srcdir)/grub-core/kern/emu/misc.c $(top_srcdir)/util/misc.c
|
|
|
|
$(BUILD_CC) -o $@ -I$(top_srcdir)/include $(BUILD_CFLAGS) $(BUILD_CPPFLAGS) $(BUILD_LDFLAGS) -DGRUB_BUILD=1 -DGRUB_UTIL=1 -DGRUB_BUILD_PROGRAM_NAME=\"build-grub-module-verifier\" $^
|
|
|
|
CLEANFILES += build-grub-module-verifier$(BUILD_EXEEXT)
|
|
|
|
|
2010-05-06 06:04:04 +00:00
|
|
|
# trigtables.c
|
2014-01-18 16:41:24 +00:00
|
|
|
trigtables.c: gentrigtables$(BUILD_EXEEXT) gentrigtables.c $(top_srcdir)/configure.ac
|
|
|
|
./gentrigtables$(BUILD_EXEEXT) > $@
|
2010-05-06 06:04:04 +00:00
|
|
|
CLEANFILES += trigtables.c
|
|
|
|
|
|
|
|
# XXX Use Automake's LEX & YACC support
|
2010-08-17 13:33:22 +00:00
|
|
|
grub_script.tab.h: script/parser.y
|
|
|
|
$(YACC) -d -p grub_script_yy -b grub_script $<
|
2010-08-06 04:31:54 +00:00
|
|
|
grub_script.tab.c: grub_script.tab.h
|
2010-05-06 06:04:04 +00:00
|
|
|
CLEANFILES += grub_script.tab.c grub_script.tab.h
|
|
|
|
|
|
|
|
# For the lexer.
|
2010-08-17 13:33:22 +00:00
|
|
|
grub_script.yy.h: script/yylex.l
|
|
|
|
$(LEX) -o grub_script.yy.c --header-file=grub_script.yy.h $<
|
2010-08-06 04:31:54 +00:00
|
|
|
grub_script.yy.c: grub_script.yy.h
|
2010-09-25 17:33:05 +00:00
|
|
|
|
2013-06-07 16:23:08 +00:00
|
|
|
rs_decoder.h: $(srcdir)/lib/reed_solomon.c
|
2012-06-05 15:18:04 +00:00
|
|
|
$(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) -Os -I$(top_builddir) -S -DSTANDALONE -o $@ $< -g0 -mregparm=3 -ffreestanding
|
2010-09-25 17:33:05 +00:00
|
|
|
|
2010-05-06 06:04:04 +00:00
|
|
|
CLEANFILES += grub_script.yy.c grub_script.yy.h
|
|
|
|
|
2010-08-20 12:51:31 +00:00
|
|
|
include $(srcdir)/Makefile.core.am
|
2010-08-17 13:33:22 +00:00
|
|
|
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/cache.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/command.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/device.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/disk.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/dl.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/env.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/env_private.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/err.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/file.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/fs.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/i18n.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/kernel.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/list.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/misc.h
|
2015-03-03 19:23:42 +00:00
|
|
|
if COND_emu
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/compiler-rt-emu.h
|
|
|
|
else
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/compiler-rt.h
|
|
|
|
endif
|
2010-08-17 13:33:22 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/mm.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/parser.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/partition.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/term.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/time.h
|
2010-08-25 01:25:18 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/mm_private.h
|
2010-09-01 22:07:55 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/net.h
|
2010-09-04 15:10:10 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/memory.h
|
2010-08-25 01:25:18 +00:00
|
|
|
|
|
|
|
if COND_i386_pc
|
2010-08-17 13:33:22 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_builddir)/include/grub/machine/kernel.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_builddir)/include/grub/machine/pxe.h
|
2010-08-25 21:39:42 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_builddir)/include/grub/machine/int.h
|
2013-03-10 16:45:38 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/i386/tsc.h
|
2010-08-17 13:33:22 +00:00
|
|
|
endif
|
|
|
|
|
2018-12-07 12:11:43 +00:00
|
|
|
if COND_i386_xen_pvh
|
|
|
|
KERNEL_HEADER_FILES += $(top_builddir)/include/grub/machine/kernel.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_builddir)/include/grub/machine/int.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/i386/tsc.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/terminfo.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/extcmd.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/loader.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/lib/arg.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/xen.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/i386/xen/hypercall.h
|
|
|
|
endif
|
|
|
|
|
2010-08-17 13:33:22 +00:00
|
|
|
if COND_i386_efi
|
2018-12-07 12:11:37 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_builddir)/include/grub/machine/kernel.h
|
2010-08-17 13:33:22 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/efi/efi.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/efi/disk.h
|
2013-03-10 16:45:38 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/i386/tsc.h
|
2015-11-13 15:14:53 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/acpi.h
|
2012-05-03 15:26:55 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/pci.h
|
2016-02-12 10:40:51 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/i386/pmtimer.h
|
2010-08-17 13:33:22 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
if COND_i386_coreboot
|
2018-12-07 12:11:37 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_builddir)/include/grub/machine/kernel.h
|
2013-03-10 16:45:38 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/i386/tsc.h
|
2017-05-08 17:06:22 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/coreboot/lbio.h
|
2013-05-30 22:42:33 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/video.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/video_fb.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/gfxterm.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/font.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/bufio.h
|
2015-11-13 15:14:53 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/acpi.h
|
2010-08-17 13:33:22 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
if COND_i386_multiboot
|
2018-12-07 12:11:37 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_builddir)/include/grub/machine/kernel.h
|
2013-03-10 16:45:38 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/i386/tsc.h
|
2015-11-13 15:14:53 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/acpi.h
|
2010-08-17 13:33:22 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
if COND_i386_qemu
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/pci.h
|
2013-03-10 16:45:38 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/i386/tsc.h
|
2010-08-17 13:33:22 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
if COND_i386_ieee1275
|
2018-12-07 12:11:37 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_builddir)/include/grub/machine/kernel.h
|
2010-08-17 13:33:22 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/ieee1275/ieee1275.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/terminfo.h
|
2010-09-30 15:50:01 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/extcmd.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/lib/arg.h
|
2013-03-10 16:45:38 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/i386/tsc.h
|
2010-08-17 13:33:22 +00:00
|
|
|
endif
|
|
|
|
|
2013-11-09 20:29:11 +00:00
|
|
|
if COND_i386_xen
|
2018-12-07 12:11:37 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_builddir)/include/grub/machine/kernel.h
|
2013-11-09 20:29:11 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/xen.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/i386/xen/hypercall.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/terminfo.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/extcmd.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/lib/arg.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/loader.h
|
|
|
|
endif
|
|
|
|
|
|
|
|
if COND_x86_64_xen
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/xen.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/x86_64/xen/hypercall.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/terminfo.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/extcmd.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/lib/arg.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/loader.h
|
|
|
|
endif
|
|
|
|
|
2010-08-17 13:33:22 +00:00
|
|
|
if COND_x86_64_efi
|
2018-12-07 12:11:37 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_builddir)/include/grub/machine/kernel.h
|
2010-08-17 13:33:22 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/efi/efi.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/efi/disk.h
|
2013-03-10 16:45:38 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/i386/tsc.h
|
2012-05-03 15:26:55 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/pci.h
|
2015-11-13 15:14:53 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/acpi.h
|
2016-02-12 10:40:51 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/i386/pmtimer.h
|
2010-08-17 13:33:22 +00:00
|
|
|
endif
|
|
|
|
|
2010-08-31 19:47:26 +00:00
|
|
|
if COND_ia64_efi
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/efi/efi.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/efi/disk.h
|
2015-11-13 15:14:53 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/acpi.h
|
2010-08-31 19:47:26 +00:00
|
|
|
endif
|
|
|
|
|
2011-05-13 14:36:05 +00:00
|
|
|
if COND_mips
|
|
|
|
KERNEL_HEADER_FILES += $(top_builddir)/include/grub/cpu/kernel.h
|
|
|
|
endif
|
|
|
|
|
|
|
|
if COND_mips_arc
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/extcmd.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/arc/arc.h
|
2013-04-25 20:40:03 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/terminfo.h
|
2011-05-13 14:36:05 +00:00
|
|
|
endif
|
|
|
|
|
2011-05-17 12:02:18 +00:00
|
|
|
if COND_mips_qemu_mips
|
2011-07-05 19:00:01 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_builddir)/include/grub/keyboard_layouts.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_builddir)/include/grub/machine/kernel.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/serial.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/loader.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/terminfo.h
|
2011-05-17 12:02:18 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/extcmd.h
|
2011-07-05 19:00:01 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/lib/arg.h
|
2011-05-17 12:02:18 +00:00
|
|
|
endif
|
|
|
|
|
2011-02-19 12:18:05 +00:00
|
|
|
if COND_mips_loongson
|
2010-08-31 12:03:29 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_builddir)/include/grub/keyboard_layouts.h
|
2010-08-17 13:33:22 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_builddir)/include/grub/machine/kernel.h
|
2012-06-11 18:44:38 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_builddir)/include/grub/machine/time.h
|
2010-08-17 13:33:22 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/video.h
|
2013-05-02 16:10:11 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/video_fb.h
|
2010-08-17 13:33:22 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/gfxterm.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/font.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/bufio.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/pci.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/cs5536.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_builddir)/include/grub/machine/pci.h
|
2010-09-04 15:10:10 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/serial.h
|
2010-09-18 11:49:39 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/loader.h
|
2010-09-30 15:50:01 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/terminfo.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/extcmd.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/lib/arg.h
|
2010-08-17 13:33:22 +00:00
|
|
|
endif
|
|
|
|
|
2011-01-14 16:37:11 +00:00
|
|
|
if COND_mips_qemu_mips
|
|
|
|
KERNEL_HEADER_FILES += $(top_builddir)/include/grub/machine/memory.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_builddir)/include/grub/machine/kernel.h
|
|
|
|
endif
|
|
|
|
|
2010-08-17 13:33:22 +00:00
|
|
|
if COND_powerpc_ieee1275
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/ieee1275/ieee1275.h
|
2010-09-30 15:50:01 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/terminfo.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/extcmd.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/lib/arg.h
|
2010-08-17 13:33:22 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
if COND_sparc64_ieee1275
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/ieee1275/ieee1275.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/sparc64/ieee1275/ieee1275.h
|
2010-09-30 15:50:01 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/terminfo.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/extcmd.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/lib/arg.h
|
2010-08-17 13:33:22 +00:00
|
|
|
endif
|
|
|
|
|
2013-04-07 00:41:07 +00:00
|
|
|
if COND_arm_uboot
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/uboot/uboot.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/uboot/disk.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/extcmd.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/lib/arg.h
|
2013-12-23 04:01:58 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/arm/system.h
|
2013-04-07 00:41:07 +00:00
|
|
|
endif
|
|
|
|
|
2017-05-08 18:53:28 +00:00
|
|
|
if COND_arm_coreboot
|
2017-05-08 19:42:37 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_builddir)/include/grub/keyboard_layouts.h
|
2017-05-08 18:53:28 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/arm/system.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/video.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/video_fb.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/gfxterm.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/font.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/bufio.h
|
2017-05-08 19:29:48 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/fdt.h
|
2017-05-08 20:06:04 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/dma.h
|
2017-05-08 18:53:28 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/arm/coreboot/kernel.h
|
2017-05-08 19:29:48 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/fdtbus.h
|
2017-05-08 18:53:28 +00:00
|
|
|
endif
|
|
|
|
|
2013-04-07 00:41:07 +00:00
|
|
|
if COND_arm_efi
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/efi/efi.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/efi/disk.h
|
2013-12-23 04:01:58 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/arm/system.h
|
2015-11-13 15:14:53 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/acpi.h
|
2013-04-07 00:41:07 +00:00
|
|
|
endif
|
|
|
|
|
2013-11-16 19:52:55 +00:00
|
|
|
if COND_arm64_efi
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/efi/efi.h
|
2019-02-12 10:31:07 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/efi/disk.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/acpi.h
|
|
|
|
endif
|
|
|
|
|
|
|
|
if COND_riscv32_efi
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/efi/efi.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/efi/disk.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/acpi.h
|
|
|
|
endif
|
|
|
|
|
|
|
|
if COND_riscv64_efi
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/efi/efi.h
|
2013-11-16 19:52:55 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/efi/disk.h
|
2015-11-13 15:14:53 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/acpi.h
|
2013-11-16 19:52:55 +00:00
|
|
|
endif
|
|
|
|
|
2010-08-17 13:33:22 +00:00
|
|
|
if COND_emu
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/datetime.h
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/emu/misc.h
|
2013-10-15 09:55:20 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/emu/net.h
|
2013-10-15 09:06:57 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/emu/hostdisk.h
|
2013-10-15 11:56:10 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/emu/hostfile.h
|
2013-04-26 22:02:23 +00:00
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/extcmd.h
|
2010-08-17 13:33:22 +00:00
|
|
|
if COND_GRUB_EMU_SDL
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/sdl.h
|
|
|
|
endif
|
|
|
|
if COND_GRUB_EMU_PCI
|
|
|
|
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/libpciaccess.h
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
symlist.h: $(top_builddir)/config.h $(KERNEL_HEADER_FILES)
|
|
|
|
@list='$^'; \
|
|
|
|
for p in $$list; do \
|
|
|
|
echo "#include <$$p>" >> $@ || (rm -f $@; exit 1); \
|
|
|
|
done
|
|
|
|
CLEANFILES += symlist.h
|
|
|
|
BUILT_SOURCES += symlist.h
|
|
|
|
|
|
|
|
symlist.c: symlist.h gensymlist.sh
|
|
|
|
$(TARGET_CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS_KERNEL) $(CPPFLAGS) -DGRUB_SYMBOL_GENERATOR=1 symlist.h > symlist.p || (rm -f symlist.p; exit 1)
|
2017-01-22 21:55:30 +00:00
|
|
|
cat symlist.p | $(SHELL) $(srcdir)/gensymlist.sh $(top_builddir)/config.h $(KERNEL_HEADER_FILES) >$@ || (rm -f $@; exit 1)
|
2010-08-17 13:33:22 +00:00
|
|
|
rm -f symlist.p
|
|
|
|
CLEANFILES += symlist.c
|
|
|
|
BUILT_SOURCES += symlist.c
|
|
|
|
|
2010-09-19 20:22:43 +00:00
|
|
|
if COND_HAVE_ASM_USCORE
|
2010-09-27 09:11:38 +00:00
|
|
|
ASM_PREFIX=_
|
2010-09-19 20:22:43 +00:00
|
|
|
else
|
|
|
|
ASM_PREFIX=
|
|
|
|
endif
|
|
|
|
|
2010-08-17 13:33:22 +00:00
|
|
|
noinst_DATA += kernel_syms.lst
|
2010-09-19 20:22:43 +00:00
|
|
|
|
2010-08-17 13:33:22 +00:00
|
|
|
kernel_syms.lst: $(KERNEL_HEADER_FILES) $(top_builddir)/config.h
|
|
|
|
$(TARGET_CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS_KERNEL) $(CPPFLAGS) $(CFLAGS) -DGRUB_SYMBOL_GENERATOR=1 $^ >kernel_syms.input
|
|
|
|
cat kernel_syms.input | grep -v '^#' | sed -n \
|
2010-09-27 09:11:38 +00:00
|
|
|
-e '/EXPORT_FUNC *([a-zA-Z0-9_]*)/{s/.*EXPORT_FUNC *(\([a-zA-Z0-9_]*\)).*/defined kernel '"$(ASM_PREFIX)"'\1/;p;}' \
|
|
|
|
-e '/EXPORT_VAR *([a-zA-Z0-9_]*)/{s/.*EXPORT_VAR *(\([a-zA-Z0-9_]*\)).*/defined kernel '"$(ASM_PREFIX)"'\1/;p;}' \
|
2010-08-17 13:33:22 +00:00
|
|
|
| sort -u >$@
|
|
|
|
rm -f kernel_syms.input
|
|
|
|
CLEANFILES += kernel_syms.lst
|
|
|
|
|
|
|
|
if COND_emu
|
|
|
|
kern/emu/grub_emu-main.$(OBJEXT):grub_emu_init.h
|
|
|
|
grub_emu-grub_emu_init.$(OBJEXT):grub_emu_init.h
|
|
|
|
kern/emu/grub_emu_dyn-main.$(OBJEXT):grub_emu_init.h
|
|
|
|
grub_emu_dyn-grub_emu_init.$(OBJEXT):grub_emu_init.h
|
|
|
|
|
2014-01-18 19:15:40 +00:00
|
|
|
grub_emu_init.h: genemuinitheader.sh $(MODULE_FILES)
|
|
|
|
rm -f $@; echo $(MODULE_FILES) | sh $(srcdir)/genemuinitheader.sh $(TARGET_NM) > $@
|
2010-08-17 13:33:22 +00:00
|
|
|
CLEANFILES += grub_emu_init.h
|
|
|
|
|
2014-01-18 19:15:40 +00:00
|
|
|
grub_emu_init.c: grub_emu_init.h genemuinit.sh $(MODULE_FILES)
|
|
|
|
rm -f $@; echo $(MODULE_FILES) | sh $(srcdir)/genemuinit.sh $(TARGET_NM) > $@
|
2010-08-17 13:33:22 +00:00
|
|
|
CLEANFILES += grub_emu_init.c
|
|
|
|
endif
|
2010-05-06 06:04:04 +00:00
|
|
|
|
2010-08-29 05:08:46 +00:00
|
|
|
# List files
|
2010-05-06 06:04:04 +00:00
|
|
|
|
2010-08-29 15:52:41 +00:00
|
|
|
fs.lst: $(MARKER_FILES)
|
2010-08-29 05:08:46 +00:00
|
|
|
(for pp in $^; do \
|
2010-08-29 15:52:41 +00:00
|
|
|
b=`basename $$pp .marker`; \
|
|
|
|
if grep 'FS_LIST_MARKER' $$pp >/dev/null 2>&1; then \
|
2010-08-29 05:08:46 +00:00
|
|
|
echo $$b; \
|
|
|
|
fi; \
|
|
|
|
done) | sort -u > $@
|
2010-05-06 06:04:04 +00:00
|
|
|
platform_DATA += fs.lst
|
2010-08-17 13:33:22 +00:00
|
|
|
CLEANFILES += fs.lst
|
|
|
|
|
2010-08-29 15:52:41 +00:00
|
|
|
command.lst: $(MARKER_FILES)
|
2010-08-29 05:08:46 +00:00
|
|
|
(for pp in $^; do \
|
2010-08-29 15:52:41 +00:00
|
|
|
b=`basename $$pp .marker`; \
|
|
|
|
sed -n \
|
|
|
|
-e "/EXTCOMMAND_LIST_MARKER *( *\"/{s/.*( *\"\([^\"]*\)\".*/*\1: $$b/;p;}" \
|
2010-11-23 12:52:40 +00:00
|
|
|
-e "/P1COMMAND_LIST_MARKER *( *\"/{s/.*( *\"\([^\"]*\)\".*/*\1: $$b/;p;}" \
|
|
|
|
-e "/COMMAND_LIST_MARKER *( *\"/{s/.*( *\"\([^\"]*\)\".*/\1: $$b/;p;}" $$pp; \
|
2010-08-29 05:08:46 +00:00
|
|
|
done) | sort -u > $@
|
|
|
|
platform_DATA += command.lst
|
2010-08-17 13:33:22 +00:00
|
|
|
CLEANFILES += command.lst
|
|
|
|
|
2010-08-29 15:52:41 +00:00
|
|
|
partmap.lst: $(MARKER_FILES)
|
2010-08-29 05:08:46 +00:00
|
|
|
(for pp in $^; do \
|
2010-08-29 15:52:41 +00:00
|
|
|
b=`basename $$pp .marker`; \
|
|
|
|
if grep 'PARTMAP_LIST_MARKER' $$pp >/dev/null 2>&1; then \
|
2010-08-29 05:08:46 +00:00
|
|
|
echo $$b; \
|
|
|
|
fi; \
|
|
|
|
done) | sort -u > $@
|
|
|
|
platform_DATA += partmap.lst
|
2010-08-17 13:33:22 +00:00
|
|
|
CLEANFILES += partmap.lst
|
|
|
|
|
2010-08-29 15:52:41 +00:00
|
|
|
terminal.lst: $(MARKER_FILES)
|
2010-08-29 05:08:46 +00:00
|
|
|
(for pp in $^; do \
|
2010-08-29 15:52:41 +00:00
|
|
|
b=`basename $$pp .marker`; \
|
|
|
|
sed -n \
|
|
|
|
-e "/INPUT_TERMINAL_LIST_MARKER *( *\"/{s/.*( *\"\([^\"]*\)\".*/i\1: $$b/;p;}" \
|
|
|
|
-e "/OUTPUT_TERMINAL_LIST_MARKER *( *\"/{s/.*( *\"\([^\"]*\)\".*/o\1: $$b/;p;}" $$pp; \
|
2010-08-29 05:08:46 +00:00
|
|
|
done) | sort -u > $@
|
|
|
|
platform_DATA += terminal.lst
|
2010-08-17 13:33:22 +00:00
|
|
|
CLEANFILES += terminal.lst
|
|
|
|
|
2017-05-08 19:19:59 +00:00
|
|
|
fdt.lst: $(MARKER_FILES)
|
|
|
|
(for pp in $^; do \
|
|
|
|
b=`basename $$pp .marker`; \
|
|
|
|
sed -n \
|
|
|
|
-e "/FDT_DRIVER_LIST_MARKER *( *\"/{s/.*( *\"\([^\"]*\)\".*/i\1: $$b/;p;}" \
|
|
|
|
-e "/FDT_DRIVER_LIST_MARKER *( *\"/{s/.*( *\"\([^\"]*\)\".*/o\1: $$b/;p;}" $$pp; \
|
|
|
|
done) | sort -u > $@
|
|
|
|
platform_DATA += fdt.lst
|
|
|
|
CLEANFILES += fdt.lst
|
|
|
|
|
2010-08-29 15:52:41 +00:00
|
|
|
parttool.lst: $(MARKER_FILES)
|
2010-08-29 05:08:46 +00:00
|
|
|
(for pp in $^; do \
|
2010-08-29 15:52:41 +00:00
|
|
|
b=`basename $$pp .marker`; \
|
|
|
|
sed -n \
|
|
|
|
-e "/PARTTOOL_LIST_MARKER *( *\"/{s/.*( *\"\([^\"]*\)\".*/\1: $$b/;p;}" $$pp; \
|
2010-08-29 05:08:46 +00:00
|
|
|
done) | sort -u > $@
|
|
|
|
platform_DATA += parttool.lst
|
2010-08-17 13:33:22 +00:00
|
|
|
CLEANFILES += parttool.lst
|
|
|
|
|
2010-08-29 15:52:41 +00:00
|
|
|
video.lst: $(MARKER_FILES)
|
2010-08-29 05:08:46 +00:00
|
|
|
(for pp in $^; do \
|
2010-08-29 15:52:41 +00:00
|
|
|
b=`basename $$pp .marker`; \
|
|
|
|
if grep 'VIDEO_LIST_MARKER' $$pp >/dev/null 2>&1; then \
|
2010-08-29 05:08:46 +00:00
|
|
|
echo $$b; \
|
|
|
|
fi; \
|
|
|
|
done) | sort -u > $@
|
|
|
|
platform_DATA += video.lst
|
2010-08-17 13:33:22 +00:00
|
|
|
CLEANFILES += video.lst
|
2010-05-06 06:04:04 +00:00
|
|
|
|
|
|
|
# but, crypto.lst is simply copied
|
2010-08-17 13:33:22 +00:00
|
|
|
crypto.lst: $(srcdir)/lib/libgcrypt-grub/cipher/crypto.lst
|
2010-05-06 06:04:04 +00:00
|
|
|
cp $^ $@
|
2010-08-29 05:08:46 +00:00
|
|
|
platform_DATA += crypto.lst
|
2010-08-17 13:33:22 +00:00
|
|
|
CLEANFILES += crypto.lst
|
2010-05-06 06:04:04 +00:00
|
|
|
|
2010-08-29 05:47:30 +00:00
|
|
|
syminfo.lst: gensyminfo.sh kernel_syms.lst $(MODULE_FILES)
|
|
|
|
cat kernel_syms.lst > $@.new
|
|
|
|
for m in $(MODULE_FILES); do \
|
|
|
|
sh $< $$m >> $@.new || exit 1; \
|
|
|
|
done
|
|
|
|
mv $@.new $@
|
2010-08-29 05:08:46 +00:00
|
|
|
|
2010-05-06 06:04:04 +00:00
|
|
|
# generate global module dependencies list
|
2012-02-26 17:09:07 +00:00
|
|
|
moddep.lst: syminfo.lst genmoddep.awk video.lst
|
2012-10-12 13:04:02 +00:00
|
|
|
cat $< | sort | $(AWK) -f $(srcdir)/genmoddep.awk > $@ || (rm -f $@; exit 1)
|
2010-08-29 05:47:30 +00:00
|
|
|
platform_DATA += moddep.lst
|
2010-08-29 07:05:52 +00:00
|
|
|
CLEANFILES += config.log syminfo.lst moddep.lst
|
2010-08-29 11:13:07 +00:00
|
|
|
|
2016-01-01 08:13:54 +00:00
|
|
|
$(MOD_FILES): %.mod : genmod.sh moddep.lst %.module$(EXEEXT) build-grub-module-verifier$(BUILD_EXEEXT)
|
2011-01-13 21:23:49 +00:00
|
|
|
TARGET_OBJ2ELF=@TARGET_OBJ2ELF@ sh $^ $@
|
2010-08-29 11:13:07 +00:00
|
|
|
platform_DATA += $(MOD_FILES)
|
2011-05-17 23:38:01 +00:00
|
|
|
platform_DATA += modinfo.sh
|
2010-08-29 11:13:07 +00:00
|
|
|
CLEANFILES += $(MOD_FILES)
|
2010-05-06 06:04:04 +00:00
|
|
|
|
|
|
|
if COND_ENABLE_EFIEMU
|
|
|
|
efiemu32.o: efiemu/runtime/efiemu.c $(TARGET_OBJ2ELF)
|
2013-11-26 10:38:12 +00:00
|
|
|
-rm -f $@
|
|
|
|
-rm -f $@.bin
|
|
|
|
$(TARGET_CC) $(DEFS) $(INCLUDES) $(CPPFLAGS_EFIEMU) $(CPPFLAGS_DEFAULT) -m32 -Wall -Werror -nostdlib -static -O2 -c -o $@.bin $<
|
2013-11-14 22:17:18 +00:00
|
|
|
if test "x$(TARGET_APPLE_LINKER)" = x1; then \
|
2013-11-24 04:27:20 +00:00
|
|
|
$(TARGET_OBJCONV) -felf32 -nu -nd $@.bin $@ || exit 1; \
|
2013-11-26 10:38:12 +00:00
|
|
|
rm -f $@.bin ; \
|
|
|
|
elif test ! -z "$(TARGET_OBJ2ELF)"; then \
|
|
|
|
$(TARGET_OBJ2ELF) $@.bin || (rm -f $@.bin; exit 1); \
|
|
|
|
mv $@.bin $@ ; \
|
2010-05-06 06:04:04 +00:00
|
|
|
else \
|
2013-11-26 10:38:12 +00:00
|
|
|
mv $@.bin $@ ; \
|
2010-05-06 06:04:04 +00:00
|
|
|
fi
|
|
|
|
|
2013-11-24 17:12:17 +00:00
|
|
|
# Link format -arch,x86_64 means Apple linker
|
2010-05-06 06:04:04 +00:00
|
|
|
efiemu64_c.o: efiemu/runtime/efiemu.c
|
2013-11-26 10:38:12 +00:00
|
|
|
$(TARGET_CC) $(DEFS) $(INCLUDES) $(CPPFLAGS_EFIEMU) $(CPPFLAGS_DEFAULT) -m64 -nostdlib -Wall -Werror -O2 -mcmodel=large -mno-red-zone -c -o $@ $<
|
2010-05-06 06:04:04 +00:00
|
|
|
|
|
|
|
efiemu64_s.o: efiemu/runtime/efiemu.S
|
2013-11-26 10:38:12 +00:00
|
|
|
$(TARGET_CC) $(DEFS) $(INCLUDES) $(CPPFLAGS_EFIEMU) $(CPPFLAGS_DEFAULT) -m64 -Wall -Werror -nostdlib -O2 -mcmodel=large -mno-red-zone -c -o $@ $<
|
2010-05-06 06:04:04 +00:00
|
|
|
|
|
|
|
efiemu64.o: efiemu64_c.o efiemu64_s.o $(TARGET_OBJ2ELEF)
|
2013-11-26 10:38:12 +00:00
|
|
|
-rm -f $@
|
|
|
|
-rm -f $@.bin
|
|
|
|
$(TARGET_CC) -m64 $(EFIEMU64_LINK_FORMAT) -nostdlib -static -Wl,-r -o $@.bin $^
|
2013-11-24 17:12:17 +00:00
|
|
|
if test "x$(EFIEMU64_LINK_FORMAT)" = x-arch,x86_64; then \
|
2013-11-24 04:27:20 +00:00
|
|
|
$(TARGET_OBJCONV) -felf64 -nu -nd $@.bin $@ || exit 1; \
|
2010-05-06 06:04:04 +00:00
|
|
|
rm -f $@.bin; \
|
|
|
|
else \
|
2013-11-26 10:38:12 +00:00
|
|
|
mv $@.bin $@ ; \
|
2010-05-06 06:04:04 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
platform_DATA += efiemu32.o efiemu64.o
|
|
|
|
CLEANFILES += efiemu32.o efiemu64.o efiemu64_c.o efiemu64_s.o
|
|
|
|
endif
|
2013-11-16 19:21:16 +00:00
|
|
|
|
|
|
|
windowsdir=$(top_builddir)/$(PACKAGE)-$(VERSION)-for-windows
|
|
|
|
windowsdir: $(PROGRAMS) $(starfield_DATA) $(platform_DATA)
|
|
|
|
test -d $(windowsdir)/$(target_cpu)-$(platform) || mkdir $(windowsdir)/$(target_cpu)-$(platform)
|
|
|
|
for x in $(platform_DATA); do \
|
|
|
|
cp -fp $$x $(windowsdir)/$(target_cpu)-$(platform)/$$x; \
|
|
|
|
done
|