diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 10:54:16 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 10:54:16 +0000 |
commit | 485f6ecd453d8a2fd8b9b9fadea03159d8b50797 (patch) | |
tree | 32451fa3cdd9321fb2591fada9891b2cb70a9cd1 /grub-core/Makefile.core.am | |
parent | Initial commit. (diff) | |
download | grub2-485f6ecd453d8a2fd8b9b9fadea03159d8b50797.tar.xz grub2-485f6ecd453d8a2fd8b9b9fadea03159d8b50797.zip |
Adding upstream version 2.06.upstream/2.06upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'grub-core/Makefile.core.am')
-rw-r--r-- | grub-core/Makefile.core.am | 23794 |
1 files changed, 23794 insertions, 0 deletions
diff --git a/grub-core/Makefile.core.am b/grub-core/Makefile.core.am new file mode 100644 index 0000000..e822f60 --- /dev/null +++ b/grub-core/Makefile.core.am @@ -0,0 +1,23794 @@ +platform_PROGRAMS += disk.module +MODULE_FILES += disk.module$(EXEEXT) +disk_module_SOURCES = lib/disk.c ## platform sources +nodist_disk_module_SOURCES = ## platform nodist sources +disk_module_LDADD = +disk_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +disk_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +disk_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +disk_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +disk_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += kern/disk_common.c +BUILT_SOURCES += $(nodist_disk_module_SOURCES) +CLEANFILES += $(nodist_disk_module_SOURCES) +MOD_FILES += disk.mod +MARKER_FILES += disk.marker +CLEANFILES += disk.marker + +disk.marker: $(disk_module_SOURCES) $(nodist_disk_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(disk_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += trig.module +MODULE_FILES += trig.module$(EXEEXT) +trig_module_SOURCES = ## platform sources +nodist_trig_module_SOURCES = trigtables.c ## platform nodist sources +trig_module_LDADD = +trig_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +trig_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +trig_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +trig_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +trig_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += gentrigtables.c +BUILT_SOURCES += $(nodist_trig_module_SOURCES) +CLEANFILES += $(nodist_trig_module_SOURCES) +MOD_FILES += trig.mod +MARKER_FILES += trig.marker +CLEANFILES += trig.marker + +trig.marker: $(trig_module_SOURCES) $(nodist_trig_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(trig_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new + +if COND_i386_pc +platform_PROGRAMS += cs5536.module +MODULE_FILES += cs5536.module$(EXEEXT) +cs5536_module_SOURCES = bus/cs5536.c ## platform sources +nodist_cs5536_module_SOURCES = ## platform nodist sources +cs5536_module_LDADD = +cs5536_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cs5536_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cs5536_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cs5536_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cs5536_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cs5536_module_SOURCES) +CLEANFILES += $(nodist_cs5536_module_SOURCES) +MOD_FILES += cs5536.mod +MARKER_FILES += cs5536.marker +CLEANFILES += cs5536.marker + +cs5536.marker: $(cs5536_module_SOURCES) $(nodist_cs5536_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cs5536_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += cs5536.module +MODULE_FILES += cs5536.module$(EXEEXT) +cs5536_module_SOURCES = bus/cs5536.c ## platform sources +nodist_cs5536_module_SOURCES = ## platform nodist sources +cs5536_module_LDADD = +cs5536_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cs5536_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cs5536_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cs5536_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cs5536_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cs5536_module_SOURCES) +CLEANFILES += $(nodist_cs5536_module_SOURCES) +MOD_FILES += cs5536.mod +MARKER_FILES += cs5536.marker +CLEANFILES += cs5536.marker + +cs5536.marker: $(cs5536_module_SOURCES) $(nodist_cs5536_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cs5536_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += cs5536.module +MODULE_FILES += cs5536.module$(EXEEXT) +cs5536_module_SOURCES = bus/cs5536.c ## platform sources +nodist_cs5536_module_SOURCES = ## platform nodist sources +cs5536_module_LDADD = +cs5536_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cs5536_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cs5536_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cs5536_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cs5536_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cs5536_module_SOURCES) +CLEANFILES += $(nodist_cs5536_module_SOURCES) +MOD_FILES += cs5536.mod +MARKER_FILES += cs5536.marker +CLEANFILES += cs5536.marker + +cs5536.marker: $(cs5536_module_SOURCES) $(nodist_cs5536_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cs5536_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += cs5536.module +MODULE_FILES += cs5536.module$(EXEEXT) +cs5536_module_SOURCES = bus/cs5536.c ## platform sources +nodist_cs5536_module_SOURCES = ## platform nodist sources +cs5536_module_LDADD = +cs5536_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cs5536_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cs5536_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cs5536_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cs5536_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cs5536_module_SOURCES) +CLEANFILES += $(nodist_cs5536_module_SOURCES) +MOD_FILES += cs5536.mod +MARKER_FILES += cs5536.marker +CLEANFILES += cs5536.marker + +cs5536.marker: $(cs5536_module_SOURCES) $(nodist_cs5536_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cs5536_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += cs5536.module +MODULE_FILES += cs5536.module$(EXEEXT) +cs5536_module_SOURCES = bus/cs5536.c ## platform sources +nodist_cs5536_module_SOURCES = ## platform nodist sources +cs5536_module_LDADD = +cs5536_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cs5536_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cs5536_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cs5536_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cs5536_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cs5536_module_SOURCES) +CLEANFILES += $(nodist_cs5536_module_SOURCES) +MOD_FILES += cs5536.mod +MARKER_FILES += cs5536.marker +CLEANFILES += cs5536.marker + +cs5536.marker: $(cs5536_module_SOURCES) $(nodist_cs5536_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cs5536_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += cs5536.module +MODULE_FILES += cs5536.module$(EXEEXT) +cs5536_module_SOURCES = bus/cs5536.c ## platform sources +nodist_cs5536_module_SOURCES = ## platform nodist sources +cs5536_module_LDADD = +cs5536_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cs5536_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cs5536_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cs5536_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cs5536_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cs5536_module_SOURCES) +CLEANFILES += $(nodist_cs5536_module_SOURCES) +MOD_FILES += cs5536.mod +MARKER_FILES += cs5536.marker +CLEANFILES += cs5536.marker + +cs5536.marker: $(cs5536_module_SOURCES) $(nodist_cs5536_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cs5536_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += cs5536.module +MODULE_FILES += cs5536.module$(EXEEXT) +cs5536_module_SOURCES = bus/cs5536.c ## platform sources +nodist_cs5536_module_SOURCES = ## platform nodist sources +cs5536_module_LDADD = +cs5536_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cs5536_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cs5536_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cs5536_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cs5536_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cs5536_module_SOURCES) +CLEANFILES += $(nodist_cs5536_module_SOURCES) +MOD_FILES += cs5536.mod +MARKER_FILES += cs5536.marker +CLEANFILES += cs5536.marker + +cs5536.marker: $(cs5536_module_SOURCES) $(nodist_cs5536_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cs5536_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_loongson +platform_PROGRAMS += lsspd.module +MODULE_FILES += lsspd.module$(EXEEXT) +lsspd_module_SOURCES = commands/mips/loongson/lsspd.c ## platform sources +nodist_lsspd_module_SOURCES = ## platform nodist sources +lsspd_module_LDADD = +lsspd_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lsspd_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lsspd_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lsspd_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lsspd_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lsspd_module_SOURCES) +CLEANFILES += $(nodist_lsspd_module_SOURCES) +MOD_FILES += lsspd.mod +MARKER_FILES += lsspd.marker +CLEANFILES += lsspd.marker + +lsspd.marker: $(lsspd_module_SOURCES) $(nodist_lsspd_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lsspd_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += usb.module +MODULE_FILES += usb.module$(EXEEXT) +usb_module_SOURCES = bus/usb/usb.c bus/usb/usbtrans.c bus/usb/usbhub.c ## platform sources +nodist_usb_module_SOURCES = ## platform nodist sources +usb_module_LDADD = +usb_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usb_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usb_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usb_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usb_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usb_module_SOURCES) +CLEANFILES += $(nodist_usb_module_SOURCES) +MOD_FILES += usb.mod +MARKER_FILES += usb.marker +CLEANFILES += usb.marker + +usb.marker: $(usb_module_SOURCES) $(nodist_usb_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usb_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += usb.module +MODULE_FILES += usb.module$(EXEEXT) +usb_module_SOURCES = bus/usb/usb.c bus/usb/usbtrans.c bus/usb/usbhub.c ## platform sources +nodist_usb_module_SOURCES = ## platform nodist sources +usb_module_LDADD = +usb_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usb_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usb_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usb_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usb_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usb_module_SOURCES) +CLEANFILES += $(nodist_usb_module_SOURCES) +MOD_FILES += usb.mod +MARKER_FILES += usb.marker +CLEANFILES += usb.marker + +usb.marker: $(usb_module_SOURCES) $(nodist_usb_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usb_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += usb.module +MODULE_FILES += usb.module$(EXEEXT) +usb_module_SOURCES = bus/usb/usb.c bus/usb/usbtrans.c bus/usb/usbhub.c ## platform sources +nodist_usb_module_SOURCES = ## platform nodist sources +usb_module_LDADD = +usb_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usb_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usb_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usb_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usb_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usb_module_SOURCES) +CLEANFILES += $(nodist_usb_module_SOURCES) +MOD_FILES += usb.mod +MARKER_FILES += usb.marker +CLEANFILES += usb.marker + +usb.marker: $(usb_module_SOURCES) $(nodist_usb_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usb_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += usb.module +MODULE_FILES += usb.module$(EXEEXT) +usb_module_SOURCES = bus/usb/usb.c bus/usb/usbtrans.c bus/usb/usbhub.c ## platform sources +nodist_usb_module_SOURCES = ## platform nodist sources +usb_module_LDADD = +usb_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usb_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usb_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usb_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usb_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usb_module_SOURCES) +CLEANFILES += $(nodist_usb_module_SOURCES) +MOD_FILES += usb.mod +MARKER_FILES += usb.marker +CLEANFILES += usb.marker + +usb.marker: $(usb_module_SOURCES) $(nodist_usb_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usb_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += usb.module +MODULE_FILES += usb.module$(EXEEXT) +usb_module_SOURCES = bus/usb/usb.c bus/usb/usbtrans.c bus/usb/usbhub.c ## platform sources +nodist_usb_module_SOURCES = ## platform nodist sources +usb_module_LDADD = +usb_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usb_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usb_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usb_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usb_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usb_module_SOURCES) +CLEANFILES += $(nodist_usb_module_SOURCES) +MOD_FILES += usb.mod +MARKER_FILES += usb.marker +CLEANFILES += usb.marker + +usb.marker: $(usb_module_SOURCES) $(nodist_usb_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usb_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += usb.module +MODULE_FILES += usb.module$(EXEEXT) +usb_module_SOURCES = bus/usb/usb.c bus/usb/usbtrans.c bus/usb/usbhub.c ## platform sources +nodist_usb_module_SOURCES = ## platform nodist sources +usb_module_LDADD = +usb_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usb_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usb_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usb_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usb_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usb_module_SOURCES) +CLEANFILES += $(nodist_usb_module_SOURCES) +MOD_FILES += usb.mod +MARKER_FILES += usb.marker +CLEANFILES += usb.marker + +usb.marker: $(usb_module_SOURCES) $(nodist_usb_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usb_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += usb.module +MODULE_FILES += usb.module$(EXEEXT) +usb_module_SOURCES = bus/usb/usb.c bus/usb/usbtrans.c bus/usb/usbhub.c ## platform sources +nodist_usb_module_SOURCES = ## platform nodist sources +usb_module_LDADD = +usb_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usb_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usb_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usb_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usb_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usb_module_SOURCES) +CLEANFILES += $(nodist_usb_module_SOURCES) +MOD_FILES += usb.mod +MARKER_FILES += usb.marker +CLEANFILES += usb.marker + +usb.marker: $(usb_module_SOURCES) $(nodist_usb_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usb_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_loongson +platform_PROGRAMS += usb.module +MODULE_FILES += usb.module$(EXEEXT) +usb_module_SOURCES = bus/usb/usb.c bus/usb/usbtrans.c bus/usb/usbhub.c ## platform sources +nodist_usb_module_SOURCES = ## platform nodist sources +usb_module_LDADD = +usb_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usb_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usb_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usb_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usb_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usb_module_SOURCES) +CLEANFILES += $(nodist_usb_module_SOURCES) +MOD_FILES += usb.mod +MARKER_FILES += usb.marker +CLEANFILES += usb.marker + +usb.marker: $(usb_module_SOURCES) $(nodist_usb_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usb_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_coreboot +platform_PROGRAMS += usb.module +MODULE_FILES += usb.module$(EXEEXT) +usb_module_SOURCES = bus/usb/usb.c bus/usb/usbtrans.c bus/usb/usbhub.c ## platform sources +nodist_usb_module_SOURCES = ## platform nodist sources +usb_module_LDADD = +usb_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usb_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usb_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usb_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usb_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usb_module_SOURCES) +CLEANFILES += $(nodist_usb_module_SOURCES) +MOD_FILES += usb.mod +MARKER_FILES += usb.marker +CLEANFILES += usb.marker + +usb.marker: $(usb_module_SOURCES) $(nodist_usb_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usb_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += usbserial_common.module +MODULE_FILES += usbserial_common.module$(EXEEXT) +usbserial_common_module_SOURCES = bus/usb/serial/common.c ## platform sources +nodist_usbserial_common_module_SOURCES = ## platform nodist sources +usbserial_common_module_LDADD = +usbserial_common_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbserial_common_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbserial_common_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbserial_common_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbserial_common_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbserial_common_module_SOURCES) +CLEANFILES += $(nodist_usbserial_common_module_SOURCES) +MOD_FILES += usbserial_common.mod +MARKER_FILES += usbserial_common.marker +CLEANFILES += usbserial_common.marker + +usbserial_common.marker: $(usbserial_common_module_SOURCES) $(nodist_usbserial_common_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbserial_common_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += usbserial_common.module +MODULE_FILES += usbserial_common.module$(EXEEXT) +usbserial_common_module_SOURCES = bus/usb/serial/common.c ## platform sources +nodist_usbserial_common_module_SOURCES = ## platform nodist sources +usbserial_common_module_LDADD = +usbserial_common_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbserial_common_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbserial_common_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbserial_common_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbserial_common_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbserial_common_module_SOURCES) +CLEANFILES += $(nodist_usbserial_common_module_SOURCES) +MOD_FILES += usbserial_common.mod +MARKER_FILES += usbserial_common.marker +CLEANFILES += usbserial_common.marker + +usbserial_common.marker: $(usbserial_common_module_SOURCES) $(nodist_usbserial_common_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbserial_common_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += usbserial_common.module +MODULE_FILES += usbserial_common.module$(EXEEXT) +usbserial_common_module_SOURCES = bus/usb/serial/common.c ## platform sources +nodist_usbserial_common_module_SOURCES = ## platform nodist sources +usbserial_common_module_LDADD = +usbserial_common_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbserial_common_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbserial_common_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbserial_common_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbserial_common_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbserial_common_module_SOURCES) +CLEANFILES += $(nodist_usbserial_common_module_SOURCES) +MOD_FILES += usbserial_common.mod +MARKER_FILES += usbserial_common.marker +CLEANFILES += usbserial_common.marker + +usbserial_common.marker: $(usbserial_common_module_SOURCES) $(nodist_usbserial_common_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbserial_common_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += usbserial_common.module +MODULE_FILES += usbserial_common.module$(EXEEXT) +usbserial_common_module_SOURCES = bus/usb/serial/common.c ## platform sources +nodist_usbserial_common_module_SOURCES = ## platform nodist sources +usbserial_common_module_LDADD = +usbserial_common_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbserial_common_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbserial_common_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbserial_common_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbserial_common_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbserial_common_module_SOURCES) +CLEANFILES += $(nodist_usbserial_common_module_SOURCES) +MOD_FILES += usbserial_common.mod +MARKER_FILES += usbserial_common.marker +CLEANFILES += usbserial_common.marker + +usbserial_common.marker: $(usbserial_common_module_SOURCES) $(nodist_usbserial_common_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbserial_common_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += usbserial_common.module +MODULE_FILES += usbserial_common.module$(EXEEXT) +usbserial_common_module_SOURCES = bus/usb/serial/common.c ## platform sources +nodist_usbserial_common_module_SOURCES = ## platform nodist sources +usbserial_common_module_LDADD = +usbserial_common_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbserial_common_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbserial_common_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbserial_common_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbserial_common_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbserial_common_module_SOURCES) +CLEANFILES += $(nodist_usbserial_common_module_SOURCES) +MOD_FILES += usbserial_common.mod +MARKER_FILES += usbserial_common.marker +CLEANFILES += usbserial_common.marker + +usbserial_common.marker: $(usbserial_common_module_SOURCES) $(nodist_usbserial_common_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbserial_common_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += usbserial_common.module +MODULE_FILES += usbserial_common.module$(EXEEXT) +usbserial_common_module_SOURCES = bus/usb/serial/common.c ## platform sources +nodist_usbserial_common_module_SOURCES = ## platform nodist sources +usbserial_common_module_LDADD = +usbserial_common_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbserial_common_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbserial_common_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbserial_common_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbserial_common_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbserial_common_module_SOURCES) +CLEANFILES += $(nodist_usbserial_common_module_SOURCES) +MOD_FILES += usbserial_common.mod +MARKER_FILES += usbserial_common.marker +CLEANFILES += usbserial_common.marker + +usbserial_common.marker: $(usbserial_common_module_SOURCES) $(nodist_usbserial_common_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbserial_common_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += usbserial_common.module +MODULE_FILES += usbserial_common.module$(EXEEXT) +usbserial_common_module_SOURCES = bus/usb/serial/common.c ## platform sources +nodist_usbserial_common_module_SOURCES = ## platform nodist sources +usbserial_common_module_LDADD = +usbserial_common_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbserial_common_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbserial_common_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbserial_common_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbserial_common_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbserial_common_module_SOURCES) +CLEANFILES += $(nodist_usbserial_common_module_SOURCES) +MOD_FILES += usbserial_common.mod +MARKER_FILES += usbserial_common.marker +CLEANFILES += usbserial_common.marker + +usbserial_common.marker: $(usbserial_common_module_SOURCES) $(nodist_usbserial_common_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbserial_common_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_loongson +platform_PROGRAMS += usbserial_common.module +MODULE_FILES += usbserial_common.module$(EXEEXT) +usbserial_common_module_SOURCES = bus/usb/serial/common.c ## platform sources +nodist_usbserial_common_module_SOURCES = ## platform nodist sources +usbserial_common_module_LDADD = +usbserial_common_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbserial_common_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbserial_common_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbserial_common_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbserial_common_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbserial_common_module_SOURCES) +CLEANFILES += $(nodist_usbserial_common_module_SOURCES) +MOD_FILES += usbserial_common.mod +MARKER_FILES += usbserial_common.marker +CLEANFILES += usbserial_common.marker + +usbserial_common.marker: $(usbserial_common_module_SOURCES) $(nodist_usbserial_common_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbserial_common_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_coreboot +platform_PROGRAMS += usbserial_common.module +MODULE_FILES += usbserial_common.module$(EXEEXT) +usbserial_common_module_SOURCES = bus/usb/serial/common.c ## platform sources +nodist_usbserial_common_module_SOURCES = ## platform nodist sources +usbserial_common_module_LDADD = +usbserial_common_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbserial_common_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbserial_common_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbserial_common_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbserial_common_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbserial_common_module_SOURCES) +CLEANFILES += $(nodist_usbserial_common_module_SOURCES) +MOD_FILES += usbserial_common.mod +MARKER_FILES += usbserial_common.marker +CLEANFILES += usbserial_common.marker + +usbserial_common.marker: $(usbserial_common_module_SOURCES) $(nodist_usbserial_common_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbserial_common_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += usbserial_pl2303.module +MODULE_FILES += usbserial_pl2303.module$(EXEEXT) +usbserial_pl2303_module_SOURCES = bus/usb/serial/pl2303.c ## platform sources +nodist_usbserial_pl2303_module_SOURCES = ## platform nodist sources +usbserial_pl2303_module_LDADD = +usbserial_pl2303_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbserial_pl2303_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbserial_pl2303_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbserial_pl2303_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbserial_pl2303_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbserial_pl2303_module_SOURCES) +CLEANFILES += $(nodist_usbserial_pl2303_module_SOURCES) +MOD_FILES += usbserial_pl2303.mod +MARKER_FILES += usbserial_pl2303.marker +CLEANFILES += usbserial_pl2303.marker + +usbserial_pl2303.marker: $(usbserial_pl2303_module_SOURCES) $(nodist_usbserial_pl2303_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbserial_pl2303_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += usbserial_pl2303.module +MODULE_FILES += usbserial_pl2303.module$(EXEEXT) +usbserial_pl2303_module_SOURCES = bus/usb/serial/pl2303.c ## platform sources +nodist_usbserial_pl2303_module_SOURCES = ## platform nodist sources +usbserial_pl2303_module_LDADD = +usbserial_pl2303_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbserial_pl2303_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbserial_pl2303_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbserial_pl2303_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbserial_pl2303_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbserial_pl2303_module_SOURCES) +CLEANFILES += $(nodist_usbserial_pl2303_module_SOURCES) +MOD_FILES += usbserial_pl2303.mod +MARKER_FILES += usbserial_pl2303.marker +CLEANFILES += usbserial_pl2303.marker + +usbserial_pl2303.marker: $(usbserial_pl2303_module_SOURCES) $(nodist_usbserial_pl2303_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbserial_pl2303_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += usbserial_pl2303.module +MODULE_FILES += usbserial_pl2303.module$(EXEEXT) +usbserial_pl2303_module_SOURCES = bus/usb/serial/pl2303.c ## platform sources +nodist_usbserial_pl2303_module_SOURCES = ## platform nodist sources +usbserial_pl2303_module_LDADD = +usbserial_pl2303_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbserial_pl2303_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbserial_pl2303_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbserial_pl2303_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbserial_pl2303_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbserial_pl2303_module_SOURCES) +CLEANFILES += $(nodist_usbserial_pl2303_module_SOURCES) +MOD_FILES += usbserial_pl2303.mod +MARKER_FILES += usbserial_pl2303.marker +CLEANFILES += usbserial_pl2303.marker + +usbserial_pl2303.marker: $(usbserial_pl2303_module_SOURCES) $(nodist_usbserial_pl2303_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbserial_pl2303_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += usbserial_pl2303.module +MODULE_FILES += usbserial_pl2303.module$(EXEEXT) +usbserial_pl2303_module_SOURCES = bus/usb/serial/pl2303.c ## platform sources +nodist_usbserial_pl2303_module_SOURCES = ## platform nodist sources +usbserial_pl2303_module_LDADD = +usbserial_pl2303_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbserial_pl2303_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbserial_pl2303_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbserial_pl2303_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbserial_pl2303_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbserial_pl2303_module_SOURCES) +CLEANFILES += $(nodist_usbserial_pl2303_module_SOURCES) +MOD_FILES += usbserial_pl2303.mod +MARKER_FILES += usbserial_pl2303.marker +CLEANFILES += usbserial_pl2303.marker + +usbserial_pl2303.marker: $(usbserial_pl2303_module_SOURCES) $(nodist_usbserial_pl2303_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbserial_pl2303_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += usbserial_pl2303.module +MODULE_FILES += usbserial_pl2303.module$(EXEEXT) +usbserial_pl2303_module_SOURCES = bus/usb/serial/pl2303.c ## platform sources +nodist_usbserial_pl2303_module_SOURCES = ## platform nodist sources +usbserial_pl2303_module_LDADD = +usbserial_pl2303_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbserial_pl2303_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbserial_pl2303_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbserial_pl2303_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbserial_pl2303_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbserial_pl2303_module_SOURCES) +CLEANFILES += $(nodist_usbserial_pl2303_module_SOURCES) +MOD_FILES += usbserial_pl2303.mod +MARKER_FILES += usbserial_pl2303.marker +CLEANFILES += usbserial_pl2303.marker + +usbserial_pl2303.marker: $(usbserial_pl2303_module_SOURCES) $(nodist_usbserial_pl2303_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbserial_pl2303_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += usbserial_pl2303.module +MODULE_FILES += usbserial_pl2303.module$(EXEEXT) +usbserial_pl2303_module_SOURCES = bus/usb/serial/pl2303.c ## platform sources +nodist_usbserial_pl2303_module_SOURCES = ## platform nodist sources +usbserial_pl2303_module_LDADD = +usbserial_pl2303_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbserial_pl2303_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbserial_pl2303_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbserial_pl2303_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbserial_pl2303_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbserial_pl2303_module_SOURCES) +CLEANFILES += $(nodist_usbserial_pl2303_module_SOURCES) +MOD_FILES += usbserial_pl2303.mod +MARKER_FILES += usbserial_pl2303.marker +CLEANFILES += usbserial_pl2303.marker + +usbserial_pl2303.marker: $(usbserial_pl2303_module_SOURCES) $(nodist_usbserial_pl2303_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbserial_pl2303_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += usbserial_pl2303.module +MODULE_FILES += usbserial_pl2303.module$(EXEEXT) +usbserial_pl2303_module_SOURCES = bus/usb/serial/pl2303.c ## platform sources +nodist_usbserial_pl2303_module_SOURCES = ## platform nodist sources +usbserial_pl2303_module_LDADD = +usbserial_pl2303_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbserial_pl2303_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbserial_pl2303_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbserial_pl2303_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbserial_pl2303_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbserial_pl2303_module_SOURCES) +CLEANFILES += $(nodist_usbserial_pl2303_module_SOURCES) +MOD_FILES += usbserial_pl2303.mod +MARKER_FILES += usbserial_pl2303.marker +CLEANFILES += usbserial_pl2303.marker + +usbserial_pl2303.marker: $(usbserial_pl2303_module_SOURCES) $(nodist_usbserial_pl2303_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbserial_pl2303_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_loongson +platform_PROGRAMS += usbserial_pl2303.module +MODULE_FILES += usbserial_pl2303.module$(EXEEXT) +usbserial_pl2303_module_SOURCES = bus/usb/serial/pl2303.c ## platform sources +nodist_usbserial_pl2303_module_SOURCES = ## platform nodist sources +usbserial_pl2303_module_LDADD = +usbserial_pl2303_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbserial_pl2303_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbserial_pl2303_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbserial_pl2303_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbserial_pl2303_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbserial_pl2303_module_SOURCES) +CLEANFILES += $(nodist_usbserial_pl2303_module_SOURCES) +MOD_FILES += usbserial_pl2303.mod +MARKER_FILES += usbserial_pl2303.marker +CLEANFILES += usbserial_pl2303.marker + +usbserial_pl2303.marker: $(usbserial_pl2303_module_SOURCES) $(nodist_usbserial_pl2303_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbserial_pl2303_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_coreboot +platform_PROGRAMS += usbserial_pl2303.module +MODULE_FILES += usbserial_pl2303.module$(EXEEXT) +usbserial_pl2303_module_SOURCES = bus/usb/serial/pl2303.c ## platform sources +nodist_usbserial_pl2303_module_SOURCES = ## platform nodist sources +usbserial_pl2303_module_LDADD = +usbserial_pl2303_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbserial_pl2303_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbserial_pl2303_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbserial_pl2303_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbserial_pl2303_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbserial_pl2303_module_SOURCES) +CLEANFILES += $(nodist_usbserial_pl2303_module_SOURCES) +MOD_FILES += usbserial_pl2303.mod +MARKER_FILES += usbserial_pl2303.marker +CLEANFILES += usbserial_pl2303.marker + +usbserial_pl2303.marker: $(usbserial_pl2303_module_SOURCES) $(nodist_usbserial_pl2303_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbserial_pl2303_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += usbserial_ftdi.module +MODULE_FILES += usbserial_ftdi.module$(EXEEXT) +usbserial_ftdi_module_SOURCES = bus/usb/serial/ftdi.c ## platform sources +nodist_usbserial_ftdi_module_SOURCES = ## platform nodist sources +usbserial_ftdi_module_LDADD = +usbserial_ftdi_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbserial_ftdi_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbserial_ftdi_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbserial_ftdi_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbserial_ftdi_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbserial_ftdi_module_SOURCES) +CLEANFILES += $(nodist_usbserial_ftdi_module_SOURCES) +MOD_FILES += usbserial_ftdi.mod +MARKER_FILES += usbserial_ftdi.marker +CLEANFILES += usbserial_ftdi.marker + +usbserial_ftdi.marker: $(usbserial_ftdi_module_SOURCES) $(nodist_usbserial_ftdi_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbserial_ftdi_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += usbserial_ftdi.module +MODULE_FILES += usbserial_ftdi.module$(EXEEXT) +usbserial_ftdi_module_SOURCES = bus/usb/serial/ftdi.c ## platform sources +nodist_usbserial_ftdi_module_SOURCES = ## platform nodist sources +usbserial_ftdi_module_LDADD = +usbserial_ftdi_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbserial_ftdi_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbserial_ftdi_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbserial_ftdi_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbserial_ftdi_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbserial_ftdi_module_SOURCES) +CLEANFILES += $(nodist_usbserial_ftdi_module_SOURCES) +MOD_FILES += usbserial_ftdi.mod +MARKER_FILES += usbserial_ftdi.marker +CLEANFILES += usbserial_ftdi.marker + +usbserial_ftdi.marker: $(usbserial_ftdi_module_SOURCES) $(nodist_usbserial_ftdi_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbserial_ftdi_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += usbserial_ftdi.module +MODULE_FILES += usbserial_ftdi.module$(EXEEXT) +usbserial_ftdi_module_SOURCES = bus/usb/serial/ftdi.c ## platform sources +nodist_usbserial_ftdi_module_SOURCES = ## platform nodist sources +usbserial_ftdi_module_LDADD = +usbserial_ftdi_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbserial_ftdi_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbserial_ftdi_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbserial_ftdi_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbserial_ftdi_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbserial_ftdi_module_SOURCES) +CLEANFILES += $(nodist_usbserial_ftdi_module_SOURCES) +MOD_FILES += usbserial_ftdi.mod +MARKER_FILES += usbserial_ftdi.marker +CLEANFILES += usbserial_ftdi.marker + +usbserial_ftdi.marker: $(usbserial_ftdi_module_SOURCES) $(nodist_usbserial_ftdi_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbserial_ftdi_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += usbserial_ftdi.module +MODULE_FILES += usbserial_ftdi.module$(EXEEXT) +usbserial_ftdi_module_SOURCES = bus/usb/serial/ftdi.c ## platform sources +nodist_usbserial_ftdi_module_SOURCES = ## platform nodist sources +usbserial_ftdi_module_LDADD = +usbserial_ftdi_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbserial_ftdi_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbserial_ftdi_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbserial_ftdi_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbserial_ftdi_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbserial_ftdi_module_SOURCES) +CLEANFILES += $(nodist_usbserial_ftdi_module_SOURCES) +MOD_FILES += usbserial_ftdi.mod +MARKER_FILES += usbserial_ftdi.marker +CLEANFILES += usbserial_ftdi.marker + +usbserial_ftdi.marker: $(usbserial_ftdi_module_SOURCES) $(nodist_usbserial_ftdi_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbserial_ftdi_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += usbserial_ftdi.module +MODULE_FILES += usbserial_ftdi.module$(EXEEXT) +usbserial_ftdi_module_SOURCES = bus/usb/serial/ftdi.c ## platform sources +nodist_usbserial_ftdi_module_SOURCES = ## platform nodist sources +usbserial_ftdi_module_LDADD = +usbserial_ftdi_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbserial_ftdi_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbserial_ftdi_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbserial_ftdi_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbserial_ftdi_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbserial_ftdi_module_SOURCES) +CLEANFILES += $(nodist_usbserial_ftdi_module_SOURCES) +MOD_FILES += usbserial_ftdi.mod +MARKER_FILES += usbserial_ftdi.marker +CLEANFILES += usbserial_ftdi.marker + +usbserial_ftdi.marker: $(usbserial_ftdi_module_SOURCES) $(nodist_usbserial_ftdi_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbserial_ftdi_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += usbserial_ftdi.module +MODULE_FILES += usbserial_ftdi.module$(EXEEXT) +usbserial_ftdi_module_SOURCES = bus/usb/serial/ftdi.c ## platform sources +nodist_usbserial_ftdi_module_SOURCES = ## platform nodist sources +usbserial_ftdi_module_LDADD = +usbserial_ftdi_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbserial_ftdi_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbserial_ftdi_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbserial_ftdi_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbserial_ftdi_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbserial_ftdi_module_SOURCES) +CLEANFILES += $(nodist_usbserial_ftdi_module_SOURCES) +MOD_FILES += usbserial_ftdi.mod +MARKER_FILES += usbserial_ftdi.marker +CLEANFILES += usbserial_ftdi.marker + +usbserial_ftdi.marker: $(usbserial_ftdi_module_SOURCES) $(nodist_usbserial_ftdi_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbserial_ftdi_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += usbserial_ftdi.module +MODULE_FILES += usbserial_ftdi.module$(EXEEXT) +usbserial_ftdi_module_SOURCES = bus/usb/serial/ftdi.c ## platform sources +nodist_usbserial_ftdi_module_SOURCES = ## platform nodist sources +usbserial_ftdi_module_LDADD = +usbserial_ftdi_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbserial_ftdi_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbserial_ftdi_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbserial_ftdi_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbserial_ftdi_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbserial_ftdi_module_SOURCES) +CLEANFILES += $(nodist_usbserial_ftdi_module_SOURCES) +MOD_FILES += usbserial_ftdi.mod +MARKER_FILES += usbserial_ftdi.marker +CLEANFILES += usbserial_ftdi.marker + +usbserial_ftdi.marker: $(usbserial_ftdi_module_SOURCES) $(nodist_usbserial_ftdi_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbserial_ftdi_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_loongson +platform_PROGRAMS += usbserial_ftdi.module +MODULE_FILES += usbserial_ftdi.module$(EXEEXT) +usbserial_ftdi_module_SOURCES = bus/usb/serial/ftdi.c ## platform sources +nodist_usbserial_ftdi_module_SOURCES = ## platform nodist sources +usbserial_ftdi_module_LDADD = +usbserial_ftdi_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbserial_ftdi_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbserial_ftdi_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbserial_ftdi_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbserial_ftdi_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbserial_ftdi_module_SOURCES) +CLEANFILES += $(nodist_usbserial_ftdi_module_SOURCES) +MOD_FILES += usbserial_ftdi.mod +MARKER_FILES += usbserial_ftdi.marker +CLEANFILES += usbserial_ftdi.marker + +usbserial_ftdi.marker: $(usbserial_ftdi_module_SOURCES) $(nodist_usbserial_ftdi_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbserial_ftdi_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_coreboot +platform_PROGRAMS += usbserial_ftdi.module +MODULE_FILES += usbserial_ftdi.module$(EXEEXT) +usbserial_ftdi_module_SOURCES = bus/usb/serial/ftdi.c ## platform sources +nodist_usbserial_ftdi_module_SOURCES = ## platform nodist sources +usbserial_ftdi_module_LDADD = +usbserial_ftdi_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbserial_ftdi_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbserial_ftdi_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbserial_ftdi_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbserial_ftdi_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbserial_ftdi_module_SOURCES) +CLEANFILES += $(nodist_usbserial_ftdi_module_SOURCES) +MOD_FILES += usbserial_ftdi.mod +MARKER_FILES += usbserial_ftdi.marker +CLEANFILES += usbserial_ftdi.marker + +usbserial_ftdi.marker: $(usbserial_ftdi_module_SOURCES) $(nodist_usbserial_ftdi_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbserial_ftdi_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += usbserial_usbdebug.module +MODULE_FILES += usbserial_usbdebug.module$(EXEEXT) +usbserial_usbdebug_module_SOURCES = bus/usb/serial/usbdebug_late.c ## platform sources +nodist_usbserial_usbdebug_module_SOURCES = ## platform nodist sources +usbserial_usbdebug_module_LDADD = +usbserial_usbdebug_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbserial_usbdebug_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbserial_usbdebug_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbserial_usbdebug_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbserial_usbdebug_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbserial_usbdebug_module_SOURCES) +CLEANFILES += $(nodist_usbserial_usbdebug_module_SOURCES) +MOD_FILES += usbserial_usbdebug.mod +MARKER_FILES += usbserial_usbdebug.marker +CLEANFILES += usbserial_usbdebug.marker + +usbserial_usbdebug.marker: $(usbserial_usbdebug_module_SOURCES) $(nodist_usbserial_usbdebug_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbserial_usbdebug_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += usbserial_usbdebug.module +MODULE_FILES += usbserial_usbdebug.module$(EXEEXT) +usbserial_usbdebug_module_SOURCES = bus/usb/serial/usbdebug_late.c ## platform sources +nodist_usbserial_usbdebug_module_SOURCES = ## platform nodist sources +usbserial_usbdebug_module_LDADD = +usbserial_usbdebug_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbserial_usbdebug_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbserial_usbdebug_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbserial_usbdebug_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbserial_usbdebug_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbserial_usbdebug_module_SOURCES) +CLEANFILES += $(nodist_usbserial_usbdebug_module_SOURCES) +MOD_FILES += usbserial_usbdebug.mod +MARKER_FILES += usbserial_usbdebug.marker +CLEANFILES += usbserial_usbdebug.marker + +usbserial_usbdebug.marker: $(usbserial_usbdebug_module_SOURCES) $(nodist_usbserial_usbdebug_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbserial_usbdebug_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += usbserial_usbdebug.module +MODULE_FILES += usbserial_usbdebug.module$(EXEEXT) +usbserial_usbdebug_module_SOURCES = bus/usb/serial/usbdebug_late.c ## platform sources +nodist_usbserial_usbdebug_module_SOURCES = ## platform nodist sources +usbserial_usbdebug_module_LDADD = +usbserial_usbdebug_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbserial_usbdebug_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbserial_usbdebug_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbserial_usbdebug_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbserial_usbdebug_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbserial_usbdebug_module_SOURCES) +CLEANFILES += $(nodist_usbserial_usbdebug_module_SOURCES) +MOD_FILES += usbserial_usbdebug.mod +MARKER_FILES += usbserial_usbdebug.marker +CLEANFILES += usbserial_usbdebug.marker + +usbserial_usbdebug.marker: $(usbserial_usbdebug_module_SOURCES) $(nodist_usbserial_usbdebug_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbserial_usbdebug_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += usbserial_usbdebug.module +MODULE_FILES += usbserial_usbdebug.module$(EXEEXT) +usbserial_usbdebug_module_SOURCES = bus/usb/serial/usbdebug_late.c ## platform sources +nodist_usbserial_usbdebug_module_SOURCES = ## platform nodist sources +usbserial_usbdebug_module_LDADD = +usbserial_usbdebug_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbserial_usbdebug_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbserial_usbdebug_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbserial_usbdebug_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbserial_usbdebug_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbserial_usbdebug_module_SOURCES) +CLEANFILES += $(nodist_usbserial_usbdebug_module_SOURCES) +MOD_FILES += usbserial_usbdebug.mod +MARKER_FILES += usbserial_usbdebug.marker +CLEANFILES += usbserial_usbdebug.marker + +usbserial_usbdebug.marker: $(usbserial_usbdebug_module_SOURCES) $(nodist_usbserial_usbdebug_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbserial_usbdebug_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += usbserial_usbdebug.module +MODULE_FILES += usbserial_usbdebug.module$(EXEEXT) +usbserial_usbdebug_module_SOURCES = bus/usb/serial/usbdebug_late.c ## platform sources +nodist_usbserial_usbdebug_module_SOURCES = ## platform nodist sources +usbserial_usbdebug_module_LDADD = +usbserial_usbdebug_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbserial_usbdebug_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbserial_usbdebug_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbserial_usbdebug_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbserial_usbdebug_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbserial_usbdebug_module_SOURCES) +CLEANFILES += $(nodist_usbserial_usbdebug_module_SOURCES) +MOD_FILES += usbserial_usbdebug.mod +MARKER_FILES += usbserial_usbdebug.marker +CLEANFILES += usbserial_usbdebug.marker + +usbserial_usbdebug.marker: $(usbserial_usbdebug_module_SOURCES) $(nodist_usbserial_usbdebug_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbserial_usbdebug_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += usbserial_usbdebug.module +MODULE_FILES += usbserial_usbdebug.module$(EXEEXT) +usbserial_usbdebug_module_SOURCES = bus/usb/serial/usbdebug_late.c ## platform sources +nodist_usbserial_usbdebug_module_SOURCES = ## platform nodist sources +usbserial_usbdebug_module_LDADD = +usbserial_usbdebug_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbserial_usbdebug_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbserial_usbdebug_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbserial_usbdebug_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbserial_usbdebug_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbserial_usbdebug_module_SOURCES) +CLEANFILES += $(nodist_usbserial_usbdebug_module_SOURCES) +MOD_FILES += usbserial_usbdebug.mod +MARKER_FILES += usbserial_usbdebug.marker +CLEANFILES += usbserial_usbdebug.marker + +usbserial_usbdebug.marker: $(usbserial_usbdebug_module_SOURCES) $(nodist_usbserial_usbdebug_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbserial_usbdebug_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += usbserial_usbdebug.module +MODULE_FILES += usbserial_usbdebug.module$(EXEEXT) +usbserial_usbdebug_module_SOURCES = bus/usb/serial/usbdebug_late.c ## platform sources +nodist_usbserial_usbdebug_module_SOURCES = ## platform nodist sources +usbserial_usbdebug_module_LDADD = +usbserial_usbdebug_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbserial_usbdebug_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbserial_usbdebug_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbserial_usbdebug_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbserial_usbdebug_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbserial_usbdebug_module_SOURCES) +CLEANFILES += $(nodist_usbserial_usbdebug_module_SOURCES) +MOD_FILES += usbserial_usbdebug.mod +MARKER_FILES += usbserial_usbdebug.marker +CLEANFILES += usbserial_usbdebug.marker + +usbserial_usbdebug.marker: $(usbserial_usbdebug_module_SOURCES) $(nodist_usbserial_usbdebug_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbserial_usbdebug_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_loongson +platform_PROGRAMS += usbserial_usbdebug.module +MODULE_FILES += usbserial_usbdebug.module$(EXEEXT) +usbserial_usbdebug_module_SOURCES = bus/usb/serial/usbdebug_late.c ## platform sources +nodist_usbserial_usbdebug_module_SOURCES = ## platform nodist sources +usbserial_usbdebug_module_LDADD = +usbserial_usbdebug_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbserial_usbdebug_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbserial_usbdebug_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbserial_usbdebug_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbserial_usbdebug_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbserial_usbdebug_module_SOURCES) +CLEANFILES += $(nodist_usbserial_usbdebug_module_SOURCES) +MOD_FILES += usbserial_usbdebug.mod +MARKER_FILES += usbserial_usbdebug.marker +CLEANFILES += usbserial_usbdebug.marker + +usbserial_usbdebug.marker: $(usbserial_usbdebug_module_SOURCES) $(nodist_usbserial_usbdebug_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbserial_usbdebug_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_coreboot +platform_PROGRAMS += usbserial_usbdebug.module +MODULE_FILES += usbserial_usbdebug.module$(EXEEXT) +usbserial_usbdebug_module_SOURCES = bus/usb/serial/usbdebug_late.c ## platform sources +nodist_usbserial_usbdebug_module_SOURCES = ## platform nodist sources +usbserial_usbdebug_module_LDADD = +usbserial_usbdebug_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbserial_usbdebug_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbserial_usbdebug_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbserial_usbdebug_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbserial_usbdebug_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbserial_usbdebug_module_SOURCES) +CLEANFILES += $(nodist_usbserial_usbdebug_module_SOURCES) +MOD_FILES += usbserial_usbdebug.mod +MARKER_FILES += usbserial_usbdebug.marker +CLEANFILES += usbserial_usbdebug.marker + +usbserial_usbdebug.marker: $(usbserial_usbdebug_module_SOURCES) $(nodist_usbserial_usbdebug_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbserial_usbdebug_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += uhci.module +MODULE_FILES += uhci.module$(EXEEXT) +uhci_module_SOURCES = bus/usb/uhci.c ## platform sources +nodist_uhci_module_SOURCES = ## platform nodist sources +uhci_module_LDADD = +uhci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +uhci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +uhci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +uhci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +uhci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_uhci_module_SOURCES) +CLEANFILES += $(nodist_uhci_module_SOURCES) +MOD_FILES += uhci.mod +MARKER_FILES += uhci.marker +CLEANFILES += uhci.marker + +uhci.marker: $(uhci_module_SOURCES) $(nodist_uhci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uhci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += uhci.module +MODULE_FILES += uhci.module$(EXEEXT) +uhci_module_SOURCES = bus/usb/uhci.c ## platform sources +nodist_uhci_module_SOURCES = ## platform nodist sources +uhci_module_LDADD = +uhci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +uhci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +uhci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +uhci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +uhci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_uhci_module_SOURCES) +CLEANFILES += $(nodist_uhci_module_SOURCES) +MOD_FILES += uhci.mod +MARKER_FILES += uhci.marker +CLEANFILES += uhci.marker + +uhci.marker: $(uhci_module_SOURCES) $(nodist_uhci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uhci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += uhci.module +MODULE_FILES += uhci.module$(EXEEXT) +uhci_module_SOURCES = bus/usb/uhci.c ## platform sources +nodist_uhci_module_SOURCES = ## platform nodist sources +uhci_module_LDADD = +uhci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +uhci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +uhci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +uhci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +uhci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_uhci_module_SOURCES) +CLEANFILES += $(nodist_uhci_module_SOURCES) +MOD_FILES += uhci.mod +MARKER_FILES += uhci.marker +CLEANFILES += uhci.marker + +uhci.marker: $(uhci_module_SOURCES) $(nodist_uhci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uhci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += uhci.module +MODULE_FILES += uhci.module$(EXEEXT) +uhci_module_SOURCES = bus/usb/uhci.c ## platform sources +nodist_uhci_module_SOURCES = ## platform nodist sources +uhci_module_LDADD = +uhci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +uhci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +uhci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +uhci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +uhci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_uhci_module_SOURCES) +CLEANFILES += $(nodist_uhci_module_SOURCES) +MOD_FILES += uhci.mod +MARKER_FILES += uhci.marker +CLEANFILES += uhci.marker + +uhci.marker: $(uhci_module_SOURCES) $(nodist_uhci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uhci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += uhci.module +MODULE_FILES += uhci.module$(EXEEXT) +uhci_module_SOURCES = bus/usb/uhci.c ## platform sources +nodist_uhci_module_SOURCES = ## platform nodist sources +uhci_module_LDADD = +uhci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +uhci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +uhci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +uhci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +uhci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_uhci_module_SOURCES) +CLEANFILES += $(nodist_uhci_module_SOURCES) +MOD_FILES += uhci.mod +MARKER_FILES += uhci.marker +CLEANFILES += uhci.marker + +uhci.marker: $(uhci_module_SOURCES) $(nodist_uhci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uhci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += uhci.module +MODULE_FILES += uhci.module$(EXEEXT) +uhci_module_SOURCES = bus/usb/uhci.c ## platform sources +nodist_uhci_module_SOURCES = ## platform nodist sources +uhci_module_LDADD = +uhci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +uhci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +uhci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +uhci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +uhci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_uhci_module_SOURCES) +CLEANFILES += $(nodist_uhci_module_SOURCES) +MOD_FILES += uhci.mod +MARKER_FILES += uhci.marker +CLEANFILES += uhci.marker + +uhci.marker: $(uhci_module_SOURCES) $(nodist_uhci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uhci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += uhci.module +MODULE_FILES += uhci.module$(EXEEXT) +uhci_module_SOURCES = bus/usb/uhci.c ## platform sources +nodist_uhci_module_SOURCES = ## platform nodist sources +uhci_module_LDADD = +uhci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +uhci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +uhci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +uhci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +uhci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_uhci_module_SOURCES) +CLEANFILES += $(nodist_uhci_module_SOURCES) +MOD_FILES += uhci.mod +MARKER_FILES += uhci.marker +CLEANFILES += uhci.marker + +uhci.marker: $(uhci_module_SOURCES) $(nodist_uhci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uhci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_loongson +platform_PROGRAMS += uhci.module +MODULE_FILES += uhci.module$(EXEEXT) +uhci_module_SOURCES = bus/usb/uhci.c ## platform sources +nodist_uhci_module_SOURCES = ## platform nodist sources +uhci_module_LDADD = +uhci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +uhci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +uhci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +uhci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +uhci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_uhci_module_SOURCES) +CLEANFILES += $(nodist_uhci_module_SOURCES) +MOD_FILES += uhci.mod +MARKER_FILES += uhci.marker +CLEANFILES += uhci.marker + +uhci.marker: $(uhci_module_SOURCES) $(nodist_uhci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(uhci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += ohci.module +MODULE_FILES += ohci.module$(EXEEXT) +ohci_module_SOURCES = bus/usb/ohci.c ## platform sources +nodist_ohci_module_SOURCES = ## platform nodist sources +ohci_module_LDADD = +ohci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +ohci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +ohci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +ohci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +ohci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_ohci_module_SOURCES) +CLEANFILES += $(nodist_ohci_module_SOURCES) +MOD_FILES += ohci.mod +MARKER_FILES += ohci.marker +CLEANFILES += ohci.marker + +ohci.marker: $(ohci_module_SOURCES) $(nodist_ohci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ohci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += ohci.module +MODULE_FILES += ohci.module$(EXEEXT) +ohci_module_SOURCES = bus/usb/ohci.c ## platform sources +nodist_ohci_module_SOURCES = ## platform nodist sources +ohci_module_LDADD = +ohci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +ohci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +ohci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +ohci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +ohci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_ohci_module_SOURCES) +CLEANFILES += $(nodist_ohci_module_SOURCES) +MOD_FILES += ohci.mod +MARKER_FILES += ohci.marker +CLEANFILES += ohci.marker + +ohci.marker: $(ohci_module_SOURCES) $(nodist_ohci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ohci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += ohci.module +MODULE_FILES += ohci.module$(EXEEXT) +ohci_module_SOURCES = bus/usb/ohci.c ## platform sources +nodist_ohci_module_SOURCES = ## platform nodist sources +ohci_module_LDADD = +ohci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +ohci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +ohci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +ohci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +ohci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_ohci_module_SOURCES) +CLEANFILES += $(nodist_ohci_module_SOURCES) +MOD_FILES += ohci.mod +MARKER_FILES += ohci.marker +CLEANFILES += ohci.marker + +ohci.marker: $(ohci_module_SOURCES) $(nodist_ohci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ohci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += ohci.module +MODULE_FILES += ohci.module$(EXEEXT) +ohci_module_SOURCES = bus/usb/ohci.c ## platform sources +nodist_ohci_module_SOURCES = ## platform nodist sources +ohci_module_LDADD = +ohci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +ohci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +ohci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +ohci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +ohci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_ohci_module_SOURCES) +CLEANFILES += $(nodist_ohci_module_SOURCES) +MOD_FILES += ohci.mod +MARKER_FILES += ohci.marker +CLEANFILES += ohci.marker + +ohci.marker: $(ohci_module_SOURCES) $(nodist_ohci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ohci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += ohci.module +MODULE_FILES += ohci.module$(EXEEXT) +ohci_module_SOURCES = bus/usb/ohci.c ## platform sources +nodist_ohci_module_SOURCES = ## platform nodist sources +ohci_module_LDADD = +ohci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +ohci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +ohci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +ohci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +ohci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_ohci_module_SOURCES) +CLEANFILES += $(nodist_ohci_module_SOURCES) +MOD_FILES += ohci.mod +MARKER_FILES += ohci.marker +CLEANFILES += ohci.marker + +ohci.marker: $(ohci_module_SOURCES) $(nodist_ohci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ohci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += ohci.module +MODULE_FILES += ohci.module$(EXEEXT) +ohci_module_SOURCES = bus/usb/ohci.c ## platform sources +nodist_ohci_module_SOURCES = ## platform nodist sources +ohci_module_LDADD = +ohci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +ohci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +ohci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +ohci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +ohci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_ohci_module_SOURCES) +CLEANFILES += $(nodist_ohci_module_SOURCES) +MOD_FILES += ohci.mod +MARKER_FILES += ohci.marker +CLEANFILES += ohci.marker + +ohci.marker: $(ohci_module_SOURCES) $(nodist_ohci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ohci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += ohci.module +MODULE_FILES += ohci.module$(EXEEXT) +ohci_module_SOURCES = bus/usb/ohci.c ## platform sources +nodist_ohci_module_SOURCES = ## platform nodist sources +ohci_module_LDADD = +ohci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +ohci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +ohci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +ohci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +ohci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_ohci_module_SOURCES) +CLEANFILES += $(nodist_ohci_module_SOURCES) +MOD_FILES += ohci.mod +MARKER_FILES += ohci.marker +CLEANFILES += ohci.marker + +ohci.marker: $(ohci_module_SOURCES) $(nodist_ohci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ohci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_loongson +platform_PROGRAMS += ohci.module +MODULE_FILES += ohci.module$(EXEEXT) +ohci_module_SOURCES = bus/usb/ohci.c ## platform sources +nodist_ohci_module_SOURCES = ## platform nodist sources +ohci_module_LDADD = +ohci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +ohci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +ohci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +ohci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +ohci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_ohci_module_SOURCES) +CLEANFILES += $(nodist_ohci_module_SOURCES) +MOD_FILES += ohci.mod +MARKER_FILES += ohci.marker +CLEANFILES += ohci.marker + +ohci.marker: $(ohci_module_SOURCES) $(nodist_ohci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ohci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += ehci.module +MODULE_FILES += ehci.module$(EXEEXT) +ehci_module_SOURCES = bus/usb/ehci-pci.c bus/usb/ehci.c ## platform sources +nodist_ehci_module_SOURCES = ## platform nodist sources +ehci_module_LDADD = +ehci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +ehci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +ehci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +ehci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +ehci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_ehci_module_SOURCES) +CLEANFILES += $(nodist_ehci_module_SOURCES) +MOD_FILES += ehci.mod +MARKER_FILES += ehci.marker +CLEANFILES += ehci.marker + +ehci.marker: $(ehci_module_SOURCES) $(nodist_ehci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ehci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += ehci.module +MODULE_FILES += ehci.module$(EXEEXT) +ehci_module_SOURCES = bus/usb/ehci-pci.c bus/usb/ehci.c ## platform sources +nodist_ehci_module_SOURCES = ## platform nodist sources +ehci_module_LDADD = +ehci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +ehci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +ehci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +ehci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +ehci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_ehci_module_SOURCES) +CLEANFILES += $(nodist_ehci_module_SOURCES) +MOD_FILES += ehci.mod +MARKER_FILES += ehci.marker +CLEANFILES += ehci.marker + +ehci.marker: $(ehci_module_SOURCES) $(nodist_ehci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ehci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += ehci.module +MODULE_FILES += ehci.module$(EXEEXT) +ehci_module_SOURCES = bus/usb/ehci-pci.c bus/usb/ehci.c ## platform sources +nodist_ehci_module_SOURCES = ## platform nodist sources +ehci_module_LDADD = +ehci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +ehci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +ehci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +ehci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +ehci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_ehci_module_SOURCES) +CLEANFILES += $(nodist_ehci_module_SOURCES) +MOD_FILES += ehci.mod +MARKER_FILES += ehci.marker +CLEANFILES += ehci.marker + +ehci.marker: $(ehci_module_SOURCES) $(nodist_ehci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ehci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += ehci.module +MODULE_FILES += ehci.module$(EXEEXT) +ehci_module_SOURCES = bus/usb/ehci-pci.c bus/usb/ehci.c ## platform sources +nodist_ehci_module_SOURCES = ## platform nodist sources +ehci_module_LDADD = +ehci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +ehci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +ehci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +ehci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +ehci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_ehci_module_SOURCES) +CLEANFILES += $(nodist_ehci_module_SOURCES) +MOD_FILES += ehci.mod +MARKER_FILES += ehci.marker +CLEANFILES += ehci.marker + +ehci.marker: $(ehci_module_SOURCES) $(nodist_ehci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ehci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += ehci.module +MODULE_FILES += ehci.module$(EXEEXT) +ehci_module_SOURCES = bus/usb/ehci-pci.c bus/usb/ehci.c ## platform sources +nodist_ehci_module_SOURCES = ## platform nodist sources +ehci_module_LDADD = +ehci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +ehci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +ehci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +ehci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +ehci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_ehci_module_SOURCES) +CLEANFILES += $(nodist_ehci_module_SOURCES) +MOD_FILES += ehci.mod +MARKER_FILES += ehci.marker +CLEANFILES += ehci.marker + +ehci.marker: $(ehci_module_SOURCES) $(nodist_ehci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ehci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += ehci.module +MODULE_FILES += ehci.module$(EXEEXT) +ehci_module_SOURCES = bus/usb/ehci-pci.c bus/usb/ehci.c ## platform sources +nodist_ehci_module_SOURCES = ## platform nodist sources +ehci_module_LDADD = +ehci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +ehci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +ehci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +ehci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +ehci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_ehci_module_SOURCES) +CLEANFILES += $(nodist_ehci_module_SOURCES) +MOD_FILES += ehci.mod +MARKER_FILES += ehci.marker +CLEANFILES += ehci.marker + +ehci.marker: $(ehci_module_SOURCES) $(nodist_ehci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ehci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += ehci.module +MODULE_FILES += ehci.module$(EXEEXT) +ehci_module_SOURCES = bus/usb/ehci-pci.c bus/usb/ehci.c ## platform sources +nodist_ehci_module_SOURCES = ## platform nodist sources +ehci_module_LDADD = +ehci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +ehci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +ehci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +ehci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +ehci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_ehci_module_SOURCES) +CLEANFILES += $(nodist_ehci_module_SOURCES) +MOD_FILES += ehci.mod +MARKER_FILES += ehci.marker +CLEANFILES += ehci.marker + +ehci.marker: $(ehci_module_SOURCES) $(nodist_ehci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ehci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_loongson +platform_PROGRAMS += ehci.module +MODULE_FILES += ehci.module$(EXEEXT) +ehci_module_SOURCES = bus/usb/ehci-pci.c bus/usb/ehci.c ## platform sources +nodist_ehci_module_SOURCES = ## platform nodist sources +ehci_module_LDADD = +ehci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +ehci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +ehci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +ehci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +ehci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_ehci_module_SOURCES) +CLEANFILES += $(nodist_ehci_module_SOURCES) +MOD_FILES += ehci.mod +MARKER_FILES += ehci.marker +CLEANFILES += ehci.marker + +ehci.marker: $(ehci_module_SOURCES) $(nodist_ehci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ehci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_coreboot +platform_PROGRAMS += ehci.module +MODULE_FILES += ehci.module$(EXEEXT) +ehci_module_SOURCES = bus/usb/ehci-fdt.c bus/usb/ehci.c ## platform sources +nodist_ehci_module_SOURCES = ## platform nodist sources +ehci_module_LDADD = +ehci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +ehci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +ehci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +ehci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +ehci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_ehci_module_SOURCES) +CLEANFILES += $(nodist_ehci_module_SOURCES) +MOD_FILES += ehci.mod +MARKER_FILES += ehci.marker +CLEANFILES += ehci.marker + +ehci.marker: $(ehci_module_SOURCES) $(nodist_ehci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ehci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += pci.module +MODULE_FILES += pci.module$(EXEEXT) +pci_module_SOURCES = bus/pci.c ## platform sources +nodist_pci_module_SOURCES = ## platform nodist sources +pci_module_LDADD = +pci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +pci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +pci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +pci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +pci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_pci_module_SOURCES) +CLEANFILES += $(nodist_pci_module_SOURCES) +MOD_FILES += pci.mod +MARKER_FILES += pci.marker +CLEANFILES += pci.marker + +pci.marker: $(pci_module_SOURCES) $(nodist_pci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += pci.module +MODULE_FILES += pci.module$(EXEEXT) +pci_module_SOURCES = bus/pci.c ## platform sources +nodist_pci_module_SOURCES = ## platform nodist sources +pci_module_LDADD = +pci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +pci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +pci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +pci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +pci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_pci_module_SOURCES) +CLEANFILES += $(nodist_pci_module_SOURCES) +MOD_FILES += pci.mod +MARKER_FILES += pci.marker +CLEANFILES += pci.marker + +pci.marker: $(pci_module_SOURCES) $(nodist_pci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += pci.module +MODULE_FILES += pci.module$(EXEEXT) +pci_module_SOURCES = bus/pci.c ## platform sources +nodist_pci_module_SOURCES = ## platform nodist sources +pci_module_LDADD = +pci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +pci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +pci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +pci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +pci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_pci_module_SOURCES) +CLEANFILES += $(nodist_pci_module_SOURCES) +MOD_FILES += pci.mod +MARKER_FILES += pci.marker +CLEANFILES += pci.marker + +pci.marker: $(pci_module_SOURCES) $(nodist_pci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += pci.module +MODULE_FILES += pci.module$(EXEEXT) +pci_module_SOURCES = bus/i386/ieee1275/pci.c bus/pci.c ## platform sources +nodist_pci_module_SOURCES = ## platform nodist sources +pci_module_LDADD = +pci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +pci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +pci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +pci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +pci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_pci_module_SOURCES) +CLEANFILES += $(nodist_pci_module_SOURCES) +MOD_FILES += pci.mod +MARKER_FILES += pci.marker +CLEANFILES += pci.marker + +pci.marker: $(pci_module_SOURCES) $(nodist_pci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += nativedisk.module +MODULE_FILES += nativedisk.module$(EXEEXT) +nativedisk_module_SOURCES = commands/nativedisk.c ## platform sources +nodist_nativedisk_module_SOURCES = ## platform nodist sources +nativedisk_module_LDADD = +nativedisk_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +nativedisk_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +nativedisk_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +nativedisk_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +nativedisk_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_nativedisk_module_SOURCES) +CLEANFILES += $(nodist_nativedisk_module_SOURCES) +MOD_FILES += nativedisk.mod +MARKER_FILES += nativedisk.marker +CLEANFILES += nativedisk.marker + +nativedisk.marker: $(nativedisk_module_SOURCES) $(nodist_nativedisk_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(nativedisk_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += nativedisk.module +MODULE_FILES += nativedisk.module$(EXEEXT) +nativedisk_module_SOURCES = commands/nativedisk.c ## platform sources +nodist_nativedisk_module_SOURCES = ## platform nodist sources +nativedisk_module_LDADD = +nativedisk_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +nativedisk_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +nativedisk_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +nativedisk_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +nativedisk_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_nativedisk_module_SOURCES) +CLEANFILES += $(nodist_nativedisk_module_SOURCES) +MOD_FILES += nativedisk.mod +MARKER_FILES += nativedisk.marker +CLEANFILES += nativedisk.marker + +nativedisk.marker: $(nativedisk_module_SOURCES) $(nodist_nativedisk_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(nativedisk_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += nativedisk.module +MODULE_FILES += nativedisk.module$(EXEEXT) +nativedisk_module_SOURCES = commands/nativedisk.c ## platform sources +nodist_nativedisk_module_SOURCES = ## platform nodist sources +nativedisk_module_LDADD = +nativedisk_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +nativedisk_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +nativedisk_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +nativedisk_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +nativedisk_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_nativedisk_module_SOURCES) +CLEANFILES += $(nodist_nativedisk_module_SOURCES) +MOD_FILES += nativedisk.mod +MARKER_FILES += nativedisk.marker +CLEANFILES += nativedisk.marker + +nativedisk.marker: $(nativedisk_module_SOURCES) $(nodist_nativedisk_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(nativedisk_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += nativedisk.module +MODULE_FILES += nativedisk.module$(EXEEXT) +nativedisk_module_SOURCES = commands/nativedisk.c ## platform sources +nodist_nativedisk_module_SOURCES = ## platform nodist sources +nativedisk_module_LDADD = +nativedisk_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +nativedisk_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +nativedisk_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +nativedisk_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +nativedisk_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_nativedisk_module_SOURCES) +CLEANFILES += $(nodist_nativedisk_module_SOURCES) +MOD_FILES += nativedisk.mod +MARKER_FILES += nativedisk.marker +CLEANFILES += nativedisk.marker + +nativedisk.marker: $(nativedisk_module_SOURCES) $(nodist_nativedisk_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(nativedisk_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += nativedisk.module +MODULE_FILES += nativedisk.module$(EXEEXT) +nativedisk_module_SOURCES = commands/nativedisk.c ## platform sources +nodist_nativedisk_module_SOURCES = ## platform nodist sources +nativedisk_module_LDADD = +nativedisk_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +nativedisk_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +nativedisk_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +nativedisk_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +nativedisk_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_nativedisk_module_SOURCES) +CLEANFILES += $(nodist_nativedisk_module_SOURCES) +MOD_FILES += nativedisk.mod +MARKER_FILES += nativedisk.marker +CLEANFILES += nativedisk.marker + +nativedisk.marker: $(nativedisk_module_SOURCES) $(nodist_nativedisk_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(nativedisk_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += nativedisk.module +MODULE_FILES += nativedisk.module$(EXEEXT) +nativedisk_module_SOURCES = commands/nativedisk.c ## platform sources +nodist_nativedisk_module_SOURCES = ## platform nodist sources +nativedisk_module_LDADD = +nativedisk_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +nativedisk_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +nativedisk_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +nativedisk_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +nativedisk_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_nativedisk_module_SOURCES) +CLEANFILES += $(nodist_nativedisk_module_SOURCES) +MOD_FILES += nativedisk.mod +MARKER_FILES += nativedisk.marker +CLEANFILES += nativedisk.marker + +nativedisk.marker: $(nativedisk_module_SOURCES) $(nodist_nativedisk_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(nativedisk_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += nativedisk.module +MODULE_FILES += nativedisk.module$(EXEEXT) +nativedisk_module_SOURCES = commands/nativedisk.c ## platform sources +nodist_nativedisk_module_SOURCES = ## platform nodist sources +nativedisk_module_LDADD = +nativedisk_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +nativedisk_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +nativedisk_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +nativedisk_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +nativedisk_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_nativedisk_module_SOURCES) +CLEANFILES += $(nodist_nativedisk_module_SOURCES) +MOD_FILES += nativedisk.mod +MARKER_FILES += nativedisk.marker +CLEANFILES += nativedisk.marker + +nativedisk.marker: $(nativedisk_module_SOURCES) $(nodist_nativedisk_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(nativedisk_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_loongson +platform_PROGRAMS += nativedisk.module +MODULE_FILES += nativedisk.module$(EXEEXT) +nativedisk_module_SOURCES = commands/nativedisk.c ## platform sources +nodist_nativedisk_module_SOURCES = ## platform nodist sources +nativedisk_module_LDADD = +nativedisk_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +nativedisk_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +nativedisk_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +nativedisk_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +nativedisk_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_nativedisk_module_SOURCES) +CLEANFILES += $(nodist_nativedisk_module_SOURCES) +MOD_FILES += nativedisk.mod +MARKER_FILES += nativedisk.marker +CLEANFILES += nativedisk.marker + +nativedisk.marker: $(nativedisk_module_SOURCES) $(nodist_nativedisk_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(nativedisk_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_qemu_mips +platform_PROGRAMS += nativedisk.module +MODULE_FILES += nativedisk.module$(EXEEXT) +nativedisk_module_SOURCES = commands/nativedisk.c ## platform sources +nodist_nativedisk_module_SOURCES = ## platform nodist sources +nativedisk_module_LDADD = +nativedisk_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +nativedisk_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +nativedisk_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +nativedisk_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +nativedisk_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_nativedisk_module_SOURCES) +CLEANFILES += $(nodist_nativedisk_module_SOURCES) +MOD_FILES += nativedisk.mod +MARKER_FILES += nativedisk.marker +CLEANFILES += nativedisk.marker + +nativedisk.marker: $(nativedisk_module_SOURCES) $(nodist_nativedisk_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(nativedisk_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_emu +if COND_GRUB_EMU_PCI +platform_PROGRAMS += emupci.module +MODULE_FILES += emupci.module$(EXEEXT) +emupci_module_SOURCES = bus/emu/pci.c commands/lspci.c ## platform sources +nodist_emupci_module_SOURCES = ## platform nodist sources +emupci_module_LDADD = +emupci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +emupci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +emupci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +emupci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +emupci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_emupci_module_SOURCES) +CLEANFILES += $(nodist_emupci_module_SOURCES) +MOD_FILES += emupci.mod +MARKER_FILES += emupci.marker +CLEANFILES += emupci.marker + +emupci.marker: $(emupci_module_SOURCES) $(nodist_emupci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(emupci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif COND_GRUB_EMU_PCI +endif + +if COND_mips_arc +platform_PROGRAMS += lsdev.module +MODULE_FILES += lsdev.module$(EXEEXT) +lsdev_module_SOURCES = commands/arc/lsdev.c ## platform sources +nodist_lsdev_module_SOURCES = ## platform nodist sources +lsdev_module_LDADD = +lsdev_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lsdev_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lsdev_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lsdev_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lsdev_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lsdev_module_SOURCES) +CLEANFILES += $(nodist_lsdev_module_SOURCES) +MOD_FILES += lsdev.mod +MARKER_FILES += lsdev.marker +CLEANFILES += lsdev.marker + +lsdev.marker: $(lsdev_module_SOURCES) $(nodist_lsdev_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lsdev_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_xen +platform_PROGRAMS += lsxen.module +MODULE_FILES += lsxen.module$(EXEEXT) +lsxen_module_SOURCES = commands/xen/lsxen.c ## platform sources +nodist_lsxen_module_SOURCES = ## platform nodist sources +lsxen_module_LDADD = +lsxen_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lsxen_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lsxen_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lsxen_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lsxen_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lsxen_module_SOURCES) +CLEANFILES += $(nodist_lsxen_module_SOURCES) +MOD_FILES += lsxen.mod +MARKER_FILES += lsxen.marker +CLEANFILES += lsxen.marker + +lsxen.marker: $(lsxen_module_SOURCES) $(nodist_lsxen_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lsxen_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_xen +platform_PROGRAMS += lsxen.module +MODULE_FILES += lsxen.module$(EXEEXT) +lsxen_module_SOURCES = commands/xen/lsxen.c ## platform sources +nodist_lsxen_module_SOURCES = ## platform nodist sources +lsxen_module_LDADD = +lsxen_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lsxen_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lsxen_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lsxen_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lsxen_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lsxen_module_SOURCES) +CLEANFILES += $(nodist_lsxen_module_SOURCES) +MOD_FILES += lsxen.mod +MARKER_FILES += lsxen.marker +CLEANFILES += lsxen.marker + +lsxen.marker: $(lsxen_module_SOURCES) $(nodist_lsxen_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lsxen_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += cmostest.module +MODULE_FILES += cmostest.module$(EXEEXT) +cmostest_module_SOURCES = commands/i386/cmostest.c ## platform sources +nodist_cmostest_module_SOURCES = ## platform nodist sources +cmostest_module_LDADD = +cmostest_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cmostest_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cmostest_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cmostest_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cmostest_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cmostest_module_SOURCES) +CLEANFILES += $(nodist_cmostest_module_SOURCES) +MOD_FILES += cmostest.mod +MARKER_FILES += cmostest.marker +CLEANFILES += cmostest.marker + +cmostest.marker: $(cmostest_module_SOURCES) $(nodist_cmostest_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cmostest_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += cmostest.module +MODULE_FILES += cmostest.module$(EXEEXT) +cmostest_module_SOURCES = commands/i386/cmostest.c ## platform sources +nodist_cmostest_module_SOURCES = ## platform nodist sources +cmostest_module_LDADD = +cmostest_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cmostest_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cmostest_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cmostest_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cmostest_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cmostest_module_SOURCES) +CLEANFILES += $(nodist_cmostest_module_SOURCES) +MOD_FILES += cmostest.mod +MARKER_FILES += cmostest.marker +CLEANFILES += cmostest.marker + +cmostest.marker: $(cmostest_module_SOURCES) $(nodist_cmostest_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cmostest_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += cmostest.module +MODULE_FILES += cmostest.module$(EXEEXT) +cmostest_module_SOURCES = commands/i386/cmostest.c ## platform sources +nodist_cmostest_module_SOURCES = ## platform nodist sources +cmostest_module_LDADD = +cmostest_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cmostest_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cmostest_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cmostest_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cmostest_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cmostest_module_SOURCES) +CLEANFILES += $(nodist_cmostest_module_SOURCES) +MOD_FILES += cmostest.mod +MARKER_FILES += cmostest.marker +CLEANFILES += cmostest.marker + +cmostest.marker: $(cmostest_module_SOURCES) $(nodist_cmostest_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cmostest_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += cmostest.module +MODULE_FILES += cmostest.module$(EXEEXT) +cmostest_module_SOURCES = commands/i386/cmostest.c ## platform sources +nodist_cmostest_module_SOURCES = ## platform nodist sources +cmostest_module_LDADD = +cmostest_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cmostest_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cmostest_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cmostest_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cmostest_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cmostest_module_SOURCES) +CLEANFILES += $(nodist_cmostest_module_SOURCES) +MOD_FILES += cmostest.mod +MARKER_FILES += cmostest.marker +CLEANFILES += cmostest.marker + +cmostest.marker: $(cmostest_module_SOURCES) $(nodist_cmostest_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cmostest_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += cmostest.module +MODULE_FILES += cmostest.module$(EXEEXT) +cmostest_module_SOURCES = commands/i386/cmostest.c ## platform sources +nodist_cmostest_module_SOURCES = ## platform nodist sources +cmostest_module_LDADD = +cmostest_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cmostest_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cmostest_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cmostest_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cmostest_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cmostest_module_SOURCES) +CLEANFILES += $(nodist_cmostest_module_SOURCES) +MOD_FILES += cmostest.mod +MARKER_FILES += cmostest.marker +CLEANFILES += cmostest.marker + +cmostest.marker: $(cmostest_module_SOURCES) $(nodist_cmostest_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cmostest_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_loongson +platform_PROGRAMS += cmostest.module +MODULE_FILES += cmostest.module$(EXEEXT) +cmostest_module_SOURCES = commands/i386/cmostest.c ## platform sources +nodist_cmostest_module_SOURCES = ## platform nodist sources +cmostest_module_LDADD = +cmostest_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cmostest_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cmostest_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cmostest_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cmostest_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cmostest_module_SOURCES) +CLEANFILES += $(nodist_cmostest_module_SOURCES) +MOD_FILES += cmostest.mod +MARKER_FILES += cmostest.marker +CLEANFILES += cmostest.marker + +cmostest.marker: $(cmostest_module_SOURCES) $(nodist_cmostest_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cmostest_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_sparc64_ieee1275 +platform_PROGRAMS += cmostest.module +MODULE_FILES += cmostest.module$(EXEEXT) +cmostest_module_SOURCES = commands/i386/cmostest.c ## platform sources +nodist_cmostest_module_SOURCES = ## platform nodist sources +cmostest_module_LDADD = +cmostest_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cmostest_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cmostest_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cmostest_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cmostest_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cmostest_module_SOURCES) +CLEANFILES += $(nodist_cmostest_module_SOURCES) +MOD_FILES += cmostest.mod +MARKER_FILES += cmostest.marker +CLEANFILES += cmostest.marker + +cmostest.marker: $(cmostest_module_SOURCES) $(nodist_cmostest_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cmostest_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_powerpc_ieee1275 +platform_PROGRAMS += cmostest.module +MODULE_FILES += cmostest.module$(EXEEXT) +cmostest_module_SOURCES = commands/i386/cmostest.c ## platform sources +nodist_cmostest_module_SOURCES = ## platform nodist sources +cmostest_module_LDADD = +cmostest_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cmostest_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cmostest_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cmostest_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cmostest_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cmostest_module_SOURCES) +CLEANFILES += $(nodist_cmostest_module_SOURCES) +MOD_FILES += cmostest.mod +MARKER_FILES += cmostest.marker +CLEANFILES += cmostest.marker + +cmostest.marker: $(cmostest_module_SOURCES) $(nodist_cmostest_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cmostest_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_qemu_mips +platform_PROGRAMS += cmostest.module +MODULE_FILES += cmostest.module$(EXEEXT) +cmostest_module_SOURCES = commands/i386/cmostest.c ## platform sources +nodist_cmostest_module_SOURCES = ## platform nodist sources +cmostest_module_LDADD = +cmostest_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cmostest_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cmostest_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cmostest_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cmostest_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cmostest_module_SOURCES) +CLEANFILES += $(nodist_cmostest_module_SOURCES) +MOD_FILES += cmostest.mod +MARKER_FILES += cmostest.marker +CLEANFILES += cmostest.marker + +cmostest.marker: $(cmostest_module_SOURCES) $(nodist_cmostest_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cmostest_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += cmosdump.module +MODULE_FILES += cmosdump.module$(EXEEXT) +cmosdump_module_SOURCES = commands/i386/cmosdump.c ## platform sources +nodist_cmosdump_module_SOURCES = ## platform nodist sources +cmosdump_module_LDADD = +cmosdump_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cmosdump_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cmosdump_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cmosdump_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cmosdump_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cmosdump_module_SOURCES) +CLEANFILES += $(nodist_cmosdump_module_SOURCES) +MOD_FILES += cmosdump.mod +MARKER_FILES += cmosdump.marker +CLEANFILES += cmosdump.marker + +cmosdump.marker: $(cmosdump_module_SOURCES) $(nodist_cmosdump_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cmosdump_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += cmosdump.module +MODULE_FILES += cmosdump.module$(EXEEXT) +cmosdump_module_SOURCES = commands/i386/cmosdump.c ## platform sources +nodist_cmosdump_module_SOURCES = ## platform nodist sources +cmosdump_module_LDADD = +cmosdump_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cmosdump_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cmosdump_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cmosdump_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cmosdump_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cmosdump_module_SOURCES) +CLEANFILES += $(nodist_cmosdump_module_SOURCES) +MOD_FILES += cmosdump.mod +MARKER_FILES += cmosdump.marker +CLEANFILES += cmosdump.marker + +cmosdump.marker: $(cmosdump_module_SOURCES) $(nodist_cmosdump_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cmosdump_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += cmosdump.module +MODULE_FILES += cmosdump.module$(EXEEXT) +cmosdump_module_SOURCES = commands/i386/cmosdump.c ## platform sources +nodist_cmosdump_module_SOURCES = ## platform nodist sources +cmosdump_module_LDADD = +cmosdump_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cmosdump_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cmosdump_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cmosdump_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cmosdump_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cmosdump_module_SOURCES) +CLEANFILES += $(nodist_cmosdump_module_SOURCES) +MOD_FILES += cmosdump.mod +MARKER_FILES += cmosdump.marker +CLEANFILES += cmosdump.marker + +cmosdump.marker: $(cmosdump_module_SOURCES) $(nodist_cmosdump_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cmosdump_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += cmosdump.module +MODULE_FILES += cmosdump.module$(EXEEXT) +cmosdump_module_SOURCES = commands/i386/cmosdump.c ## platform sources +nodist_cmosdump_module_SOURCES = ## platform nodist sources +cmosdump_module_LDADD = +cmosdump_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cmosdump_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cmosdump_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cmosdump_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cmosdump_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cmosdump_module_SOURCES) +CLEANFILES += $(nodist_cmosdump_module_SOURCES) +MOD_FILES += cmosdump.mod +MARKER_FILES += cmosdump.marker +CLEANFILES += cmosdump.marker + +cmosdump.marker: $(cmosdump_module_SOURCES) $(nodist_cmosdump_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cmosdump_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += cmosdump.module +MODULE_FILES += cmosdump.module$(EXEEXT) +cmosdump_module_SOURCES = commands/i386/cmosdump.c ## platform sources +nodist_cmosdump_module_SOURCES = ## platform nodist sources +cmosdump_module_LDADD = +cmosdump_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cmosdump_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cmosdump_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cmosdump_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cmosdump_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cmosdump_module_SOURCES) +CLEANFILES += $(nodist_cmosdump_module_SOURCES) +MOD_FILES += cmosdump.mod +MARKER_FILES += cmosdump.marker +CLEANFILES += cmosdump.marker + +cmosdump.marker: $(cmosdump_module_SOURCES) $(nodist_cmosdump_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cmosdump_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_loongson +platform_PROGRAMS += cmosdump.module +MODULE_FILES += cmosdump.module$(EXEEXT) +cmosdump_module_SOURCES = commands/i386/cmosdump.c ## platform sources +nodist_cmosdump_module_SOURCES = ## platform nodist sources +cmosdump_module_LDADD = +cmosdump_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cmosdump_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cmosdump_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cmosdump_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cmosdump_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cmosdump_module_SOURCES) +CLEANFILES += $(nodist_cmosdump_module_SOURCES) +MOD_FILES += cmosdump.mod +MARKER_FILES += cmosdump.marker +CLEANFILES += cmosdump.marker + +cmosdump.marker: $(cmosdump_module_SOURCES) $(nodist_cmosdump_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cmosdump_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_sparc64_ieee1275 +platform_PROGRAMS += cmosdump.module +MODULE_FILES += cmosdump.module$(EXEEXT) +cmosdump_module_SOURCES = commands/i386/cmosdump.c ## platform sources +nodist_cmosdump_module_SOURCES = ## platform nodist sources +cmosdump_module_LDADD = +cmosdump_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cmosdump_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cmosdump_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cmosdump_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cmosdump_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cmosdump_module_SOURCES) +CLEANFILES += $(nodist_cmosdump_module_SOURCES) +MOD_FILES += cmosdump.mod +MARKER_FILES += cmosdump.marker +CLEANFILES += cmosdump.marker + +cmosdump.marker: $(cmosdump_module_SOURCES) $(nodist_cmosdump_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cmosdump_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_powerpc_ieee1275 +platform_PROGRAMS += cmosdump.module +MODULE_FILES += cmosdump.module$(EXEEXT) +cmosdump_module_SOURCES = commands/i386/cmosdump.c ## platform sources +nodist_cmosdump_module_SOURCES = ## platform nodist sources +cmosdump_module_LDADD = +cmosdump_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cmosdump_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cmosdump_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cmosdump_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cmosdump_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cmosdump_module_SOURCES) +CLEANFILES += $(nodist_cmosdump_module_SOURCES) +MOD_FILES += cmosdump.mod +MARKER_FILES += cmosdump.marker +CLEANFILES += cmosdump.marker + +cmosdump.marker: $(cmosdump_module_SOURCES) $(nodist_cmosdump_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cmosdump_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_qemu_mips +platform_PROGRAMS += cmosdump.module +MODULE_FILES += cmosdump.module$(EXEEXT) +cmosdump_module_SOURCES = commands/i386/cmosdump.c ## platform sources +nodist_cmosdump_module_SOURCES = ## platform nodist sources +cmosdump_module_LDADD = +cmosdump_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cmosdump_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cmosdump_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cmosdump_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cmosdump_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cmosdump_module_SOURCES) +CLEANFILES += $(nodist_cmosdump_module_SOURCES) +MOD_FILES += cmosdump.mod +MARKER_FILES += cmosdump.marker +CLEANFILES += cmosdump.marker + +cmosdump.marker: $(cmosdump_module_SOURCES) $(nodist_cmosdump_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cmosdump_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += iorw.module +MODULE_FILES += iorw.module$(EXEEXT) +iorw_module_SOURCES = commands/iorw.c ## platform sources +nodist_iorw_module_SOURCES = ## platform nodist sources +iorw_module_LDADD = +iorw_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +iorw_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +iorw_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +iorw_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +iorw_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_iorw_module_SOURCES) +CLEANFILES += $(nodist_iorw_module_SOURCES) +MOD_FILES += iorw.mod +MARKER_FILES += iorw.marker +CLEANFILES += iorw.marker + +iorw.marker: $(iorw_module_SOURCES) $(nodist_iorw_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(iorw_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += iorw.module +MODULE_FILES += iorw.module$(EXEEXT) +iorw_module_SOURCES = commands/iorw.c ## platform sources +nodist_iorw_module_SOURCES = ## platform nodist sources +iorw_module_LDADD = +iorw_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +iorw_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +iorw_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +iorw_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +iorw_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_iorw_module_SOURCES) +CLEANFILES += $(nodist_iorw_module_SOURCES) +MOD_FILES += iorw.mod +MARKER_FILES += iorw.marker +CLEANFILES += iorw.marker + +iorw.marker: $(iorw_module_SOURCES) $(nodist_iorw_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(iorw_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += iorw.module +MODULE_FILES += iorw.module$(EXEEXT) +iorw_module_SOURCES = commands/iorw.c ## platform sources +nodist_iorw_module_SOURCES = ## platform nodist sources +iorw_module_LDADD = +iorw_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +iorw_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +iorw_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +iorw_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +iorw_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_iorw_module_SOURCES) +CLEANFILES += $(nodist_iorw_module_SOURCES) +MOD_FILES += iorw.mod +MARKER_FILES += iorw.marker +CLEANFILES += iorw.marker + +iorw.marker: $(iorw_module_SOURCES) $(nodist_iorw_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(iorw_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += iorw.module +MODULE_FILES += iorw.module$(EXEEXT) +iorw_module_SOURCES = commands/iorw.c ## platform sources +nodist_iorw_module_SOURCES = ## platform nodist sources +iorw_module_LDADD = +iorw_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +iorw_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +iorw_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +iorw_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +iorw_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_iorw_module_SOURCES) +CLEANFILES += $(nodist_iorw_module_SOURCES) +MOD_FILES += iorw.mod +MARKER_FILES += iorw.marker +CLEANFILES += iorw.marker + +iorw.marker: $(iorw_module_SOURCES) $(nodist_iorw_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(iorw_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += iorw.module +MODULE_FILES += iorw.module$(EXEEXT) +iorw_module_SOURCES = commands/iorw.c ## platform sources +nodist_iorw_module_SOURCES = ## platform nodist sources +iorw_module_LDADD = +iorw_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +iorw_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +iorw_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +iorw_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +iorw_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_iorw_module_SOURCES) +CLEANFILES += $(nodist_iorw_module_SOURCES) +MOD_FILES += iorw.mod +MARKER_FILES += iorw.marker +CLEANFILES += iorw.marker + +iorw.marker: $(iorw_module_SOURCES) $(nodist_iorw_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(iorw_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += iorw.module +MODULE_FILES += iorw.module$(EXEEXT) +iorw_module_SOURCES = commands/iorw.c ## platform sources +nodist_iorw_module_SOURCES = ## platform nodist sources +iorw_module_LDADD = +iorw_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +iorw_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +iorw_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +iorw_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +iorw_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_iorw_module_SOURCES) +CLEANFILES += $(nodist_iorw_module_SOURCES) +MOD_FILES += iorw.mod +MARKER_FILES += iorw.marker +CLEANFILES += iorw.marker + +iorw.marker: $(iorw_module_SOURCES) $(nodist_iorw_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(iorw_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += iorw.module +MODULE_FILES += iorw.module$(EXEEXT) +iorw_module_SOURCES = commands/iorw.c ## platform sources +nodist_iorw_module_SOURCES = ## platform nodist sources +iorw_module_LDADD = +iorw_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +iorw_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +iorw_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +iorw_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +iorw_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_iorw_module_SOURCES) +CLEANFILES += $(nodist_iorw_module_SOURCES) +MOD_FILES += iorw.mod +MARKER_FILES += iorw.marker +CLEANFILES += iorw.marker + +iorw.marker: $(iorw_module_SOURCES) $(nodist_iorw_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(iorw_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += cbtable.module +MODULE_FILES += cbtable.module$(EXEEXT) +cbtable_module_SOURCES = kern/i386/coreboot/cbtable.c kern/coreboot/cbtable.c ## platform sources +nodist_cbtable_module_SOURCES = ## platform nodist sources +cbtable_module_LDADD = +cbtable_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cbtable_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cbtable_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cbtable_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cbtable_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cbtable_module_SOURCES) +CLEANFILES += $(nodist_cbtable_module_SOURCES) +MOD_FILES += cbtable.mod +MARKER_FILES += cbtable.marker +CLEANFILES += cbtable.marker + +cbtable.marker: $(cbtable_module_SOURCES) $(nodist_cbtable_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cbtable_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += cbtable.module +MODULE_FILES += cbtable.module$(EXEEXT) +cbtable_module_SOURCES = kern/i386/coreboot/cbtable.c kern/coreboot/cbtable.c ## platform sources +nodist_cbtable_module_SOURCES = ## platform nodist sources +cbtable_module_LDADD = +cbtable_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cbtable_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cbtable_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cbtable_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cbtable_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cbtable_module_SOURCES) +CLEANFILES += $(nodist_cbtable_module_SOURCES) +MOD_FILES += cbtable.mod +MARKER_FILES += cbtable.marker +CLEANFILES += cbtable.marker + +cbtable.marker: $(cbtable_module_SOURCES) $(nodist_cbtable_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cbtable_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += cbtable.module +MODULE_FILES += cbtable.module$(EXEEXT) +cbtable_module_SOURCES = kern/i386/coreboot/cbtable.c kern/coreboot/cbtable.c ## platform sources +nodist_cbtable_module_SOURCES = ## platform nodist sources +cbtable_module_LDADD = +cbtable_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cbtable_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cbtable_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cbtable_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cbtable_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cbtable_module_SOURCES) +CLEANFILES += $(nodist_cbtable_module_SOURCES) +MOD_FILES += cbtable.mod +MARKER_FILES += cbtable.marker +CLEANFILES += cbtable.marker + +cbtable.marker: $(cbtable_module_SOURCES) $(nodist_cbtable_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cbtable_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += cbtable.module +MODULE_FILES += cbtable.module$(EXEEXT) +cbtable_module_SOURCES = kern/i386/coreboot/cbtable.c kern/coreboot/cbtable.c ## platform sources +nodist_cbtable_module_SOURCES = ## platform nodist sources +cbtable_module_LDADD = +cbtable_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cbtable_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cbtable_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cbtable_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cbtable_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cbtable_module_SOURCES) +CLEANFILES += $(nodist_cbtable_module_SOURCES) +MOD_FILES += cbtable.mod +MARKER_FILES += cbtable.marker +CLEANFILES += cbtable.marker + +cbtable.marker: $(cbtable_module_SOURCES) $(nodist_cbtable_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cbtable_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += cbtable.module +MODULE_FILES += cbtable.module$(EXEEXT) +cbtable_module_SOURCES = kern/i386/coreboot/cbtable.c kern/coreboot/cbtable.c ## platform sources +nodist_cbtable_module_SOURCES = ## platform nodist sources +cbtable_module_LDADD = +cbtable_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cbtable_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cbtable_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cbtable_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cbtable_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cbtable_module_SOURCES) +CLEANFILES += $(nodist_cbtable_module_SOURCES) +MOD_FILES += cbtable.mod +MARKER_FILES += cbtable.marker +CLEANFILES += cbtable.marker + +cbtable.marker: $(cbtable_module_SOURCES) $(nodist_cbtable_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cbtable_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += cbtable.module +MODULE_FILES += cbtable.module$(EXEEXT) +cbtable_module_SOURCES = kern/i386/coreboot/cbtable.c kern/coreboot/cbtable.c ## platform sources +nodist_cbtable_module_SOURCES = ## platform nodist sources +cbtable_module_LDADD = +cbtable_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cbtable_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cbtable_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cbtable_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cbtable_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cbtable_module_SOURCES) +CLEANFILES += $(nodist_cbtable_module_SOURCES) +MOD_FILES += cbtable.mod +MARKER_FILES += cbtable.marker +CLEANFILES += cbtable.marker + +cbtable.marker: $(cbtable_module_SOURCES) $(nodist_cbtable_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cbtable_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += cbtime.module +MODULE_FILES += cbtime.module$(EXEEXT) +cbtime_module_SOURCES = commands/i386/coreboot/cb_timestamps.c ## platform sources +nodist_cbtime_module_SOURCES = ## platform nodist sources +cbtime_module_LDADD = +cbtime_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cbtime_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cbtime_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cbtime_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cbtime_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cbtime_module_SOURCES) +CLEANFILES += $(nodist_cbtime_module_SOURCES) +MOD_FILES += cbtime.mod +MARKER_FILES += cbtime.marker +CLEANFILES += cbtime.marker + +cbtime.marker: $(cbtime_module_SOURCES) $(nodist_cbtime_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cbtime_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += cbtime.module +MODULE_FILES += cbtime.module$(EXEEXT) +cbtime_module_SOURCES = commands/i386/coreboot/cb_timestamps.c ## platform sources +nodist_cbtime_module_SOURCES = ## platform nodist sources +cbtime_module_LDADD = +cbtime_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cbtime_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cbtime_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cbtime_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cbtime_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cbtime_module_SOURCES) +CLEANFILES += $(nodist_cbtime_module_SOURCES) +MOD_FILES += cbtime.mod +MARKER_FILES += cbtime.marker +CLEANFILES += cbtime.marker + +cbtime.marker: $(cbtime_module_SOURCES) $(nodist_cbtime_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cbtime_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += cbtime.module +MODULE_FILES += cbtime.module$(EXEEXT) +cbtime_module_SOURCES = commands/i386/coreboot/cb_timestamps.c ## platform sources +nodist_cbtime_module_SOURCES = ## platform nodist sources +cbtime_module_LDADD = +cbtime_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cbtime_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cbtime_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cbtime_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cbtime_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cbtime_module_SOURCES) +CLEANFILES += $(nodist_cbtime_module_SOURCES) +MOD_FILES += cbtime.mod +MARKER_FILES += cbtime.marker +CLEANFILES += cbtime.marker + +cbtime.marker: $(cbtime_module_SOURCES) $(nodist_cbtime_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cbtime_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += cbtime.module +MODULE_FILES += cbtime.module$(EXEEXT) +cbtime_module_SOURCES = commands/i386/coreboot/cb_timestamps.c ## platform sources +nodist_cbtime_module_SOURCES = ## platform nodist sources +cbtime_module_LDADD = +cbtime_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cbtime_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cbtime_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cbtime_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cbtime_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cbtime_module_SOURCES) +CLEANFILES += $(nodist_cbtime_module_SOURCES) +MOD_FILES += cbtime.mod +MARKER_FILES += cbtime.marker +CLEANFILES += cbtime.marker + +cbtime.marker: $(cbtime_module_SOURCES) $(nodist_cbtime_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cbtime_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += cbtime.module +MODULE_FILES += cbtime.module$(EXEEXT) +cbtime_module_SOURCES = commands/i386/coreboot/cb_timestamps.c ## platform sources +nodist_cbtime_module_SOURCES = ## platform nodist sources +cbtime_module_LDADD = +cbtime_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cbtime_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cbtime_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cbtime_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cbtime_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cbtime_module_SOURCES) +CLEANFILES += $(nodist_cbtime_module_SOURCES) +MOD_FILES += cbtime.mod +MARKER_FILES += cbtime.marker +CLEANFILES += cbtime.marker + +cbtime.marker: $(cbtime_module_SOURCES) $(nodist_cbtime_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cbtime_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += cbtime.module +MODULE_FILES += cbtime.module$(EXEEXT) +cbtime_module_SOURCES = commands/i386/coreboot/cb_timestamps.c ## platform sources +nodist_cbtime_module_SOURCES = ## platform nodist sources +cbtime_module_LDADD = +cbtime_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cbtime_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cbtime_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cbtime_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cbtime_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cbtime_module_SOURCES) +CLEANFILES += $(nodist_cbtime_module_SOURCES) +MOD_FILES += cbtime.mod +MARKER_FILES += cbtime.marker +CLEANFILES += cbtime.marker + +cbtime.marker: $(cbtime_module_SOURCES) $(nodist_cbtime_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cbtime_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += cbtime.module +MODULE_FILES += cbtime.module$(EXEEXT) +cbtime_module_SOURCES = commands/i386/coreboot/cb_timestamps.c ## platform sources +nodist_cbtime_module_SOURCES = ## platform nodist sources +cbtime_module_LDADD = +cbtime_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cbtime_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cbtime_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cbtime_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cbtime_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cbtime_module_SOURCES) +CLEANFILES += $(nodist_cbtime_module_SOURCES) +MOD_FILES += cbtime.mod +MARKER_FILES += cbtime.marker +CLEANFILES += cbtime.marker + +cbtime.marker: $(cbtime_module_SOURCES) $(nodist_cbtime_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cbtime_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += cbls.module +MODULE_FILES += cbls.module$(EXEEXT) +cbls_module_SOURCES = commands/i386/coreboot/cbls.c ## platform sources +nodist_cbls_module_SOURCES = ## platform nodist sources +cbls_module_LDADD = +cbls_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cbls_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cbls_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cbls_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cbls_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cbls_module_SOURCES) +CLEANFILES += $(nodist_cbls_module_SOURCES) +MOD_FILES += cbls.mod +MARKER_FILES += cbls.marker +CLEANFILES += cbls.marker + +cbls.marker: $(cbls_module_SOURCES) $(nodist_cbls_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cbls_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += cbls.module +MODULE_FILES += cbls.module$(EXEEXT) +cbls_module_SOURCES = commands/i386/coreboot/cbls.c ## platform sources +nodist_cbls_module_SOURCES = ## platform nodist sources +cbls_module_LDADD = +cbls_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cbls_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cbls_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cbls_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cbls_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cbls_module_SOURCES) +CLEANFILES += $(nodist_cbls_module_SOURCES) +MOD_FILES += cbls.mod +MARKER_FILES += cbls.marker +CLEANFILES += cbls.marker + +cbls.marker: $(cbls_module_SOURCES) $(nodist_cbls_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cbls_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += cbls.module +MODULE_FILES += cbls.module$(EXEEXT) +cbls_module_SOURCES = commands/i386/coreboot/cbls.c ## platform sources +nodist_cbls_module_SOURCES = ## platform nodist sources +cbls_module_LDADD = +cbls_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cbls_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cbls_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cbls_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cbls_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cbls_module_SOURCES) +CLEANFILES += $(nodist_cbls_module_SOURCES) +MOD_FILES += cbls.mod +MARKER_FILES += cbls.marker +CLEANFILES += cbls.marker + +cbls.marker: $(cbls_module_SOURCES) $(nodist_cbls_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cbls_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += cbls.module +MODULE_FILES += cbls.module$(EXEEXT) +cbls_module_SOURCES = commands/i386/coreboot/cbls.c ## platform sources +nodist_cbls_module_SOURCES = ## platform nodist sources +cbls_module_LDADD = +cbls_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cbls_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cbls_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cbls_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cbls_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cbls_module_SOURCES) +CLEANFILES += $(nodist_cbls_module_SOURCES) +MOD_FILES += cbls.mod +MARKER_FILES += cbls.marker +CLEANFILES += cbls.marker + +cbls.marker: $(cbls_module_SOURCES) $(nodist_cbls_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cbls_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += cbls.module +MODULE_FILES += cbls.module$(EXEEXT) +cbls_module_SOURCES = commands/i386/coreboot/cbls.c ## platform sources +nodist_cbls_module_SOURCES = ## platform nodist sources +cbls_module_LDADD = +cbls_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cbls_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cbls_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cbls_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cbls_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cbls_module_SOURCES) +CLEANFILES += $(nodist_cbls_module_SOURCES) +MOD_FILES += cbls.mod +MARKER_FILES += cbls.marker +CLEANFILES += cbls.marker + +cbls.marker: $(cbls_module_SOURCES) $(nodist_cbls_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cbls_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += cbls.module +MODULE_FILES += cbls.module$(EXEEXT) +cbls_module_SOURCES = commands/i386/coreboot/cbls.c ## platform sources +nodist_cbls_module_SOURCES = ## platform nodist sources +cbls_module_LDADD = +cbls_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cbls_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cbls_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cbls_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cbls_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cbls_module_SOURCES) +CLEANFILES += $(nodist_cbls_module_SOURCES) +MOD_FILES += cbls.mod +MARKER_FILES += cbls.marker +CLEANFILES += cbls.marker + +cbls.marker: $(cbls_module_SOURCES) $(nodist_cbls_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cbls_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += cbls.module +MODULE_FILES += cbls.module$(EXEEXT) +cbls_module_SOURCES = commands/i386/coreboot/cbls.c ## platform sources +nodist_cbls_module_SOURCES = ## platform nodist sources +cbls_module_LDADD = +cbls_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cbls_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cbls_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cbls_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cbls_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cbls_module_SOURCES) +CLEANFILES += $(nodist_cbls_module_SOURCES) +MOD_FILES += cbls.mod +MARKER_FILES += cbls.marker +CLEANFILES += cbls.marker + +cbls.marker: $(cbls_module_SOURCES) $(nodist_cbls_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cbls_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += cbmemc.module +MODULE_FILES += cbmemc.module$(EXEEXT) +cbmemc_module_SOURCES = term/i386/coreboot/cbmemc.c ## platform sources +nodist_cbmemc_module_SOURCES = ## platform nodist sources +cbmemc_module_LDADD = +cbmemc_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cbmemc_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cbmemc_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cbmemc_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cbmemc_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cbmemc_module_SOURCES) +CLEANFILES += $(nodist_cbmemc_module_SOURCES) +MOD_FILES += cbmemc.mod +MARKER_FILES += cbmemc.marker +CLEANFILES += cbmemc.marker + +cbmemc.marker: $(cbmemc_module_SOURCES) $(nodist_cbmemc_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cbmemc_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += cbmemc.module +MODULE_FILES += cbmemc.module$(EXEEXT) +cbmemc_module_SOURCES = term/i386/coreboot/cbmemc.c ## platform sources +nodist_cbmemc_module_SOURCES = ## platform nodist sources +cbmemc_module_LDADD = +cbmemc_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cbmemc_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cbmemc_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cbmemc_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cbmemc_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cbmemc_module_SOURCES) +CLEANFILES += $(nodist_cbmemc_module_SOURCES) +MOD_FILES += cbmemc.mod +MARKER_FILES += cbmemc.marker +CLEANFILES += cbmemc.marker + +cbmemc.marker: $(cbmemc_module_SOURCES) $(nodist_cbmemc_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cbmemc_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += cbmemc.module +MODULE_FILES += cbmemc.module$(EXEEXT) +cbmemc_module_SOURCES = term/i386/coreboot/cbmemc.c ## platform sources +nodist_cbmemc_module_SOURCES = ## platform nodist sources +cbmemc_module_LDADD = +cbmemc_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cbmemc_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cbmemc_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cbmemc_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cbmemc_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cbmemc_module_SOURCES) +CLEANFILES += $(nodist_cbmemc_module_SOURCES) +MOD_FILES += cbmemc.mod +MARKER_FILES += cbmemc.marker +CLEANFILES += cbmemc.marker + +cbmemc.marker: $(cbmemc_module_SOURCES) $(nodist_cbmemc_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cbmemc_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += cbmemc.module +MODULE_FILES += cbmemc.module$(EXEEXT) +cbmemc_module_SOURCES = term/i386/coreboot/cbmemc.c ## platform sources +nodist_cbmemc_module_SOURCES = ## platform nodist sources +cbmemc_module_LDADD = +cbmemc_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cbmemc_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cbmemc_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cbmemc_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cbmemc_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cbmemc_module_SOURCES) +CLEANFILES += $(nodist_cbmemc_module_SOURCES) +MOD_FILES += cbmemc.mod +MARKER_FILES += cbmemc.marker +CLEANFILES += cbmemc.marker + +cbmemc.marker: $(cbmemc_module_SOURCES) $(nodist_cbmemc_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cbmemc_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += cbmemc.module +MODULE_FILES += cbmemc.module$(EXEEXT) +cbmemc_module_SOURCES = term/i386/coreboot/cbmemc.c ## platform sources +nodist_cbmemc_module_SOURCES = ## platform nodist sources +cbmemc_module_LDADD = +cbmemc_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cbmemc_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cbmemc_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cbmemc_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cbmemc_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cbmemc_module_SOURCES) +CLEANFILES += $(nodist_cbmemc_module_SOURCES) +MOD_FILES += cbmemc.mod +MARKER_FILES += cbmemc.marker +CLEANFILES += cbmemc.marker + +cbmemc.marker: $(cbmemc_module_SOURCES) $(nodist_cbmemc_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cbmemc_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += cbmemc.module +MODULE_FILES += cbmemc.module$(EXEEXT) +cbmemc_module_SOURCES = term/i386/coreboot/cbmemc.c ## platform sources +nodist_cbmemc_module_SOURCES = ## platform nodist sources +cbmemc_module_LDADD = +cbmemc_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cbmemc_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cbmemc_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cbmemc_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cbmemc_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cbmemc_module_SOURCES) +CLEANFILES += $(nodist_cbmemc_module_SOURCES) +MOD_FILES += cbmemc.mod +MARKER_FILES += cbmemc.marker +CLEANFILES += cbmemc.marker + +cbmemc.marker: $(cbmemc_module_SOURCES) $(nodist_cbmemc_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cbmemc_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += cbmemc.module +MODULE_FILES += cbmemc.module$(EXEEXT) +cbmemc_module_SOURCES = term/i386/coreboot/cbmemc.c ## platform sources +nodist_cbmemc_module_SOURCES = ## platform nodist sources +cbmemc_module_LDADD = +cbmemc_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cbmemc_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cbmemc_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cbmemc_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cbmemc_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cbmemc_module_SOURCES) +CLEANFILES += $(nodist_cbmemc_module_SOURCES) +MOD_FILES += cbmemc.mod +MARKER_FILES += cbmemc.marker +CLEANFILES += cbmemc.marker + +cbmemc.marker: $(cbmemc_module_SOURCES) $(nodist_cbmemc_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cbmemc_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif +platform_PROGRAMS += regexp.module +MODULE_FILES += regexp.module$(EXEEXT) +regexp_module_SOURCES = commands/regexp.c commands/wildcard.c lib/gnulib/regex.c ## platform sources +nodist_regexp_module_SOURCES = ## platform nodist sources +regexp_module_LDADD = +regexp_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) $(CFLAGS_POSIX) $(CFLAGS_GNULIB) +regexp_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +regexp_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) $(CPPFLAGS_POSIX) $(CPPFLAGS_GNULIB) +regexp_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +regexp_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_regexp_module_SOURCES) +CLEANFILES += $(nodist_regexp_module_SOURCES) +MOD_FILES += regexp.mod +MARKER_FILES += regexp.marker +CLEANFILES += regexp.marker + +regexp.marker: $(regexp_module_SOURCES) $(nodist_regexp_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regexp_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new + +if COND_i386_pc +platform_PROGRAMS += acpi.module +MODULE_FILES += acpi.module$(EXEEXT) +acpi_module_SOURCES = kern/acpi.c kern/i386/pc/acpi.c commands/acpi.c ## platform sources +nodist_acpi_module_SOURCES = ## platform nodist sources +acpi_module_LDADD = +acpi_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +acpi_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +acpi_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +acpi_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +acpi_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_acpi_module_SOURCES) +CLEANFILES += $(nodist_acpi_module_SOURCES) +MOD_FILES += acpi.mod +MARKER_FILES += acpi.marker +CLEANFILES += acpi.marker + +acpi.marker: $(acpi_module_SOURCES) $(nodist_acpi_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(acpi_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += acpi.module +MODULE_FILES += acpi.module$(EXEEXT) +acpi_module_SOURCES = commands/acpi.c ## platform sources +nodist_acpi_module_SOURCES = ## platform nodist sources +acpi_module_LDADD = +acpi_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +acpi_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +acpi_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +acpi_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +acpi_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_acpi_module_SOURCES) +CLEANFILES += $(nodist_acpi_module_SOURCES) +MOD_FILES += acpi.mod +MARKER_FILES += acpi.marker +CLEANFILES += acpi.marker + +acpi.marker: $(acpi_module_SOURCES) $(nodist_acpi_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(acpi_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += acpi.module +MODULE_FILES += acpi.module$(EXEEXT) +acpi_module_SOURCES = commands/acpi.c ## platform sources +nodist_acpi_module_SOURCES = ## platform nodist sources +acpi_module_LDADD = +acpi_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +acpi_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +acpi_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +acpi_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +acpi_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_acpi_module_SOURCES) +CLEANFILES += $(nodist_acpi_module_SOURCES) +MOD_FILES += acpi.mod +MARKER_FILES += acpi.marker +CLEANFILES += acpi.marker + +acpi.marker: $(acpi_module_SOURCES) $(nodist_acpi_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(acpi_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += acpi.module +MODULE_FILES += acpi.module$(EXEEXT) +acpi_module_SOURCES = commands/acpi.c ## platform sources +nodist_acpi_module_SOURCES = ## platform nodist sources +acpi_module_LDADD = +acpi_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +acpi_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +acpi_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +acpi_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +acpi_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_acpi_module_SOURCES) +CLEANFILES += $(nodist_acpi_module_SOURCES) +MOD_FILES += acpi.mod +MARKER_FILES += acpi.marker +CLEANFILES += acpi.marker + +acpi.marker: $(acpi_module_SOURCES) $(nodist_acpi_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(acpi_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += acpi.module +MODULE_FILES += acpi.module$(EXEEXT) +acpi_module_SOURCES = commands/acpi.c ## platform sources +nodist_acpi_module_SOURCES = ## platform nodist sources +acpi_module_LDADD = +acpi_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +acpi_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +acpi_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +acpi_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +acpi_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_acpi_module_SOURCES) +CLEANFILES += $(nodist_acpi_module_SOURCES) +MOD_FILES += acpi.mod +MARKER_FILES += acpi.marker +CLEANFILES += acpi.marker + +acpi.marker: $(acpi_module_SOURCES) $(nodist_acpi_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(acpi_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_ia64_efi +platform_PROGRAMS += acpi.module +MODULE_FILES += acpi.module$(EXEEXT) +acpi_module_SOURCES = commands/acpi.c ## platform sources +nodist_acpi_module_SOURCES = ## platform nodist sources +acpi_module_LDADD = +acpi_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +acpi_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +acpi_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +acpi_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +acpi_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_acpi_module_SOURCES) +CLEANFILES += $(nodist_acpi_module_SOURCES) +MOD_FILES += acpi.mod +MARKER_FILES += acpi.marker +CLEANFILES += acpi.marker + +acpi.marker: $(acpi_module_SOURCES) $(nodist_acpi_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(acpi_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_efi +platform_PROGRAMS += acpi.module +MODULE_FILES += acpi.module$(EXEEXT) +acpi_module_SOURCES = commands/acpi.c ## platform sources +nodist_acpi_module_SOURCES = ## platform nodist sources +acpi_module_LDADD = +acpi_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +acpi_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +acpi_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +acpi_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +acpi_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_acpi_module_SOURCES) +CLEANFILES += $(nodist_acpi_module_SOURCES) +MOD_FILES += acpi.mod +MARKER_FILES += acpi.marker +CLEANFILES += acpi.marker + +acpi.marker: $(acpi_module_SOURCES) $(nodist_acpi_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(acpi_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm64_efi +platform_PROGRAMS += acpi.module +MODULE_FILES += acpi.module$(EXEEXT) +acpi_module_SOURCES = commands/acpi.c ## platform sources +nodist_acpi_module_SOURCES = ## platform nodist sources +acpi_module_LDADD = +acpi_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +acpi_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +acpi_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +acpi_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +acpi_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_acpi_module_SOURCES) +CLEANFILES += $(nodist_acpi_module_SOURCES) +MOD_FILES += acpi.mod +MARKER_FILES += acpi.marker +CLEANFILES += acpi.marker + +acpi.marker: $(acpi_module_SOURCES) $(nodist_acpi_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(acpi_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv32_efi +platform_PROGRAMS += acpi.module +MODULE_FILES += acpi.module$(EXEEXT) +acpi_module_SOURCES = commands/acpi.c ## platform sources +nodist_acpi_module_SOURCES = ## platform nodist sources +acpi_module_LDADD = +acpi_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +acpi_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +acpi_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +acpi_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +acpi_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_acpi_module_SOURCES) +CLEANFILES += $(nodist_acpi_module_SOURCES) +MOD_FILES += acpi.mod +MARKER_FILES += acpi.marker +CLEANFILES += acpi.marker + +acpi.marker: $(acpi_module_SOURCES) $(nodist_acpi_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(acpi_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv64_efi +platform_PROGRAMS += acpi.module +MODULE_FILES += acpi.module$(EXEEXT) +acpi_module_SOURCES = commands/acpi.c ## platform sources +nodist_acpi_module_SOURCES = ## platform nodist sources +acpi_module_LDADD = +acpi_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +acpi_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +acpi_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +acpi_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +acpi_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_acpi_module_SOURCES) +CLEANFILES += $(nodist_acpi_module_SOURCES) +MOD_FILES += acpi.mod +MARKER_FILES += acpi.marker +CLEANFILES += acpi.marker + +acpi.marker: $(acpi_module_SOURCES) $(nodist_acpi_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(acpi_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += lsacpi.module +MODULE_FILES += lsacpi.module$(EXEEXT) +lsacpi_module_SOURCES = commands/lsacpi.c ## platform sources +nodist_lsacpi_module_SOURCES = ## platform nodist sources +lsacpi_module_LDADD = +lsacpi_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lsacpi_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lsacpi_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lsacpi_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lsacpi_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lsacpi_module_SOURCES) +CLEANFILES += $(nodist_lsacpi_module_SOURCES) +MOD_FILES += lsacpi.mod +MARKER_FILES += lsacpi.marker +CLEANFILES += lsacpi.marker + +lsacpi.marker: $(lsacpi_module_SOURCES) $(nodist_lsacpi_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lsacpi_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += lsacpi.module +MODULE_FILES += lsacpi.module$(EXEEXT) +lsacpi_module_SOURCES = commands/lsacpi.c ## platform sources +nodist_lsacpi_module_SOURCES = ## platform nodist sources +lsacpi_module_LDADD = +lsacpi_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lsacpi_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lsacpi_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lsacpi_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lsacpi_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lsacpi_module_SOURCES) +CLEANFILES += $(nodist_lsacpi_module_SOURCES) +MOD_FILES += lsacpi.mod +MARKER_FILES += lsacpi.marker +CLEANFILES += lsacpi.marker + +lsacpi.marker: $(lsacpi_module_SOURCES) $(nodist_lsacpi_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lsacpi_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += lsacpi.module +MODULE_FILES += lsacpi.module$(EXEEXT) +lsacpi_module_SOURCES = commands/lsacpi.c ## platform sources +nodist_lsacpi_module_SOURCES = ## platform nodist sources +lsacpi_module_LDADD = +lsacpi_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lsacpi_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lsacpi_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lsacpi_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lsacpi_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lsacpi_module_SOURCES) +CLEANFILES += $(nodist_lsacpi_module_SOURCES) +MOD_FILES += lsacpi.mod +MARKER_FILES += lsacpi.marker +CLEANFILES += lsacpi.marker + +lsacpi.marker: $(lsacpi_module_SOURCES) $(nodist_lsacpi_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lsacpi_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += lsacpi.module +MODULE_FILES += lsacpi.module$(EXEEXT) +lsacpi_module_SOURCES = commands/lsacpi.c ## platform sources +nodist_lsacpi_module_SOURCES = ## platform nodist sources +lsacpi_module_LDADD = +lsacpi_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lsacpi_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lsacpi_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lsacpi_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lsacpi_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lsacpi_module_SOURCES) +CLEANFILES += $(nodist_lsacpi_module_SOURCES) +MOD_FILES += lsacpi.mod +MARKER_FILES += lsacpi.marker +CLEANFILES += lsacpi.marker + +lsacpi.marker: $(lsacpi_module_SOURCES) $(nodist_lsacpi_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lsacpi_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += lsacpi.module +MODULE_FILES += lsacpi.module$(EXEEXT) +lsacpi_module_SOURCES = commands/lsacpi.c ## platform sources +nodist_lsacpi_module_SOURCES = ## platform nodist sources +lsacpi_module_LDADD = +lsacpi_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lsacpi_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lsacpi_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lsacpi_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lsacpi_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lsacpi_module_SOURCES) +CLEANFILES += $(nodist_lsacpi_module_SOURCES) +MOD_FILES += lsacpi.mod +MARKER_FILES += lsacpi.marker +CLEANFILES += lsacpi.marker + +lsacpi.marker: $(lsacpi_module_SOURCES) $(nodist_lsacpi_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lsacpi_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_ia64_efi +platform_PROGRAMS += lsacpi.module +MODULE_FILES += lsacpi.module$(EXEEXT) +lsacpi_module_SOURCES = commands/lsacpi.c ## platform sources +nodist_lsacpi_module_SOURCES = ## platform nodist sources +lsacpi_module_LDADD = +lsacpi_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lsacpi_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lsacpi_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lsacpi_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lsacpi_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lsacpi_module_SOURCES) +CLEANFILES += $(nodist_lsacpi_module_SOURCES) +MOD_FILES += lsacpi.mod +MARKER_FILES += lsacpi.marker +CLEANFILES += lsacpi.marker + +lsacpi.marker: $(lsacpi_module_SOURCES) $(nodist_lsacpi_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lsacpi_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_efi +platform_PROGRAMS += lsacpi.module +MODULE_FILES += lsacpi.module$(EXEEXT) +lsacpi_module_SOURCES = commands/lsacpi.c ## platform sources +nodist_lsacpi_module_SOURCES = ## platform nodist sources +lsacpi_module_LDADD = +lsacpi_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lsacpi_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lsacpi_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lsacpi_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lsacpi_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lsacpi_module_SOURCES) +CLEANFILES += $(nodist_lsacpi_module_SOURCES) +MOD_FILES += lsacpi.mod +MARKER_FILES += lsacpi.marker +CLEANFILES += lsacpi.marker + +lsacpi.marker: $(lsacpi_module_SOURCES) $(nodist_lsacpi_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lsacpi_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm64_efi +platform_PROGRAMS += lsacpi.module +MODULE_FILES += lsacpi.module$(EXEEXT) +lsacpi_module_SOURCES = commands/lsacpi.c ## platform sources +nodist_lsacpi_module_SOURCES = ## platform nodist sources +lsacpi_module_LDADD = +lsacpi_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lsacpi_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lsacpi_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lsacpi_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lsacpi_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lsacpi_module_SOURCES) +CLEANFILES += $(nodist_lsacpi_module_SOURCES) +MOD_FILES += lsacpi.mod +MARKER_FILES += lsacpi.marker +CLEANFILES += lsacpi.marker + +lsacpi.marker: $(lsacpi_module_SOURCES) $(nodist_lsacpi_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lsacpi_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv32_efi +platform_PROGRAMS += lsacpi.module +MODULE_FILES += lsacpi.module$(EXEEXT) +lsacpi_module_SOURCES = commands/lsacpi.c ## platform sources +nodist_lsacpi_module_SOURCES = ## platform nodist sources +lsacpi_module_LDADD = +lsacpi_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lsacpi_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lsacpi_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lsacpi_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lsacpi_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lsacpi_module_SOURCES) +CLEANFILES += $(nodist_lsacpi_module_SOURCES) +MOD_FILES += lsacpi.mod +MARKER_FILES += lsacpi.marker +CLEANFILES += lsacpi.marker + +lsacpi.marker: $(lsacpi_module_SOURCES) $(nodist_lsacpi_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lsacpi_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv64_efi +platform_PROGRAMS += lsacpi.module +MODULE_FILES += lsacpi.module$(EXEEXT) +lsacpi_module_SOURCES = commands/lsacpi.c ## platform sources +nodist_lsacpi_module_SOURCES = ## platform nodist sources +lsacpi_module_LDADD = +lsacpi_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lsacpi_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lsacpi_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lsacpi_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lsacpi_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lsacpi_module_SOURCES) +CLEANFILES += $(nodist_lsacpi_module_SOURCES) +MOD_FILES += lsacpi.mod +MARKER_FILES += lsacpi.marker +CLEANFILES += lsacpi.marker + +lsacpi.marker: $(lsacpi_module_SOURCES) $(nodist_lsacpi_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lsacpi_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += lsefisystab.module +MODULE_FILES += lsefisystab.module$(EXEEXT) +lsefisystab_module_SOURCES = commands/efi/lsefisystab.c ## platform sources +nodist_lsefisystab_module_SOURCES = ## platform nodist sources +lsefisystab_module_LDADD = +lsefisystab_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lsefisystab_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lsefisystab_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lsefisystab_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lsefisystab_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lsefisystab_module_SOURCES) +CLEANFILES += $(nodist_lsefisystab_module_SOURCES) +MOD_FILES += lsefisystab.mod +MARKER_FILES += lsefisystab.marker +CLEANFILES += lsefisystab.marker + +lsefisystab.marker: $(lsefisystab_module_SOURCES) $(nodist_lsefisystab_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lsefisystab_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += lsefisystab.module +MODULE_FILES += lsefisystab.module$(EXEEXT) +lsefisystab_module_SOURCES = commands/efi/lsefisystab.c ## platform sources +nodist_lsefisystab_module_SOURCES = ## platform nodist sources +lsefisystab_module_LDADD = +lsefisystab_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lsefisystab_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lsefisystab_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lsefisystab_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lsefisystab_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lsefisystab_module_SOURCES) +CLEANFILES += $(nodist_lsefisystab_module_SOURCES) +MOD_FILES += lsefisystab.mod +MARKER_FILES += lsefisystab.marker +CLEANFILES += lsefisystab.marker + +lsefisystab.marker: $(lsefisystab_module_SOURCES) $(nodist_lsefisystab_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lsefisystab_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_ia64_efi +platform_PROGRAMS += lsefisystab.module +MODULE_FILES += lsefisystab.module$(EXEEXT) +lsefisystab_module_SOURCES = commands/efi/lsefisystab.c ## platform sources +nodist_lsefisystab_module_SOURCES = ## platform nodist sources +lsefisystab_module_LDADD = +lsefisystab_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lsefisystab_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lsefisystab_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lsefisystab_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lsefisystab_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lsefisystab_module_SOURCES) +CLEANFILES += $(nodist_lsefisystab_module_SOURCES) +MOD_FILES += lsefisystab.mod +MARKER_FILES += lsefisystab.marker +CLEANFILES += lsefisystab.marker + +lsefisystab.marker: $(lsefisystab_module_SOURCES) $(nodist_lsefisystab_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lsefisystab_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_efi +platform_PROGRAMS += lsefisystab.module +MODULE_FILES += lsefisystab.module$(EXEEXT) +lsefisystab_module_SOURCES = commands/efi/lsefisystab.c ## platform sources +nodist_lsefisystab_module_SOURCES = ## platform nodist sources +lsefisystab_module_LDADD = +lsefisystab_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lsefisystab_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lsefisystab_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lsefisystab_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lsefisystab_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lsefisystab_module_SOURCES) +CLEANFILES += $(nodist_lsefisystab_module_SOURCES) +MOD_FILES += lsefisystab.mod +MARKER_FILES += lsefisystab.marker +CLEANFILES += lsefisystab.marker + +lsefisystab.marker: $(lsefisystab_module_SOURCES) $(nodist_lsefisystab_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lsefisystab_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm64_efi +platform_PROGRAMS += lsefisystab.module +MODULE_FILES += lsefisystab.module$(EXEEXT) +lsefisystab_module_SOURCES = commands/efi/lsefisystab.c ## platform sources +nodist_lsefisystab_module_SOURCES = ## platform nodist sources +lsefisystab_module_LDADD = +lsefisystab_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lsefisystab_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lsefisystab_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lsefisystab_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lsefisystab_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lsefisystab_module_SOURCES) +CLEANFILES += $(nodist_lsefisystab_module_SOURCES) +MOD_FILES += lsefisystab.mod +MARKER_FILES += lsefisystab.marker +CLEANFILES += lsefisystab.marker + +lsefisystab.marker: $(lsefisystab_module_SOURCES) $(nodist_lsefisystab_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lsefisystab_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv32_efi +platform_PROGRAMS += lsefisystab.module +MODULE_FILES += lsefisystab.module$(EXEEXT) +lsefisystab_module_SOURCES = commands/efi/lsefisystab.c ## platform sources +nodist_lsefisystab_module_SOURCES = ## platform nodist sources +lsefisystab_module_LDADD = +lsefisystab_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lsefisystab_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lsefisystab_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lsefisystab_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lsefisystab_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lsefisystab_module_SOURCES) +CLEANFILES += $(nodist_lsefisystab_module_SOURCES) +MOD_FILES += lsefisystab.mod +MARKER_FILES += lsefisystab.marker +CLEANFILES += lsefisystab.marker + +lsefisystab.marker: $(lsefisystab_module_SOURCES) $(nodist_lsefisystab_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lsefisystab_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv64_efi +platform_PROGRAMS += lsefisystab.module +MODULE_FILES += lsefisystab.module$(EXEEXT) +lsefisystab_module_SOURCES = commands/efi/lsefisystab.c ## platform sources +nodist_lsefisystab_module_SOURCES = ## platform nodist sources +lsefisystab_module_LDADD = +lsefisystab_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lsefisystab_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lsefisystab_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lsefisystab_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lsefisystab_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lsefisystab_module_SOURCES) +CLEANFILES += $(nodist_lsefisystab_module_SOURCES) +MOD_FILES += lsefisystab.mod +MARKER_FILES += lsefisystab.marker +CLEANFILES += lsefisystab.marker + +lsefisystab.marker: $(lsefisystab_module_SOURCES) $(nodist_lsefisystab_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lsefisystab_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += lssal.module +MODULE_FILES += lssal.module$(EXEEXT) +lssal_module_SOURCES = commands/efi/lssal.c ## platform sources +nodist_lssal_module_SOURCES = ## platform nodist sources +lssal_module_LDADD = +lssal_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lssal_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lssal_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lssal_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lssal_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lssal_module_SOURCES) +CLEANFILES += $(nodist_lssal_module_SOURCES) +MOD_FILES += lssal.mod +MARKER_FILES += lssal.marker +CLEANFILES += lssal.marker + +lssal.marker: $(lssal_module_SOURCES) $(nodist_lssal_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lssal_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += lssal.module +MODULE_FILES += lssal.module$(EXEEXT) +lssal_module_SOURCES = commands/efi/lssal.c ## platform sources +nodist_lssal_module_SOURCES = ## platform nodist sources +lssal_module_LDADD = +lssal_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lssal_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lssal_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lssal_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lssal_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lssal_module_SOURCES) +CLEANFILES += $(nodist_lssal_module_SOURCES) +MOD_FILES += lssal.mod +MARKER_FILES += lssal.marker +CLEANFILES += lssal.marker + +lssal.marker: $(lssal_module_SOURCES) $(nodist_lssal_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lssal_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_ia64_efi +platform_PROGRAMS += lssal.module +MODULE_FILES += lssal.module$(EXEEXT) +lssal_module_SOURCES = commands/efi/lssal.c ## platform sources +nodist_lssal_module_SOURCES = ## platform nodist sources +lssal_module_LDADD = +lssal_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lssal_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lssal_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lssal_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lssal_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lssal_module_SOURCES) +CLEANFILES += $(nodist_lssal_module_SOURCES) +MOD_FILES += lssal.mod +MARKER_FILES += lssal.marker +CLEANFILES += lssal.marker + +lssal.marker: $(lssal_module_SOURCES) $(nodist_lssal_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lssal_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_efi +platform_PROGRAMS += lssal.module +MODULE_FILES += lssal.module$(EXEEXT) +lssal_module_SOURCES = commands/efi/lssal.c ## platform sources +nodist_lssal_module_SOURCES = ## platform nodist sources +lssal_module_LDADD = +lssal_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lssal_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lssal_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lssal_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lssal_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lssal_module_SOURCES) +CLEANFILES += $(nodist_lssal_module_SOURCES) +MOD_FILES += lssal.mod +MARKER_FILES += lssal.marker +CLEANFILES += lssal.marker + +lssal.marker: $(lssal_module_SOURCES) $(nodist_lssal_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lssal_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm64_efi +platform_PROGRAMS += lssal.module +MODULE_FILES += lssal.module$(EXEEXT) +lssal_module_SOURCES = commands/efi/lssal.c ## platform sources +nodist_lssal_module_SOURCES = ## platform nodist sources +lssal_module_LDADD = +lssal_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lssal_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lssal_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lssal_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lssal_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lssal_module_SOURCES) +CLEANFILES += $(nodist_lssal_module_SOURCES) +MOD_FILES += lssal.mod +MARKER_FILES += lssal.marker +CLEANFILES += lssal.marker + +lssal.marker: $(lssal_module_SOURCES) $(nodist_lssal_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lssal_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv32_efi +platform_PROGRAMS += lssal.module +MODULE_FILES += lssal.module$(EXEEXT) +lssal_module_SOURCES = commands/efi/lssal.c ## platform sources +nodist_lssal_module_SOURCES = ## platform nodist sources +lssal_module_LDADD = +lssal_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lssal_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lssal_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lssal_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lssal_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lssal_module_SOURCES) +CLEANFILES += $(nodist_lssal_module_SOURCES) +MOD_FILES += lssal.mod +MARKER_FILES += lssal.marker +CLEANFILES += lssal.marker + +lssal.marker: $(lssal_module_SOURCES) $(nodist_lssal_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lssal_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv64_efi +platform_PROGRAMS += lssal.module +MODULE_FILES += lssal.module$(EXEEXT) +lssal_module_SOURCES = commands/efi/lssal.c ## platform sources +nodist_lssal_module_SOURCES = ## platform nodist sources +lssal_module_LDADD = +lssal_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lssal_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lssal_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lssal_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lssal_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lssal_module_SOURCES) +CLEANFILES += $(nodist_lssal_module_SOURCES) +MOD_FILES += lssal.mod +MARKER_FILES += lssal.marker +CLEANFILES += lssal.marker + +lssal.marker: $(lssal_module_SOURCES) $(nodist_lssal_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lssal_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += lsefimmap.module +MODULE_FILES += lsefimmap.module$(EXEEXT) +lsefimmap_module_SOURCES = commands/efi/lsefimmap.c ## platform sources +nodist_lsefimmap_module_SOURCES = ## platform nodist sources +lsefimmap_module_LDADD = +lsefimmap_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lsefimmap_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lsefimmap_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lsefimmap_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lsefimmap_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lsefimmap_module_SOURCES) +CLEANFILES += $(nodist_lsefimmap_module_SOURCES) +MOD_FILES += lsefimmap.mod +MARKER_FILES += lsefimmap.marker +CLEANFILES += lsefimmap.marker + +lsefimmap.marker: $(lsefimmap_module_SOURCES) $(nodist_lsefimmap_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lsefimmap_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += lsefimmap.module +MODULE_FILES += lsefimmap.module$(EXEEXT) +lsefimmap_module_SOURCES = commands/efi/lsefimmap.c ## platform sources +nodist_lsefimmap_module_SOURCES = ## platform nodist sources +lsefimmap_module_LDADD = +lsefimmap_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lsefimmap_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lsefimmap_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lsefimmap_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lsefimmap_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lsefimmap_module_SOURCES) +CLEANFILES += $(nodist_lsefimmap_module_SOURCES) +MOD_FILES += lsefimmap.mod +MARKER_FILES += lsefimmap.marker +CLEANFILES += lsefimmap.marker + +lsefimmap.marker: $(lsefimmap_module_SOURCES) $(nodist_lsefimmap_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lsefimmap_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_ia64_efi +platform_PROGRAMS += lsefimmap.module +MODULE_FILES += lsefimmap.module$(EXEEXT) +lsefimmap_module_SOURCES = commands/efi/lsefimmap.c ## platform sources +nodist_lsefimmap_module_SOURCES = ## platform nodist sources +lsefimmap_module_LDADD = +lsefimmap_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lsefimmap_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lsefimmap_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lsefimmap_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lsefimmap_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lsefimmap_module_SOURCES) +CLEANFILES += $(nodist_lsefimmap_module_SOURCES) +MOD_FILES += lsefimmap.mod +MARKER_FILES += lsefimmap.marker +CLEANFILES += lsefimmap.marker + +lsefimmap.marker: $(lsefimmap_module_SOURCES) $(nodist_lsefimmap_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lsefimmap_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_efi +platform_PROGRAMS += lsefimmap.module +MODULE_FILES += lsefimmap.module$(EXEEXT) +lsefimmap_module_SOURCES = commands/efi/lsefimmap.c ## platform sources +nodist_lsefimmap_module_SOURCES = ## platform nodist sources +lsefimmap_module_LDADD = +lsefimmap_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lsefimmap_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lsefimmap_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lsefimmap_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lsefimmap_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lsefimmap_module_SOURCES) +CLEANFILES += $(nodist_lsefimmap_module_SOURCES) +MOD_FILES += lsefimmap.mod +MARKER_FILES += lsefimmap.marker +CLEANFILES += lsefimmap.marker + +lsefimmap.marker: $(lsefimmap_module_SOURCES) $(nodist_lsefimmap_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lsefimmap_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm64_efi +platform_PROGRAMS += lsefimmap.module +MODULE_FILES += lsefimmap.module$(EXEEXT) +lsefimmap_module_SOURCES = commands/efi/lsefimmap.c ## platform sources +nodist_lsefimmap_module_SOURCES = ## platform nodist sources +lsefimmap_module_LDADD = +lsefimmap_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lsefimmap_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lsefimmap_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lsefimmap_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lsefimmap_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lsefimmap_module_SOURCES) +CLEANFILES += $(nodist_lsefimmap_module_SOURCES) +MOD_FILES += lsefimmap.mod +MARKER_FILES += lsefimmap.marker +CLEANFILES += lsefimmap.marker + +lsefimmap.marker: $(lsefimmap_module_SOURCES) $(nodist_lsefimmap_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lsefimmap_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv32_efi +platform_PROGRAMS += lsefimmap.module +MODULE_FILES += lsefimmap.module$(EXEEXT) +lsefimmap_module_SOURCES = commands/efi/lsefimmap.c ## platform sources +nodist_lsefimmap_module_SOURCES = ## platform nodist sources +lsefimmap_module_LDADD = +lsefimmap_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lsefimmap_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lsefimmap_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lsefimmap_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lsefimmap_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lsefimmap_module_SOURCES) +CLEANFILES += $(nodist_lsefimmap_module_SOURCES) +MOD_FILES += lsefimmap.mod +MARKER_FILES += lsefimmap.marker +CLEANFILES += lsefimmap.marker + +lsefimmap.marker: $(lsefimmap_module_SOURCES) $(nodist_lsefimmap_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lsefimmap_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv64_efi +platform_PROGRAMS += lsefimmap.module +MODULE_FILES += lsefimmap.module$(EXEEXT) +lsefimmap_module_SOURCES = commands/efi/lsefimmap.c ## platform sources +nodist_lsefimmap_module_SOURCES = ## platform nodist sources +lsefimmap_module_LDADD = +lsefimmap_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lsefimmap_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lsefimmap_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lsefimmap_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lsefimmap_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lsefimmap_module_SOURCES) +CLEANFILES += $(nodist_lsefimmap_module_SOURCES) +MOD_FILES += lsefimmap.mod +MARKER_FILES += lsefimmap.marker +CLEANFILES += lsefimmap.marker + +lsefimmap.marker: $(lsefimmap_module_SOURCES) $(nodist_lsefimmap_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lsefimmap_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += lsefi.module +MODULE_FILES += lsefi.module$(EXEEXT) +lsefi_module_SOURCES = commands/efi/lsefi.c ## platform sources +nodist_lsefi_module_SOURCES = ## platform nodist sources +lsefi_module_LDADD = +lsefi_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lsefi_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lsefi_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lsefi_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lsefi_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lsefi_module_SOURCES) +CLEANFILES += $(nodist_lsefi_module_SOURCES) +MOD_FILES += lsefi.mod +MARKER_FILES += lsefi.marker +CLEANFILES += lsefi.marker + +lsefi.marker: $(lsefi_module_SOURCES) $(nodist_lsefi_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lsefi_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += lsefi.module +MODULE_FILES += lsefi.module$(EXEEXT) +lsefi_module_SOURCES = commands/efi/lsefi.c ## platform sources +nodist_lsefi_module_SOURCES = ## platform nodist sources +lsefi_module_LDADD = +lsefi_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lsefi_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lsefi_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lsefi_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lsefi_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lsefi_module_SOURCES) +CLEANFILES += $(nodist_lsefi_module_SOURCES) +MOD_FILES += lsefi.mod +MARKER_FILES += lsefi.marker +CLEANFILES += lsefi.marker + +lsefi.marker: $(lsefi_module_SOURCES) $(nodist_lsefi_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lsefi_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_ia64_efi +platform_PROGRAMS += lsefi.module +MODULE_FILES += lsefi.module$(EXEEXT) +lsefi_module_SOURCES = commands/efi/lsefi.c ## platform sources +nodist_lsefi_module_SOURCES = ## platform nodist sources +lsefi_module_LDADD = +lsefi_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lsefi_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lsefi_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lsefi_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lsefi_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lsefi_module_SOURCES) +CLEANFILES += $(nodist_lsefi_module_SOURCES) +MOD_FILES += lsefi.mod +MARKER_FILES += lsefi.marker +CLEANFILES += lsefi.marker + +lsefi.marker: $(lsefi_module_SOURCES) $(nodist_lsefi_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lsefi_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_efi +platform_PROGRAMS += lsefi.module +MODULE_FILES += lsefi.module$(EXEEXT) +lsefi_module_SOURCES = commands/efi/lsefi.c ## platform sources +nodist_lsefi_module_SOURCES = ## platform nodist sources +lsefi_module_LDADD = +lsefi_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lsefi_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lsefi_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lsefi_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lsefi_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lsefi_module_SOURCES) +CLEANFILES += $(nodist_lsefi_module_SOURCES) +MOD_FILES += lsefi.mod +MARKER_FILES += lsefi.marker +CLEANFILES += lsefi.marker + +lsefi.marker: $(lsefi_module_SOURCES) $(nodist_lsefi_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lsefi_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm64_efi +platform_PROGRAMS += lsefi.module +MODULE_FILES += lsefi.module$(EXEEXT) +lsefi_module_SOURCES = commands/efi/lsefi.c ## platform sources +nodist_lsefi_module_SOURCES = ## platform nodist sources +lsefi_module_LDADD = +lsefi_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lsefi_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lsefi_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lsefi_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lsefi_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lsefi_module_SOURCES) +CLEANFILES += $(nodist_lsefi_module_SOURCES) +MOD_FILES += lsefi.mod +MARKER_FILES += lsefi.marker +CLEANFILES += lsefi.marker + +lsefi.marker: $(lsefi_module_SOURCES) $(nodist_lsefi_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lsefi_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv32_efi +platform_PROGRAMS += lsefi.module +MODULE_FILES += lsefi.module$(EXEEXT) +lsefi_module_SOURCES = commands/efi/lsefi.c ## platform sources +nodist_lsefi_module_SOURCES = ## platform nodist sources +lsefi_module_LDADD = +lsefi_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lsefi_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lsefi_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lsefi_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lsefi_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lsefi_module_SOURCES) +CLEANFILES += $(nodist_lsefi_module_SOURCES) +MOD_FILES += lsefi.mod +MARKER_FILES += lsefi.marker +CLEANFILES += lsefi.marker + +lsefi.marker: $(lsefi_module_SOURCES) $(nodist_lsefi_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lsefi_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv64_efi +platform_PROGRAMS += lsefi.module +MODULE_FILES += lsefi.module$(EXEEXT) +lsefi_module_SOURCES = commands/efi/lsefi.c ## platform sources +nodist_lsefi_module_SOURCES = ## platform nodist sources +lsefi_module_LDADD = +lsefi_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lsefi_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lsefi_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lsefi_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lsefi_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lsefi_module_SOURCES) +CLEANFILES += $(nodist_lsefi_module_SOURCES) +MOD_FILES += lsefi.mod +MARKER_FILES += lsefi.marker +CLEANFILES += lsefi.marker + +lsefi.marker: $(lsefi_module_SOURCES) $(nodist_lsefi_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lsefi_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += efifwsetup.module +MODULE_FILES += efifwsetup.module$(EXEEXT) +efifwsetup_module_SOURCES = commands/efi/efifwsetup.c ## platform sources +nodist_efifwsetup_module_SOURCES = ## platform nodist sources +efifwsetup_module_LDADD = +efifwsetup_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +efifwsetup_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +efifwsetup_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +efifwsetup_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +efifwsetup_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_efifwsetup_module_SOURCES) +CLEANFILES += $(nodist_efifwsetup_module_SOURCES) +MOD_FILES += efifwsetup.mod +MARKER_FILES += efifwsetup.marker +CLEANFILES += efifwsetup.marker + +efifwsetup.marker: $(efifwsetup_module_SOURCES) $(nodist_efifwsetup_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(efifwsetup_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += efifwsetup.module +MODULE_FILES += efifwsetup.module$(EXEEXT) +efifwsetup_module_SOURCES = commands/efi/efifwsetup.c ## platform sources +nodist_efifwsetup_module_SOURCES = ## platform nodist sources +efifwsetup_module_LDADD = +efifwsetup_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +efifwsetup_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +efifwsetup_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +efifwsetup_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +efifwsetup_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_efifwsetup_module_SOURCES) +CLEANFILES += $(nodist_efifwsetup_module_SOURCES) +MOD_FILES += efifwsetup.mod +MARKER_FILES += efifwsetup.marker +CLEANFILES += efifwsetup.marker + +efifwsetup.marker: $(efifwsetup_module_SOURCES) $(nodist_efifwsetup_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(efifwsetup_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_ia64_efi +platform_PROGRAMS += efifwsetup.module +MODULE_FILES += efifwsetup.module$(EXEEXT) +efifwsetup_module_SOURCES = commands/efi/efifwsetup.c ## platform sources +nodist_efifwsetup_module_SOURCES = ## platform nodist sources +efifwsetup_module_LDADD = +efifwsetup_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +efifwsetup_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +efifwsetup_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +efifwsetup_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +efifwsetup_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_efifwsetup_module_SOURCES) +CLEANFILES += $(nodist_efifwsetup_module_SOURCES) +MOD_FILES += efifwsetup.mod +MARKER_FILES += efifwsetup.marker +CLEANFILES += efifwsetup.marker + +efifwsetup.marker: $(efifwsetup_module_SOURCES) $(nodist_efifwsetup_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(efifwsetup_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_efi +platform_PROGRAMS += efifwsetup.module +MODULE_FILES += efifwsetup.module$(EXEEXT) +efifwsetup_module_SOURCES = commands/efi/efifwsetup.c ## platform sources +nodist_efifwsetup_module_SOURCES = ## platform nodist sources +efifwsetup_module_LDADD = +efifwsetup_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +efifwsetup_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +efifwsetup_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +efifwsetup_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +efifwsetup_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_efifwsetup_module_SOURCES) +CLEANFILES += $(nodist_efifwsetup_module_SOURCES) +MOD_FILES += efifwsetup.mod +MARKER_FILES += efifwsetup.marker +CLEANFILES += efifwsetup.marker + +efifwsetup.marker: $(efifwsetup_module_SOURCES) $(nodist_efifwsetup_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(efifwsetup_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm64_efi +platform_PROGRAMS += efifwsetup.module +MODULE_FILES += efifwsetup.module$(EXEEXT) +efifwsetup_module_SOURCES = commands/efi/efifwsetup.c ## platform sources +nodist_efifwsetup_module_SOURCES = ## platform nodist sources +efifwsetup_module_LDADD = +efifwsetup_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +efifwsetup_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +efifwsetup_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +efifwsetup_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +efifwsetup_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_efifwsetup_module_SOURCES) +CLEANFILES += $(nodist_efifwsetup_module_SOURCES) +MOD_FILES += efifwsetup.mod +MARKER_FILES += efifwsetup.marker +CLEANFILES += efifwsetup.marker + +efifwsetup.marker: $(efifwsetup_module_SOURCES) $(nodist_efifwsetup_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(efifwsetup_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv32_efi +platform_PROGRAMS += efifwsetup.module +MODULE_FILES += efifwsetup.module$(EXEEXT) +efifwsetup_module_SOURCES = commands/efi/efifwsetup.c ## platform sources +nodist_efifwsetup_module_SOURCES = ## platform nodist sources +efifwsetup_module_LDADD = +efifwsetup_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +efifwsetup_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +efifwsetup_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +efifwsetup_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +efifwsetup_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_efifwsetup_module_SOURCES) +CLEANFILES += $(nodist_efifwsetup_module_SOURCES) +MOD_FILES += efifwsetup.mod +MARKER_FILES += efifwsetup.marker +CLEANFILES += efifwsetup.marker + +efifwsetup.marker: $(efifwsetup_module_SOURCES) $(nodist_efifwsetup_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(efifwsetup_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv64_efi +platform_PROGRAMS += efifwsetup.module +MODULE_FILES += efifwsetup.module$(EXEEXT) +efifwsetup_module_SOURCES = commands/efi/efifwsetup.c ## platform sources +nodist_efifwsetup_module_SOURCES = ## platform nodist sources +efifwsetup_module_LDADD = +efifwsetup_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +efifwsetup_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +efifwsetup_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +efifwsetup_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +efifwsetup_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_efifwsetup_module_SOURCES) +CLEANFILES += $(nodist_efifwsetup_module_SOURCES) +MOD_FILES += efifwsetup.mod +MARKER_FILES += efifwsetup.marker +CLEANFILES += efifwsetup.marker + +efifwsetup.marker: $(efifwsetup_module_SOURCES) $(nodist_efifwsetup_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(efifwsetup_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif +platform_PROGRAMS += blocklist.module +MODULE_FILES += blocklist.module$(EXEEXT) +blocklist_module_SOURCES = commands/blocklist.c ## platform sources +nodist_blocklist_module_SOURCES = ## platform nodist sources +blocklist_module_LDADD = +blocklist_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +blocklist_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +blocklist_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +blocklist_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +blocklist_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_blocklist_module_SOURCES) +CLEANFILES += $(nodist_blocklist_module_SOURCES) +MOD_FILES += blocklist.mod +MARKER_FILES += blocklist.marker +CLEANFILES += blocklist.marker + +blocklist.marker: $(blocklist_module_SOURCES) $(nodist_blocklist_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(blocklist_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new + +if COND_emu +platform_PROGRAMS += boot.module +MODULE_FILES += boot.module$(EXEEXT) +boot_module_SOURCES = commands/boot.c ## platform sources +nodist_boot_module_SOURCES = ## platform nodist sources +boot_module_LDADD = +boot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +boot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +boot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +boot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +boot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_boot_module_SOURCES) +CLEANFILES += $(nodist_boot_module_SOURCES) +MOD_FILES += boot.mod +MARKER_FILES += boot.marker +CLEANFILES += boot.marker + +boot.marker: $(boot_module_SOURCES) $(nodist_boot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(boot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += boot.module +MODULE_FILES += boot.module$(EXEEXT) +boot_module_SOURCES = lib/i386/pc/biosnum.c commands/boot.c ## platform sources +nodist_boot_module_SOURCES = ## platform nodist sources +boot_module_LDADD = +boot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +boot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +boot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +boot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +boot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_boot_module_SOURCES) +CLEANFILES += $(nodist_boot_module_SOURCES) +MOD_FILES += boot.mod +MARKER_FILES += boot.marker +CLEANFILES += boot.marker + +boot.marker: $(boot_module_SOURCES) $(nodist_boot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(boot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += boot.module +MODULE_FILES += boot.module$(EXEEXT) +boot_module_SOURCES = commands/boot.c ## platform sources +nodist_boot_module_SOURCES = ## platform nodist sources +boot_module_LDADD = +boot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +boot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +boot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +boot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +boot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_boot_module_SOURCES) +CLEANFILES += $(nodist_boot_module_SOURCES) +MOD_FILES += boot.mod +MARKER_FILES += boot.marker +CLEANFILES += boot.marker + +boot.marker: $(boot_module_SOURCES) $(nodist_boot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(boot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += boot.module +MODULE_FILES += boot.module$(EXEEXT) +boot_module_SOURCES = commands/boot.c ## platform sources +nodist_boot_module_SOURCES = ## platform nodist sources +boot_module_LDADD = +boot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +boot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +boot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +boot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +boot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_boot_module_SOURCES) +CLEANFILES += $(nodist_boot_module_SOURCES) +MOD_FILES += boot.mod +MARKER_FILES += boot.marker +CLEANFILES += boot.marker + +boot.marker: $(boot_module_SOURCES) $(nodist_boot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(boot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += boot.module +MODULE_FILES += boot.module$(EXEEXT) +boot_module_SOURCES = commands/boot.c ## platform sources +nodist_boot_module_SOURCES = ## platform nodist sources +boot_module_LDADD = +boot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +boot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +boot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +boot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +boot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_boot_module_SOURCES) +CLEANFILES += $(nodist_boot_module_SOURCES) +MOD_FILES += boot.mod +MARKER_FILES += boot.marker +CLEANFILES += boot.marker + +boot.marker: $(boot_module_SOURCES) $(nodist_boot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(boot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += boot.module +MODULE_FILES += boot.module$(EXEEXT) +boot_module_SOURCES = commands/boot.c ## platform sources +nodist_boot_module_SOURCES = ## platform nodist sources +boot_module_LDADD = +boot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +boot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +boot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +boot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +boot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_boot_module_SOURCES) +CLEANFILES += $(nodist_boot_module_SOURCES) +MOD_FILES += boot.mod +MARKER_FILES += boot.marker +CLEANFILES += boot.marker + +boot.marker: $(boot_module_SOURCES) $(nodist_boot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(boot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += boot.module +MODULE_FILES += boot.module$(EXEEXT) +boot_module_SOURCES = commands/boot.c ## platform sources +nodist_boot_module_SOURCES = ## platform nodist sources +boot_module_LDADD = +boot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +boot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +boot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +boot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +boot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_boot_module_SOURCES) +CLEANFILES += $(nodist_boot_module_SOURCES) +MOD_FILES += boot.mod +MARKER_FILES += boot.marker +CLEANFILES += boot.marker + +boot.marker: $(boot_module_SOURCES) $(nodist_boot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(boot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += boot.module +MODULE_FILES += boot.module$(EXEEXT) +boot_module_SOURCES = commands/boot.c ## platform sources +nodist_boot_module_SOURCES = ## platform nodist sources +boot_module_LDADD = +boot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +boot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +boot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +boot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +boot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_boot_module_SOURCES) +CLEANFILES += $(nodist_boot_module_SOURCES) +MOD_FILES += boot.mod +MARKER_FILES += boot.marker +CLEANFILES += boot.marker + +boot.marker: $(boot_module_SOURCES) $(nodist_boot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(boot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_sparc64_ieee1275 +platform_PROGRAMS += boot.module +MODULE_FILES += boot.module$(EXEEXT) +boot_module_SOURCES = commands/boot.c ## platform sources +nodist_boot_module_SOURCES = ## platform nodist sources +boot_module_LDADD = +boot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +boot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +boot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +boot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +boot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_boot_module_SOURCES) +CLEANFILES += $(nodist_boot_module_SOURCES) +MOD_FILES += boot.mod +MARKER_FILES += boot.marker +CLEANFILES += boot.marker + +boot.marker: $(boot_module_SOURCES) $(nodist_boot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(boot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_powerpc_ieee1275 +platform_PROGRAMS += boot.module +MODULE_FILES += boot.module$(EXEEXT) +boot_module_SOURCES = commands/boot.c ## platform sources +nodist_boot_module_SOURCES = ## platform nodist sources +boot_module_LDADD = +boot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +boot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +boot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +boot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +boot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_boot_module_SOURCES) +CLEANFILES += $(nodist_boot_module_SOURCES) +MOD_FILES += boot.mod +MARKER_FILES += boot.marker +CLEANFILES += boot.marker + +boot.marker: $(boot_module_SOURCES) $(nodist_boot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(boot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_arc +platform_PROGRAMS += boot.module +MODULE_FILES += boot.module$(EXEEXT) +boot_module_SOURCES = commands/boot.c ## platform sources +nodist_boot_module_SOURCES = ## platform nodist sources +boot_module_LDADD = +boot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +boot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +boot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +boot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +boot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_boot_module_SOURCES) +CLEANFILES += $(nodist_boot_module_SOURCES) +MOD_FILES += boot.mod +MARKER_FILES += boot.marker +CLEANFILES += boot.marker + +boot.marker: $(boot_module_SOURCES) $(nodist_boot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(boot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_ia64_efi +platform_PROGRAMS += boot.module +MODULE_FILES += boot.module$(EXEEXT) +boot_module_SOURCES = commands/boot.c ## platform sources +nodist_boot_module_SOURCES = ## platform nodist sources +boot_module_LDADD = +boot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +boot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +boot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +boot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +boot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_boot_module_SOURCES) +CLEANFILES += $(nodist_boot_module_SOURCES) +MOD_FILES += boot.mod +MARKER_FILES += boot.marker +CLEANFILES += boot.marker + +boot.marker: $(boot_module_SOURCES) $(nodist_boot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(boot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_uboot +platform_PROGRAMS += boot.module +MODULE_FILES += boot.module$(EXEEXT) +boot_module_SOURCES = commands/boot.c ## platform sources +nodist_boot_module_SOURCES = ## platform nodist sources +boot_module_LDADD = +boot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +boot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +boot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +boot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +boot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_boot_module_SOURCES) +CLEANFILES += $(nodist_boot_module_SOURCES) +MOD_FILES += boot.mod +MARKER_FILES += boot.marker +CLEANFILES += boot.marker + +boot.marker: $(boot_module_SOURCES) $(nodist_boot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(boot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_efi +platform_PROGRAMS += boot.module +MODULE_FILES += boot.module$(EXEEXT) +boot_module_SOURCES = commands/boot.c ## platform sources +nodist_boot_module_SOURCES = ## platform nodist sources +boot_module_LDADD = +boot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +boot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +boot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +boot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +boot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_boot_module_SOURCES) +CLEANFILES += $(nodist_boot_module_SOURCES) +MOD_FILES += boot.mod +MARKER_FILES += boot.marker +CLEANFILES += boot.marker + +boot.marker: $(boot_module_SOURCES) $(nodist_boot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(boot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm64_efi +platform_PROGRAMS += boot.module +MODULE_FILES += boot.module$(EXEEXT) +boot_module_SOURCES = commands/boot.c ## platform sources +nodist_boot_module_SOURCES = ## platform nodist sources +boot_module_LDADD = +boot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +boot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +boot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +boot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +boot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_boot_module_SOURCES) +CLEANFILES += $(nodist_boot_module_SOURCES) +MOD_FILES += boot.mod +MARKER_FILES += boot.marker +CLEANFILES += boot.marker + +boot.marker: $(boot_module_SOURCES) $(nodist_boot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(boot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_coreboot +platform_PROGRAMS += boot.module +MODULE_FILES += boot.module$(EXEEXT) +boot_module_SOURCES = commands/boot.c ## platform sources +nodist_boot_module_SOURCES = ## platform nodist sources +boot_module_LDADD = +boot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +boot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +boot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +boot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +boot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_boot_module_SOURCES) +CLEANFILES += $(nodist_boot_module_SOURCES) +MOD_FILES += boot.mod +MARKER_FILES += boot.marker +CLEANFILES += boot.marker + +boot.marker: $(boot_module_SOURCES) $(nodist_boot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(boot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv32_efi +platform_PROGRAMS += boot.module +MODULE_FILES += boot.module$(EXEEXT) +boot_module_SOURCES = commands/boot.c ## platform sources +nodist_boot_module_SOURCES = ## platform nodist sources +boot_module_LDADD = +boot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +boot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +boot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +boot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +boot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_boot_module_SOURCES) +CLEANFILES += $(nodist_boot_module_SOURCES) +MOD_FILES += boot.mod +MARKER_FILES += boot.marker +CLEANFILES += boot.marker + +boot.marker: $(boot_module_SOURCES) $(nodist_boot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(boot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv64_efi +platform_PROGRAMS += boot.module +MODULE_FILES += boot.module$(EXEEXT) +boot_module_SOURCES = commands/boot.c ## platform sources +nodist_boot_module_SOURCES = ## platform nodist sources +boot_module_LDADD = +boot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +boot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +boot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +boot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +boot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_boot_module_SOURCES) +CLEANFILES += $(nodist_boot_module_SOURCES) +MOD_FILES += boot.mod +MARKER_FILES += boot.marker +CLEANFILES += boot.marker + +boot.marker: $(boot_module_SOURCES) $(nodist_boot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(boot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif +platform_PROGRAMS += cat.module +MODULE_FILES += cat.module$(EXEEXT) +cat_module_SOURCES = commands/cat.c ## platform sources +nodist_cat_module_SOURCES = ## platform nodist sources +cat_module_LDADD = +cat_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cat_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cat_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cat_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cat_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cat_module_SOURCES) +CLEANFILES += $(nodist_cat_module_SOURCES) +MOD_FILES += cat.mod +MARKER_FILES += cat.marker +CLEANFILES += cat.marker + +cat.marker: $(cat_module_SOURCES) $(nodist_cat_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cat_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += cmp.module +MODULE_FILES += cmp.module$(EXEEXT) +cmp_module_SOURCES = commands/cmp.c ## platform sources +nodist_cmp_module_SOURCES = ## platform nodist sources +cmp_module_LDADD = +cmp_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cmp_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cmp_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cmp_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cmp_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cmp_module_SOURCES) +CLEANFILES += $(nodist_cmp_module_SOURCES) +MOD_FILES += cmp.mod +MARKER_FILES += cmp.marker +CLEANFILES += cmp.marker + +cmp.marker: $(cmp_module_SOURCES) $(nodist_cmp_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cmp_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += configfile.module +MODULE_FILES += configfile.module$(EXEEXT) +configfile_module_SOURCES = commands/configfile.c ## platform sources +nodist_configfile_module_SOURCES = ## platform nodist sources +configfile_module_LDADD = +configfile_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +configfile_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +configfile_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +configfile_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +configfile_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_configfile_module_SOURCES) +CLEANFILES += $(nodist_configfile_module_SOURCES) +MOD_FILES += configfile.mod +MARKER_FILES += configfile.marker +CLEANFILES += configfile.marker + +configfile.marker: $(configfile_module_SOURCES) $(nodist_configfile_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(configfile_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new + +if COND_i386_pc +platform_PROGRAMS += cpuid.module +MODULE_FILES += cpuid.module$(EXEEXT) +cpuid_module_SOURCES = commands/i386/cpuid.c ## platform sources +nodist_cpuid_module_SOURCES = ## platform nodist sources +cpuid_module_LDADD = +cpuid_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cpuid_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cpuid_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cpuid_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cpuid_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cpuid_module_SOURCES) +CLEANFILES += $(nodist_cpuid_module_SOURCES) +MOD_FILES += cpuid.mod +MARKER_FILES += cpuid.marker +CLEANFILES += cpuid.marker + +cpuid.marker: $(cpuid_module_SOURCES) $(nodist_cpuid_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cpuid_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += cpuid.module +MODULE_FILES += cpuid.module$(EXEEXT) +cpuid_module_SOURCES = commands/i386/cpuid.c ## platform sources +nodist_cpuid_module_SOURCES = ## platform nodist sources +cpuid_module_LDADD = +cpuid_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cpuid_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cpuid_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cpuid_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cpuid_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cpuid_module_SOURCES) +CLEANFILES += $(nodist_cpuid_module_SOURCES) +MOD_FILES += cpuid.mod +MARKER_FILES += cpuid.marker +CLEANFILES += cpuid.marker + +cpuid.marker: $(cpuid_module_SOURCES) $(nodist_cpuid_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cpuid_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += cpuid.module +MODULE_FILES += cpuid.module$(EXEEXT) +cpuid_module_SOURCES = commands/i386/cpuid.c ## platform sources +nodist_cpuid_module_SOURCES = ## platform nodist sources +cpuid_module_LDADD = +cpuid_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cpuid_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cpuid_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cpuid_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cpuid_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cpuid_module_SOURCES) +CLEANFILES += $(nodist_cpuid_module_SOURCES) +MOD_FILES += cpuid.mod +MARKER_FILES += cpuid.marker +CLEANFILES += cpuid.marker + +cpuid.marker: $(cpuid_module_SOURCES) $(nodist_cpuid_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cpuid_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += cpuid.module +MODULE_FILES += cpuid.module$(EXEEXT) +cpuid_module_SOURCES = commands/i386/cpuid.c ## platform sources +nodist_cpuid_module_SOURCES = ## platform nodist sources +cpuid_module_LDADD = +cpuid_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cpuid_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cpuid_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cpuid_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cpuid_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cpuid_module_SOURCES) +CLEANFILES += $(nodist_cpuid_module_SOURCES) +MOD_FILES += cpuid.mod +MARKER_FILES += cpuid.marker +CLEANFILES += cpuid.marker + +cpuid.marker: $(cpuid_module_SOURCES) $(nodist_cpuid_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cpuid_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += cpuid.module +MODULE_FILES += cpuid.module$(EXEEXT) +cpuid_module_SOURCES = commands/i386/cpuid.c ## platform sources +nodist_cpuid_module_SOURCES = ## platform nodist sources +cpuid_module_LDADD = +cpuid_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cpuid_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cpuid_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cpuid_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cpuid_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cpuid_module_SOURCES) +CLEANFILES += $(nodist_cpuid_module_SOURCES) +MOD_FILES += cpuid.mod +MARKER_FILES += cpuid.marker +CLEANFILES += cpuid.marker + +cpuid.marker: $(cpuid_module_SOURCES) $(nodist_cpuid_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cpuid_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += cpuid.module +MODULE_FILES += cpuid.module$(EXEEXT) +cpuid_module_SOURCES = commands/i386/cpuid.c ## platform sources +nodist_cpuid_module_SOURCES = ## platform nodist sources +cpuid_module_LDADD = +cpuid_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cpuid_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cpuid_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cpuid_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cpuid_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cpuid_module_SOURCES) +CLEANFILES += $(nodist_cpuid_module_SOURCES) +MOD_FILES += cpuid.mod +MARKER_FILES += cpuid.marker +CLEANFILES += cpuid.marker + +cpuid.marker: $(cpuid_module_SOURCES) $(nodist_cpuid_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cpuid_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += cpuid.module +MODULE_FILES += cpuid.module$(EXEEXT) +cpuid_module_SOURCES = commands/i386/cpuid.c ## platform sources +nodist_cpuid_module_SOURCES = ## platform nodist sources +cpuid_module_LDADD = +cpuid_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cpuid_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cpuid_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cpuid_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cpuid_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cpuid_module_SOURCES) +CLEANFILES += $(nodist_cpuid_module_SOURCES) +MOD_FILES += cpuid.mod +MARKER_FILES += cpuid.marker +CLEANFILES += cpuid.marker + +cpuid.marker: $(cpuid_module_SOURCES) $(nodist_cpuid_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cpuid_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_xen +platform_PROGRAMS += cpuid.module +MODULE_FILES += cpuid.module$(EXEEXT) +cpuid_module_SOURCES = commands/i386/cpuid.c ## platform sources +nodist_cpuid_module_SOURCES = ## platform nodist sources +cpuid_module_LDADD = +cpuid_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cpuid_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cpuid_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cpuid_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cpuid_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cpuid_module_SOURCES) +CLEANFILES += $(nodist_cpuid_module_SOURCES) +MOD_FILES += cpuid.mod +MARKER_FILES += cpuid.marker +CLEANFILES += cpuid.marker + +cpuid.marker: $(cpuid_module_SOURCES) $(nodist_cpuid_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cpuid_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_xen +platform_PROGRAMS += cpuid.module +MODULE_FILES += cpuid.module$(EXEEXT) +cpuid_module_SOURCES = commands/i386/cpuid.c ## platform sources +nodist_cpuid_module_SOURCES = ## platform nodist sources +cpuid_module_LDADD = +cpuid_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cpuid_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cpuid_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cpuid_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cpuid_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cpuid_module_SOURCES) +CLEANFILES += $(nodist_cpuid_module_SOURCES) +MOD_FILES += cpuid.mod +MARKER_FILES += cpuid.marker +CLEANFILES += cpuid.marker + +cpuid.marker: $(cpuid_module_SOURCES) $(nodist_cpuid_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cpuid_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_xen_pvh +platform_PROGRAMS += cpuid.module +MODULE_FILES += cpuid.module$(EXEEXT) +cpuid_module_SOURCES = commands/i386/cpuid.c ## platform sources +nodist_cpuid_module_SOURCES = ## platform nodist sources +cpuid_module_LDADD = +cpuid_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cpuid_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cpuid_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cpuid_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cpuid_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cpuid_module_SOURCES) +CLEANFILES += $(nodist_cpuid_module_SOURCES) +MOD_FILES += cpuid.mod +MARKER_FILES += cpuid.marker +CLEANFILES += cpuid.marker + +cpuid.marker: $(cpuid_module_SOURCES) $(nodist_cpuid_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cpuid_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif +platform_PROGRAMS += date.module +MODULE_FILES += date.module$(EXEEXT) +date_module_SOURCES = commands/date.c ## platform sources +nodist_date_module_SOURCES = ## platform nodist sources +date_module_LDADD = +date_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +date_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +date_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +date_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +date_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_date_module_SOURCES) +CLEANFILES += $(nodist_date_module_SOURCES) +MOD_FILES += date.mod +MARKER_FILES += date.marker +CLEANFILES += date.marker + +date.marker: $(date_module_SOURCES) $(nodist_date_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(date_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new + +if COND_i386_pc +platform_PROGRAMS += drivemap.module +MODULE_FILES += drivemap.module$(EXEEXT) +drivemap_module_SOURCES = commands/i386/pc/drivemap.c commands/i386/pc/drivemap_int13h.S ## platform sources +nodist_drivemap_module_SOURCES = ## platform nodist sources +drivemap_module_LDADD = +drivemap_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +drivemap_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +drivemap_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +drivemap_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +drivemap_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_drivemap_module_SOURCES) +CLEANFILES += $(nodist_drivemap_module_SOURCES) +MOD_FILES += drivemap.mod +MARKER_FILES += drivemap.marker +CLEANFILES += drivemap.marker + +drivemap.marker: $(drivemap_module_SOURCES) $(nodist_drivemap_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(drivemap_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif +platform_PROGRAMS += echo.module +MODULE_FILES += echo.module$(EXEEXT) +echo_module_SOURCES = commands/echo.c ## platform sources +nodist_echo_module_SOURCES = ## platform nodist sources +echo_module_LDADD = +echo_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +echo_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +echo_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +echo_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +echo_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_echo_module_SOURCES) +CLEANFILES += $(nodist_echo_module_SOURCES) +MOD_FILES += echo.mod +MARKER_FILES += echo.marker +CLEANFILES += echo.marker + +echo.marker: $(echo_module_SOURCES) $(nodist_echo_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(echo_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += eval.module +MODULE_FILES += eval.module$(EXEEXT) +eval_module_SOURCES = commands/eval.c ## platform sources +nodist_eval_module_SOURCES = ## platform nodist sources +eval_module_LDADD = +eval_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +eval_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +eval_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +eval_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +eval_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_eval_module_SOURCES) +CLEANFILES += $(nodist_eval_module_SOURCES) +MOD_FILES += eval.mod +MARKER_FILES += eval.marker +CLEANFILES += eval.marker + +eval.marker: $(eval_module_SOURCES) $(nodist_eval_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(eval_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new + +if COND_i386_pc +platform_PROGRAMS += extcmd.module +MODULE_FILES += extcmd.module$(EXEEXT) +extcmd_module_SOURCES = commands/extcmd.c lib/arg.c ## platform sources +nodist_extcmd_module_SOURCES = ## platform nodist sources +extcmd_module_LDADD = +extcmd_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +extcmd_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +extcmd_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +extcmd_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +extcmd_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_extcmd_module_SOURCES) +CLEANFILES += $(nodist_extcmd_module_SOURCES) +MOD_FILES += extcmd.mod +MARKER_FILES += extcmd.marker +CLEANFILES += extcmd.marker + +extcmd.marker: $(extcmd_module_SOURCES) $(nodist_extcmd_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(extcmd_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += extcmd.module +MODULE_FILES += extcmd.module$(EXEEXT) +extcmd_module_SOURCES = commands/extcmd.c lib/arg.c ## platform sources +nodist_extcmd_module_SOURCES = ## platform nodist sources +extcmd_module_LDADD = +extcmd_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +extcmd_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +extcmd_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +extcmd_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +extcmd_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_extcmd_module_SOURCES) +CLEANFILES += $(nodist_extcmd_module_SOURCES) +MOD_FILES += extcmd.mod +MARKER_FILES += extcmd.marker +CLEANFILES += extcmd.marker + +extcmd.marker: $(extcmd_module_SOURCES) $(nodist_extcmd_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(extcmd_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += extcmd.module +MODULE_FILES += extcmd.module$(EXEEXT) +extcmd_module_SOURCES = commands/extcmd.c lib/arg.c ## platform sources +nodist_extcmd_module_SOURCES = ## platform nodist sources +extcmd_module_LDADD = +extcmd_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +extcmd_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +extcmd_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +extcmd_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +extcmd_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_extcmd_module_SOURCES) +CLEANFILES += $(nodist_extcmd_module_SOURCES) +MOD_FILES += extcmd.mod +MARKER_FILES += extcmd.marker +CLEANFILES += extcmd.marker + +extcmd.marker: $(extcmd_module_SOURCES) $(nodist_extcmd_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(extcmd_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += extcmd.module +MODULE_FILES += extcmd.module$(EXEEXT) +extcmd_module_SOURCES = commands/extcmd.c lib/arg.c ## platform sources +nodist_extcmd_module_SOURCES = ## platform nodist sources +extcmd_module_LDADD = +extcmd_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +extcmd_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +extcmd_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +extcmd_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +extcmd_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_extcmd_module_SOURCES) +CLEANFILES += $(nodist_extcmd_module_SOURCES) +MOD_FILES += extcmd.mod +MARKER_FILES += extcmd.marker +CLEANFILES += extcmd.marker + +extcmd.marker: $(extcmd_module_SOURCES) $(nodist_extcmd_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(extcmd_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += extcmd.module +MODULE_FILES += extcmd.module$(EXEEXT) +extcmd_module_SOURCES = commands/extcmd.c lib/arg.c ## platform sources +nodist_extcmd_module_SOURCES = ## platform nodist sources +extcmd_module_LDADD = +extcmd_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +extcmd_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +extcmd_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +extcmd_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +extcmd_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_extcmd_module_SOURCES) +CLEANFILES += $(nodist_extcmd_module_SOURCES) +MOD_FILES += extcmd.mod +MARKER_FILES += extcmd.marker +CLEANFILES += extcmd.marker + +extcmd.marker: $(extcmd_module_SOURCES) $(nodist_extcmd_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(extcmd_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += extcmd.module +MODULE_FILES += extcmd.module$(EXEEXT) +extcmd_module_SOURCES = commands/extcmd.c lib/arg.c ## platform sources +nodist_extcmd_module_SOURCES = ## platform nodist sources +extcmd_module_LDADD = +extcmd_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +extcmd_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +extcmd_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +extcmd_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +extcmd_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_extcmd_module_SOURCES) +CLEANFILES += $(nodist_extcmd_module_SOURCES) +MOD_FILES += extcmd.mod +MARKER_FILES += extcmd.marker +CLEANFILES += extcmd.marker + +extcmd.marker: $(extcmd_module_SOURCES) $(nodist_extcmd_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(extcmd_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_ia64_efi +platform_PROGRAMS += extcmd.module +MODULE_FILES += extcmd.module$(EXEEXT) +extcmd_module_SOURCES = commands/extcmd.c lib/arg.c ## platform sources +nodist_extcmd_module_SOURCES = ## platform nodist sources +extcmd_module_LDADD = +extcmd_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +extcmd_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +extcmd_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +extcmd_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +extcmd_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_extcmd_module_SOURCES) +CLEANFILES += $(nodist_extcmd_module_SOURCES) +MOD_FILES += extcmd.mod +MARKER_FILES += extcmd.marker +CLEANFILES += extcmd.marker + +extcmd.marker: $(extcmd_module_SOURCES) $(nodist_extcmd_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(extcmd_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_efi +platform_PROGRAMS += extcmd.module +MODULE_FILES += extcmd.module$(EXEEXT) +extcmd_module_SOURCES = commands/extcmd.c lib/arg.c ## platform sources +nodist_extcmd_module_SOURCES = ## platform nodist sources +extcmd_module_LDADD = +extcmd_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +extcmd_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +extcmd_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +extcmd_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +extcmd_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_extcmd_module_SOURCES) +CLEANFILES += $(nodist_extcmd_module_SOURCES) +MOD_FILES += extcmd.mod +MARKER_FILES += extcmd.marker +CLEANFILES += extcmd.marker + +extcmd.marker: $(extcmd_module_SOURCES) $(nodist_extcmd_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(extcmd_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm64_efi +platform_PROGRAMS += extcmd.module +MODULE_FILES += extcmd.module$(EXEEXT) +extcmd_module_SOURCES = commands/extcmd.c lib/arg.c ## platform sources +nodist_extcmd_module_SOURCES = ## platform nodist sources +extcmd_module_LDADD = +extcmd_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +extcmd_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +extcmd_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +extcmd_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +extcmd_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_extcmd_module_SOURCES) +CLEANFILES += $(nodist_extcmd_module_SOURCES) +MOD_FILES += extcmd.mod +MARKER_FILES += extcmd.marker +CLEANFILES += extcmd.marker + +extcmd.marker: $(extcmd_module_SOURCES) $(nodist_extcmd_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(extcmd_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_coreboot +platform_PROGRAMS += extcmd.module +MODULE_FILES += extcmd.module$(EXEEXT) +extcmd_module_SOURCES = commands/extcmd.c lib/arg.c ## platform sources +nodist_extcmd_module_SOURCES = ## platform nodist sources +extcmd_module_LDADD = +extcmd_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +extcmd_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +extcmd_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +extcmd_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +extcmd_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_extcmd_module_SOURCES) +CLEANFILES += $(nodist_extcmd_module_SOURCES) +MOD_FILES += extcmd.mod +MARKER_FILES += extcmd.marker +CLEANFILES += extcmd.marker + +extcmd.marker: $(extcmd_module_SOURCES) $(nodist_extcmd_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(extcmd_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv32_efi +platform_PROGRAMS += extcmd.module +MODULE_FILES += extcmd.module$(EXEEXT) +extcmd_module_SOURCES = commands/extcmd.c lib/arg.c ## platform sources +nodist_extcmd_module_SOURCES = ## platform nodist sources +extcmd_module_LDADD = +extcmd_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +extcmd_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +extcmd_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +extcmd_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +extcmd_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_extcmd_module_SOURCES) +CLEANFILES += $(nodist_extcmd_module_SOURCES) +MOD_FILES += extcmd.mod +MARKER_FILES += extcmd.marker +CLEANFILES += extcmd.marker + +extcmd.marker: $(extcmd_module_SOURCES) $(nodist_extcmd_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(extcmd_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv64_efi +platform_PROGRAMS += extcmd.module +MODULE_FILES += extcmd.module$(EXEEXT) +extcmd_module_SOURCES = commands/extcmd.c lib/arg.c ## platform sources +nodist_extcmd_module_SOURCES = ## platform nodist sources +extcmd_module_LDADD = +extcmd_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +extcmd_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +extcmd_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +extcmd_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +extcmd_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_extcmd_module_SOURCES) +CLEANFILES += $(nodist_extcmd_module_SOURCES) +MOD_FILES += extcmd.mod +MARKER_FILES += extcmd.marker +CLEANFILES += extcmd.marker + +extcmd.marker: $(extcmd_module_SOURCES) $(nodist_extcmd_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(extcmd_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += fixvideo.module +MODULE_FILES += fixvideo.module$(EXEEXT) +fixvideo_module_SOURCES = commands/efi/fixvideo.c ## platform sources +nodist_fixvideo_module_SOURCES = ## platform nodist sources +fixvideo_module_LDADD = +fixvideo_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +fixvideo_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +fixvideo_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +fixvideo_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +fixvideo_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_fixvideo_module_SOURCES) +CLEANFILES += $(nodist_fixvideo_module_SOURCES) +MOD_FILES += fixvideo.mod +MARKER_FILES += fixvideo.marker +CLEANFILES += fixvideo.marker + +fixvideo.marker: $(fixvideo_module_SOURCES) $(nodist_fixvideo_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(fixvideo_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += fixvideo.module +MODULE_FILES += fixvideo.module$(EXEEXT) +fixvideo_module_SOURCES = commands/efi/fixvideo.c ## platform sources +nodist_fixvideo_module_SOURCES = ## platform nodist sources +fixvideo_module_LDADD = +fixvideo_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +fixvideo_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +fixvideo_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +fixvideo_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +fixvideo_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_fixvideo_module_SOURCES) +CLEANFILES += $(nodist_fixvideo_module_SOURCES) +MOD_FILES += fixvideo.mod +MARKER_FILES += fixvideo.marker +CLEANFILES += fixvideo.marker + +fixvideo.marker: $(fixvideo_module_SOURCES) $(nodist_fixvideo_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(fixvideo_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif +platform_PROGRAMS += gptsync.module +MODULE_FILES += gptsync.module$(EXEEXT) +gptsync_module_SOURCES = commands/gptsync.c ## platform sources +nodist_gptsync_module_SOURCES = ## platform nodist sources +gptsync_module_LDADD = +gptsync_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +gptsync_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gptsync_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +gptsync_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gptsync_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gptsync_module_SOURCES) +CLEANFILES += $(nodist_gptsync_module_SOURCES) +MOD_FILES += gptsync.mod +MARKER_FILES += gptsync.marker +CLEANFILES += gptsync.marker + +gptsync.marker: $(gptsync_module_SOURCES) $(nodist_gptsync_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gptsync_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new + +if COND_emu +platform_PROGRAMS += halt.module +MODULE_FILES += halt.module$(EXEEXT) +halt_module_SOURCES = lib/emu/halt.c commands/halt.c ## platform sources +nodist_halt_module_SOURCES = ## platform nodist sources +halt_module_LDADD = +halt_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +halt_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +halt_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +halt_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +halt_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_halt_module_SOURCES) +CLEANFILES += $(nodist_halt_module_SOURCES) +MOD_FILES += halt.mod +MARKER_FILES += halt.marker +CLEANFILES += halt.marker + +halt.marker: $(halt_module_SOURCES) $(nodist_halt_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(halt_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += halt.module +MODULE_FILES += halt.module$(EXEEXT) +halt_module_SOURCES = commands/i386/pc/halt.c commands/acpihalt.c ## platform sources +nodist_halt_module_SOURCES = ## platform nodist sources +halt_module_LDADD = +halt_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +halt_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +halt_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +halt_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +halt_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_halt_module_SOURCES) +CLEANFILES += $(nodist_halt_module_SOURCES) +MOD_FILES += halt.mod +MARKER_FILES += halt.marker +CLEANFILES += halt.marker + +halt.marker: $(halt_module_SOURCES) $(nodist_halt_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(halt_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += halt.module +MODULE_FILES += halt.module$(EXEEXT) +halt_module_SOURCES = commands/acpihalt.c lib/efi/halt.c commands/halt.c ## platform sources +nodist_halt_module_SOURCES = ## platform nodist sources +halt_module_LDADD = +halt_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +halt_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +halt_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +halt_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +halt_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_halt_module_SOURCES) +CLEANFILES += $(nodist_halt_module_SOURCES) +MOD_FILES += halt.mod +MARKER_FILES += halt.marker +CLEANFILES += halt.marker + +halt.marker: $(halt_module_SOURCES) $(nodist_halt_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(halt_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += halt.module +MODULE_FILES += halt.module$(EXEEXT) +halt_module_SOURCES = lib/i386/halt.c commands/halt.c ## platform sources +nodist_halt_module_SOURCES = ## platform nodist sources +halt_module_LDADD = +halt_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +halt_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +halt_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +halt_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +halt_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_halt_module_SOURCES) +CLEANFILES += $(nodist_halt_module_SOURCES) +MOD_FILES += halt.mod +MARKER_FILES += halt.marker +CLEANFILES += halt.marker + +halt.marker: $(halt_module_SOURCES) $(nodist_halt_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(halt_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += halt.module +MODULE_FILES += halt.module$(EXEEXT) +halt_module_SOURCES = commands/acpihalt.c lib/i386/halt.c commands/halt.c ## platform sources +nodist_halt_module_SOURCES = ## platform nodist sources +halt_module_LDADD = +halt_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +halt_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +halt_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +halt_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +halt_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_halt_module_SOURCES) +CLEANFILES += $(nodist_halt_module_SOURCES) +MOD_FILES += halt.mod +MARKER_FILES += halt.marker +CLEANFILES += halt.marker + +halt.marker: $(halt_module_SOURCES) $(nodist_halt_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(halt_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += halt.module +MODULE_FILES += halt.module$(EXEEXT) +halt_module_SOURCES = commands/acpihalt.c lib/i386/halt.c commands/halt.c ## platform sources +nodist_halt_module_SOURCES = ## platform nodist sources +halt_module_LDADD = +halt_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +halt_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +halt_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +halt_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +halt_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_halt_module_SOURCES) +CLEANFILES += $(nodist_halt_module_SOURCES) +MOD_FILES += halt.mod +MARKER_FILES += halt.marker +CLEANFILES += halt.marker + +halt.marker: $(halt_module_SOURCES) $(nodist_halt_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(halt_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += halt.module +MODULE_FILES += halt.module$(EXEEXT) +halt_module_SOURCES = lib/ieee1275/halt.c commands/halt.c ## platform sources +nodist_halt_module_SOURCES = ## platform nodist sources +halt_module_LDADD = +halt_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +halt_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +halt_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +halt_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +halt_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_halt_module_SOURCES) +CLEANFILES += $(nodist_halt_module_SOURCES) +MOD_FILES += halt.mod +MARKER_FILES += halt.marker +CLEANFILES += halt.marker + +halt.marker: $(halt_module_SOURCES) $(nodist_halt_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(halt_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += halt.module +MODULE_FILES += halt.module$(EXEEXT) +halt_module_SOURCES = commands/acpihalt.c lib/efi/halt.c commands/halt.c ## platform sources +nodist_halt_module_SOURCES = ## platform nodist sources +halt_module_LDADD = +halt_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +halt_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +halt_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +halt_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +halt_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_halt_module_SOURCES) +CLEANFILES += $(nodist_halt_module_SOURCES) +MOD_FILES += halt.mod +MARKER_FILES += halt.marker +CLEANFILES += halt.marker + +halt.marker: $(halt_module_SOURCES) $(nodist_halt_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(halt_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_xen +platform_PROGRAMS += halt.module +MODULE_FILES += halt.module$(EXEEXT) +halt_module_SOURCES = lib/xen/halt.c commands/halt.c ## platform sources +nodist_halt_module_SOURCES = ## platform nodist sources +halt_module_LDADD = +halt_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +halt_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +halt_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +halt_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +halt_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_halt_module_SOURCES) +CLEANFILES += $(nodist_halt_module_SOURCES) +MOD_FILES += halt.mod +MARKER_FILES += halt.marker +CLEANFILES += halt.marker + +halt.marker: $(halt_module_SOURCES) $(nodist_halt_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(halt_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_xen +platform_PROGRAMS += halt.module +MODULE_FILES += halt.module$(EXEEXT) +halt_module_SOURCES = lib/xen/halt.c commands/halt.c ## platform sources +nodist_halt_module_SOURCES = ## platform nodist sources +halt_module_LDADD = +halt_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +halt_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +halt_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +halt_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +halt_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_halt_module_SOURCES) +CLEANFILES += $(nodist_halt_module_SOURCES) +MOD_FILES += halt.mod +MARKER_FILES += halt.marker +CLEANFILES += halt.marker + +halt.marker: $(halt_module_SOURCES) $(nodist_halt_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(halt_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_xen_pvh +platform_PROGRAMS += halt.module +MODULE_FILES += halt.module$(EXEEXT) +halt_module_SOURCES = lib/xen/halt.c commands/halt.c ## platform sources +nodist_halt_module_SOURCES = ## platform nodist sources +halt_module_LDADD = +halt_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +halt_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +halt_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +halt_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +halt_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_halt_module_SOURCES) +CLEANFILES += $(nodist_halt_module_SOURCES) +MOD_FILES += halt.mod +MARKER_FILES += halt.marker +CLEANFILES += halt.marker + +halt.marker: $(halt_module_SOURCES) $(nodist_halt_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(halt_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_loongson +platform_PROGRAMS += halt.module +MODULE_FILES += halt.module$(EXEEXT) +halt_module_SOURCES = commands/halt.c ## platform sources +nodist_halt_module_SOURCES = ## platform nodist sources +halt_module_LDADD = +halt_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +halt_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +halt_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +halt_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +halt_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_halt_module_SOURCES) +CLEANFILES += $(nodist_halt_module_SOURCES) +MOD_FILES += halt.mod +MARKER_FILES += halt.marker +CLEANFILES += halt.marker + +halt.marker: $(halt_module_SOURCES) $(nodist_halt_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(halt_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_sparc64_ieee1275 +platform_PROGRAMS += halt.module +MODULE_FILES += halt.module$(EXEEXT) +halt_module_SOURCES = lib/ieee1275/halt.c commands/halt.c ## platform sources +nodist_halt_module_SOURCES = ## platform nodist sources +halt_module_LDADD = +halt_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +halt_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +halt_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +halt_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +halt_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_halt_module_SOURCES) +CLEANFILES += $(nodist_halt_module_SOURCES) +MOD_FILES += halt.mod +MARKER_FILES += halt.marker +CLEANFILES += halt.marker + +halt.marker: $(halt_module_SOURCES) $(nodist_halt_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(halt_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_powerpc_ieee1275 +platform_PROGRAMS += halt.module +MODULE_FILES += halt.module$(EXEEXT) +halt_module_SOURCES = lib/ieee1275/halt.c commands/halt.c ## platform sources +nodist_halt_module_SOURCES = ## platform nodist sources +halt_module_LDADD = +halt_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +halt_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +halt_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +halt_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +halt_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_halt_module_SOURCES) +CLEANFILES += $(nodist_halt_module_SOURCES) +MOD_FILES += halt.mod +MARKER_FILES += halt.marker +CLEANFILES += halt.marker + +halt.marker: $(halt_module_SOURCES) $(nodist_halt_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(halt_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_arc +platform_PROGRAMS += halt.module +MODULE_FILES += halt.module$(EXEEXT) +halt_module_SOURCES = commands/halt.c ## platform sources +nodist_halt_module_SOURCES = ## platform nodist sources +halt_module_LDADD = +halt_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +halt_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +halt_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +halt_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +halt_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_halt_module_SOURCES) +CLEANFILES += $(nodist_halt_module_SOURCES) +MOD_FILES += halt.mod +MARKER_FILES += halt.marker +CLEANFILES += halt.marker + +halt.marker: $(halt_module_SOURCES) $(nodist_halt_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(halt_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_ia64_efi +platform_PROGRAMS += halt.module +MODULE_FILES += halt.module$(EXEEXT) +halt_module_SOURCES = lib/efi/halt.c commands/halt.c ## platform sources +nodist_halt_module_SOURCES = ## platform nodist sources +halt_module_LDADD = +halt_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +halt_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +halt_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +halt_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +halt_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_halt_module_SOURCES) +CLEANFILES += $(nodist_halt_module_SOURCES) +MOD_FILES += halt.mod +MARKER_FILES += halt.marker +CLEANFILES += halt.marker + +halt.marker: $(halt_module_SOURCES) $(nodist_halt_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(halt_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_qemu_mips +platform_PROGRAMS += halt.module +MODULE_FILES += halt.module$(EXEEXT) +halt_module_SOURCES = commands/halt.c ## platform sources +nodist_halt_module_SOURCES = ## platform nodist sources +halt_module_LDADD = +halt_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +halt_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +halt_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +halt_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +halt_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_halt_module_SOURCES) +CLEANFILES += $(nodist_halt_module_SOURCES) +MOD_FILES += halt.mod +MARKER_FILES += halt.marker +CLEANFILES += halt.marker + +halt.marker: $(halt_module_SOURCES) $(nodist_halt_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(halt_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_uboot +platform_PROGRAMS += halt.module +MODULE_FILES += halt.module$(EXEEXT) +halt_module_SOURCES = lib/dummy/halt.c commands/halt.c ## platform sources +nodist_halt_module_SOURCES = ## platform nodist sources +halt_module_LDADD = +halt_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +halt_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +halt_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +halt_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +halt_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_halt_module_SOURCES) +CLEANFILES += $(nodist_halt_module_SOURCES) +MOD_FILES += halt.mod +MARKER_FILES += halt.marker +CLEANFILES += halt.marker + +halt.marker: $(halt_module_SOURCES) $(nodist_halt_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(halt_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_efi +platform_PROGRAMS += halt.module +MODULE_FILES += halt.module$(EXEEXT) +halt_module_SOURCES = lib/efi/halt.c commands/halt.c ## platform sources +nodist_halt_module_SOURCES = ## platform nodist sources +halt_module_LDADD = +halt_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +halt_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +halt_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +halt_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +halt_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_halt_module_SOURCES) +CLEANFILES += $(nodist_halt_module_SOURCES) +MOD_FILES += halt.mod +MARKER_FILES += halt.marker +CLEANFILES += halt.marker + +halt.marker: $(halt_module_SOURCES) $(nodist_halt_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(halt_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm64_efi +platform_PROGRAMS += halt.module +MODULE_FILES += halt.module$(EXEEXT) +halt_module_SOURCES = lib/efi/halt.c commands/halt.c ## platform sources +nodist_halt_module_SOURCES = ## platform nodist sources +halt_module_LDADD = +halt_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +halt_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +halt_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +halt_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +halt_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_halt_module_SOURCES) +CLEANFILES += $(nodist_halt_module_SOURCES) +MOD_FILES += halt.mod +MARKER_FILES += halt.marker +CLEANFILES += halt.marker + +halt.marker: $(halt_module_SOURCES) $(nodist_halt_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(halt_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_coreboot +platform_PROGRAMS += halt.module +MODULE_FILES += halt.module$(EXEEXT) +halt_module_SOURCES = lib/dummy/halt.c commands/halt.c ## platform sources +nodist_halt_module_SOURCES = ## platform nodist sources +halt_module_LDADD = +halt_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +halt_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +halt_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +halt_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +halt_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_halt_module_SOURCES) +CLEANFILES += $(nodist_halt_module_SOURCES) +MOD_FILES += halt.mod +MARKER_FILES += halt.marker +CLEANFILES += halt.marker + +halt.marker: $(halt_module_SOURCES) $(nodist_halt_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(halt_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv32_efi +platform_PROGRAMS += halt.module +MODULE_FILES += halt.module$(EXEEXT) +halt_module_SOURCES = lib/efi/halt.c commands/halt.c ## platform sources +nodist_halt_module_SOURCES = ## platform nodist sources +halt_module_LDADD = +halt_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +halt_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +halt_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +halt_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +halt_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_halt_module_SOURCES) +CLEANFILES += $(nodist_halt_module_SOURCES) +MOD_FILES += halt.mod +MARKER_FILES += halt.marker +CLEANFILES += halt.marker + +halt.marker: $(halt_module_SOURCES) $(nodist_halt_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(halt_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv64_efi +platform_PROGRAMS += halt.module +MODULE_FILES += halt.module$(EXEEXT) +halt_module_SOURCES = lib/efi/halt.c commands/halt.c ## platform sources +nodist_halt_module_SOURCES = ## platform nodist sources +halt_module_LDADD = +halt_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +halt_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +halt_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +halt_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +halt_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_halt_module_SOURCES) +CLEANFILES += $(nodist_halt_module_SOURCES) +MOD_FILES += halt.mod +MARKER_FILES += halt.marker +CLEANFILES += halt.marker + +halt.marker: $(halt_module_SOURCES) $(nodist_halt_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(halt_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_emu +platform_PROGRAMS += reboot.module +MODULE_FILES += reboot.module$(EXEEXT) +reboot_module_SOURCES = commands/reboot.c ## platform sources +nodist_reboot_module_SOURCES = ## platform nodist sources +reboot_module_LDADD = +reboot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +reboot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +reboot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +reboot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +reboot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_reboot_module_SOURCES) +CLEANFILES += $(nodist_reboot_module_SOURCES) +MOD_FILES += reboot.mod +MARKER_FILES += reboot.marker +CLEANFILES += reboot.marker + +reboot.marker: $(reboot_module_SOURCES) $(nodist_reboot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(reboot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += reboot.module +MODULE_FILES += reboot.module$(EXEEXT) +reboot_module_SOURCES = lib/i386/reboot.c lib/i386/reboot_trampoline.S commands/reboot.c ## platform sources +nodist_reboot_module_SOURCES = ## platform nodist sources +reboot_module_LDADD = +reboot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +reboot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +reboot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +reboot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +reboot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_reboot_module_SOURCES) +CLEANFILES += $(nodist_reboot_module_SOURCES) +MOD_FILES += reboot.mod +MARKER_FILES += reboot.marker +CLEANFILES += reboot.marker + +reboot.marker: $(reboot_module_SOURCES) $(nodist_reboot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(reboot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += reboot.module +MODULE_FILES += reboot.module$(EXEEXT) +reboot_module_SOURCES = lib/i386/reboot.c lib/i386/reboot_trampoline.S commands/reboot.c ## platform sources +nodist_reboot_module_SOURCES = ## platform nodist sources +reboot_module_LDADD = +reboot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +reboot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +reboot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +reboot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +reboot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_reboot_module_SOURCES) +CLEANFILES += $(nodist_reboot_module_SOURCES) +MOD_FILES += reboot.mod +MARKER_FILES += reboot.marker +CLEANFILES += reboot.marker + +reboot.marker: $(reboot_module_SOURCES) $(nodist_reboot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(reboot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += reboot.module +MODULE_FILES += reboot.module$(EXEEXT) +reboot_module_SOURCES = lib/i386/reboot.c lib/i386/reboot_trampoline.S commands/reboot.c ## platform sources +nodist_reboot_module_SOURCES = ## platform nodist sources +reboot_module_LDADD = +reboot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +reboot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +reboot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +reboot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +reboot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_reboot_module_SOURCES) +CLEANFILES += $(nodist_reboot_module_SOURCES) +MOD_FILES += reboot.mod +MARKER_FILES += reboot.marker +CLEANFILES += reboot.marker + +reboot.marker: $(reboot_module_SOURCES) $(nodist_reboot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(reboot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += reboot.module +MODULE_FILES += reboot.module$(EXEEXT) +reboot_module_SOURCES = lib/i386/reboot.c lib/i386/reboot_trampoline.S commands/reboot.c ## platform sources +nodist_reboot_module_SOURCES = ## platform nodist sources +reboot_module_LDADD = +reboot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +reboot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +reboot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +reboot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +reboot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_reboot_module_SOURCES) +CLEANFILES += $(nodist_reboot_module_SOURCES) +MOD_FILES += reboot.mod +MARKER_FILES += reboot.marker +CLEANFILES += reboot.marker + +reboot.marker: $(reboot_module_SOURCES) $(nodist_reboot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(reboot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += reboot.module +MODULE_FILES += reboot.module$(EXEEXT) +reboot_module_SOURCES = lib/i386/reboot.c lib/i386/reboot_trampoline.S commands/reboot.c ## platform sources +nodist_reboot_module_SOURCES = ## platform nodist sources +reboot_module_LDADD = +reboot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +reboot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +reboot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +reboot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +reboot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_reboot_module_SOURCES) +CLEANFILES += $(nodist_reboot_module_SOURCES) +MOD_FILES += reboot.mod +MARKER_FILES += reboot.marker +CLEANFILES += reboot.marker + +reboot.marker: $(reboot_module_SOURCES) $(nodist_reboot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(reboot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += reboot.module +MODULE_FILES += reboot.module$(EXEEXT) +reboot_module_SOURCES = lib/i386/reboot.c lib/i386/reboot_trampoline.S commands/reboot.c ## platform sources +nodist_reboot_module_SOURCES = ## platform nodist sources +reboot_module_LDADD = +reboot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +reboot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +reboot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +reboot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +reboot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_reboot_module_SOURCES) +CLEANFILES += $(nodist_reboot_module_SOURCES) +MOD_FILES += reboot.mod +MARKER_FILES += reboot.marker +CLEANFILES += reboot.marker + +reboot.marker: $(reboot_module_SOURCES) $(nodist_reboot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(reboot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += reboot.module +MODULE_FILES += reboot.module$(EXEEXT) +reboot_module_SOURCES = commands/reboot.c ## platform sources +nodist_reboot_module_SOURCES = ## platform nodist sources +reboot_module_LDADD = +reboot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +reboot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +reboot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +reboot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +reboot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_reboot_module_SOURCES) +CLEANFILES += $(nodist_reboot_module_SOURCES) +MOD_FILES += reboot.mod +MARKER_FILES += reboot.marker +CLEANFILES += reboot.marker + +reboot.marker: $(reboot_module_SOURCES) $(nodist_reboot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(reboot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_xen +platform_PROGRAMS += reboot.module +MODULE_FILES += reboot.module$(EXEEXT) +reboot_module_SOURCES = lib/xen/reboot.c commands/reboot.c ## platform sources +nodist_reboot_module_SOURCES = ## platform nodist sources +reboot_module_LDADD = +reboot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +reboot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +reboot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +reboot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +reboot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_reboot_module_SOURCES) +CLEANFILES += $(nodist_reboot_module_SOURCES) +MOD_FILES += reboot.mod +MARKER_FILES += reboot.marker +CLEANFILES += reboot.marker + +reboot.marker: $(reboot_module_SOURCES) $(nodist_reboot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(reboot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_xen +platform_PROGRAMS += reboot.module +MODULE_FILES += reboot.module$(EXEEXT) +reboot_module_SOURCES = lib/xen/reboot.c commands/reboot.c ## platform sources +nodist_reboot_module_SOURCES = ## platform nodist sources +reboot_module_LDADD = +reboot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +reboot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +reboot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +reboot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +reboot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_reboot_module_SOURCES) +CLEANFILES += $(nodist_reboot_module_SOURCES) +MOD_FILES += reboot.mod +MARKER_FILES += reboot.marker +CLEANFILES += reboot.marker + +reboot.marker: $(reboot_module_SOURCES) $(nodist_reboot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(reboot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_xen_pvh +platform_PROGRAMS += reboot.module +MODULE_FILES += reboot.module$(EXEEXT) +reboot_module_SOURCES = lib/xen/reboot.c commands/reboot.c ## platform sources +nodist_reboot_module_SOURCES = ## platform nodist sources +reboot_module_LDADD = +reboot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +reboot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +reboot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +reboot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +reboot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_reboot_module_SOURCES) +CLEANFILES += $(nodist_reboot_module_SOURCES) +MOD_FILES += reboot.mod +MARKER_FILES += reboot.marker +CLEANFILES += reboot.marker + +reboot.marker: $(reboot_module_SOURCES) $(nodist_reboot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(reboot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_loongson +platform_PROGRAMS += reboot.module +MODULE_FILES += reboot.module$(EXEEXT) +reboot_module_SOURCES = lib/mips/loongson/reboot.c commands/reboot.c ## platform sources +nodist_reboot_module_SOURCES = ## platform nodist sources +reboot_module_LDADD = +reboot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +reboot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +reboot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +reboot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +reboot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_reboot_module_SOURCES) +CLEANFILES += $(nodist_reboot_module_SOURCES) +MOD_FILES += reboot.mod +MARKER_FILES += reboot.marker +CLEANFILES += reboot.marker + +reboot.marker: $(reboot_module_SOURCES) $(nodist_reboot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(reboot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_sparc64_ieee1275 +platform_PROGRAMS += reboot.module +MODULE_FILES += reboot.module$(EXEEXT) +reboot_module_SOURCES = lib/ieee1275/reboot.c commands/reboot.c ## platform sources +nodist_reboot_module_SOURCES = ## platform nodist sources +reboot_module_LDADD = +reboot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +reboot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +reboot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +reboot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +reboot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_reboot_module_SOURCES) +CLEANFILES += $(nodist_reboot_module_SOURCES) +MOD_FILES += reboot.mod +MARKER_FILES += reboot.marker +CLEANFILES += reboot.marker + +reboot.marker: $(reboot_module_SOURCES) $(nodist_reboot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(reboot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_powerpc_ieee1275 +platform_PROGRAMS += reboot.module +MODULE_FILES += reboot.module$(EXEEXT) +reboot_module_SOURCES = lib/ieee1275/reboot.c commands/reboot.c ## platform sources +nodist_reboot_module_SOURCES = ## platform nodist sources +reboot_module_LDADD = +reboot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +reboot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +reboot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +reboot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +reboot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_reboot_module_SOURCES) +CLEANFILES += $(nodist_reboot_module_SOURCES) +MOD_FILES += reboot.mod +MARKER_FILES += reboot.marker +CLEANFILES += reboot.marker + +reboot.marker: $(reboot_module_SOURCES) $(nodist_reboot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(reboot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_arc +platform_PROGRAMS += reboot.module +MODULE_FILES += reboot.module$(EXEEXT) +reboot_module_SOURCES = lib/mips/arc/reboot.c commands/reboot.c ## platform sources +nodist_reboot_module_SOURCES = ## platform nodist sources +reboot_module_LDADD = +reboot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +reboot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +reboot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +reboot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +reboot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_reboot_module_SOURCES) +CLEANFILES += $(nodist_reboot_module_SOURCES) +MOD_FILES += reboot.mod +MARKER_FILES += reboot.marker +CLEANFILES += reboot.marker + +reboot.marker: $(reboot_module_SOURCES) $(nodist_reboot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(reboot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_ia64_efi +platform_PROGRAMS += reboot.module +MODULE_FILES += reboot.module$(EXEEXT) +reboot_module_SOURCES = commands/reboot.c ## platform sources +nodist_reboot_module_SOURCES = ## platform nodist sources +reboot_module_LDADD = +reboot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +reboot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +reboot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +reboot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +reboot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_reboot_module_SOURCES) +CLEANFILES += $(nodist_reboot_module_SOURCES) +MOD_FILES += reboot.mod +MARKER_FILES += reboot.marker +CLEANFILES += reboot.marker + +reboot.marker: $(reboot_module_SOURCES) $(nodist_reboot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(reboot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_qemu_mips +platform_PROGRAMS += reboot.module +MODULE_FILES += reboot.module$(EXEEXT) +reboot_module_SOURCES = lib/mips/qemu_mips/reboot.c commands/reboot.c ## platform sources +nodist_reboot_module_SOURCES = ## platform nodist sources +reboot_module_LDADD = +reboot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +reboot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +reboot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +reboot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +reboot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_reboot_module_SOURCES) +CLEANFILES += $(nodist_reboot_module_SOURCES) +MOD_FILES += reboot.mod +MARKER_FILES += reboot.marker +CLEANFILES += reboot.marker + +reboot.marker: $(reboot_module_SOURCES) $(nodist_reboot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(reboot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_uboot +platform_PROGRAMS += reboot.module +MODULE_FILES += reboot.module$(EXEEXT) +reboot_module_SOURCES = lib/uboot/reboot.c commands/reboot.c ## platform sources +nodist_reboot_module_SOURCES = ## platform nodist sources +reboot_module_LDADD = +reboot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +reboot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +reboot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +reboot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +reboot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_reboot_module_SOURCES) +CLEANFILES += $(nodist_reboot_module_SOURCES) +MOD_FILES += reboot.mod +MARKER_FILES += reboot.marker +CLEANFILES += reboot.marker + +reboot.marker: $(reboot_module_SOURCES) $(nodist_reboot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(reboot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_efi +platform_PROGRAMS += reboot.module +MODULE_FILES += reboot.module$(EXEEXT) +reboot_module_SOURCES = commands/reboot.c ## platform sources +nodist_reboot_module_SOURCES = ## platform nodist sources +reboot_module_LDADD = +reboot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +reboot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +reboot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +reboot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +reboot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_reboot_module_SOURCES) +CLEANFILES += $(nodist_reboot_module_SOURCES) +MOD_FILES += reboot.mod +MARKER_FILES += reboot.marker +CLEANFILES += reboot.marker + +reboot.marker: $(reboot_module_SOURCES) $(nodist_reboot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(reboot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm64_efi +platform_PROGRAMS += reboot.module +MODULE_FILES += reboot.module$(EXEEXT) +reboot_module_SOURCES = commands/reboot.c ## platform sources +nodist_reboot_module_SOURCES = ## platform nodist sources +reboot_module_LDADD = +reboot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +reboot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +reboot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +reboot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +reboot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_reboot_module_SOURCES) +CLEANFILES += $(nodist_reboot_module_SOURCES) +MOD_FILES += reboot.mod +MARKER_FILES += reboot.marker +CLEANFILES += reboot.marker + +reboot.marker: $(reboot_module_SOURCES) $(nodist_reboot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(reboot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_coreboot +platform_PROGRAMS += reboot.module +MODULE_FILES += reboot.module$(EXEEXT) +reboot_module_SOURCES = lib/dummy/reboot.c commands/reboot.c ## platform sources +nodist_reboot_module_SOURCES = ## platform nodist sources +reboot_module_LDADD = +reboot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +reboot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +reboot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +reboot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +reboot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_reboot_module_SOURCES) +CLEANFILES += $(nodist_reboot_module_SOURCES) +MOD_FILES += reboot.mod +MARKER_FILES += reboot.marker +CLEANFILES += reboot.marker + +reboot.marker: $(reboot_module_SOURCES) $(nodist_reboot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(reboot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv32_efi +platform_PROGRAMS += reboot.module +MODULE_FILES += reboot.module$(EXEEXT) +reboot_module_SOURCES = commands/reboot.c ## platform sources +nodist_reboot_module_SOURCES = ## platform nodist sources +reboot_module_LDADD = +reboot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +reboot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +reboot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +reboot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +reboot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_reboot_module_SOURCES) +CLEANFILES += $(nodist_reboot_module_SOURCES) +MOD_FILES += reboot.mod +MARKER_FILES += reboot.marker +CLEANFILES += reboot.marker + +reboot.marker: $(reboot_module_SOURCES) $(nodist_reboot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(reboot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv64_efi +platform_PROGRAMS += reboot.module +MODULE_FILES += reboot.module$(EXEEXT) +reboot_module_SOURCES = commands/reboot.c ## platform sources +nodist_reboot_module_SOURCES = ## platform nodist sources +reboot_module_LDADD = +reboot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +reboot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +reboot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +reboot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +reboot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_reboot_module_SOURCES) +CLEANFILES += $(nodist_reboot_module_SOURCES) +MOD_FILES += reboot.mod +MARKER_FILES += reboot.marker +CLEANFILES += reboot.marker + +reboot.marker: $(reboot_module_SOURCES) $(nodist_reboot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(reboot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif +platform_PROGRAMS += hashsum.module +MODULE_FILES += hashsum.module$(EXEEXT) +hashsum_module_SOURCES = commands/hashsum.c ## platform sources +nodist_hashsum_module_SOURCES = ## platform nodist sources +hashsum_module_LDADD = +hashsum_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +hashsum_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +hashsum_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +hashsum_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +hashsum_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_hashsum_module_SOURCES) +CLEANFILES += $(nodist_hashsum_module_SOURCES) +MOD_FILES += hashsum.mod +MARKER_FILES += hashsum.marker +CLEANFILES += hashsum.marker + +hashsum.marker: $(hashsum_module_SOURCES) $(nodist_hashsum_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hashsum_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += pgp.module +MODULE_FILES += pgp.module$(EXEEXT) +pgp_module_SOURCES = commands/pgp.c ## platform sources +nodist_pgp_module_SOURCES = ## platform nodist sources +pgp_module_LDADD = +pgp_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) $(CFLAGS_POSIX) +pgp_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +pgp_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) -I$(srcdir)/lib/posix_wrap +pgp_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +pgp_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_pgp_module_SOURCES) +CLEANFILES += $(nodist_pgp_module_SOURCES) +MOD_FILES += pgp.mod +MARKER_FILES += pgp.marker +CLEANFILES += pgp.marker + +pgp.marker: $(pgp_module_SOURCES) $(nodist_pgp_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pgp_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new + +if COND_i386_pc +platform_PROGRAMS += hdparm.module +MODULE_FILES += hdparm.module$(EXEEXT) +hdparm_module_SOURCES = commands/hdparm.c ## platform sources +nodist_hdparm_module_SOURCES = ## platform nodist sources +hdparm_module_LDADD = +hdparm_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +hdparm_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +hdparm_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +hdparm_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +hdparm_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_hdparm_module_SOURCES) +CLEANFILES += $(nodist_hdparm_module_SOURCES) +MOD_FILES += hdparm.mod +MARKER_FILES += hdparm.marker +CLEANFILES += hdparm.marker + +hdparm.marker: $(hdparm_module_SOURCES) $(nodist_hdparm_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hdparm_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += hdparm.module +MODULE_FILES += hdparm.module$(EXEEXT) +hdparm_module_SOURCES = commands/hdparm.c ## platform sources +nodist_hdparm_module_SOURCES = ## platform nodist sources +hdparm_module_LDADD = +hdparm_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +hdparm_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +hdparm_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +hdparm_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +hdparm_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_hdparm_module_SOURCES) +CLEANFILES += $(nodist_hdparm_module_SOURCES) +MOD_FILES += hdparm.mod +MARKER_FILES += hdparm.marker +CLEANFILES += hdparm.marker + +hdparm.marker: $(hdparm_module_SOURCES) $(nodist_hdparm_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hdparm_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += hdparm.module +MODULE_FILES += hdparm.module$(EXEEXT) +hdparm_module_SOURCES = commands/hdparm.c ## platform sources +nodist_hdparm_module_SOURCES = ## platform nodist sources +hdparm_module_LDADD = +hdparm_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +hdparm_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +hdparm_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +hdparm_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +hdparm_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_hdparm_module_SOURCES) +CLEANFILES += $(nodist_hdparm_module_SOURCES) +MOD_FILES += hdparm.mod +MARKER_FILES += hdparm.marker +CLEANFILES += hdparm.marker + +hdparm.marker: $(hdparm_module_SOURCES) $(nodist_hdparm_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hdparm_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += hdparm.module +MODULE_FILES += hdparm.module$(EXEEXT) +hdparm_module_SOURCES = commands/hdparm.c ## platform sources +nodist_hdparm_module_SOURCES = ## platform nodist sources +hdparm_module_LDADD = +hdparm_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +hdparm_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +hdparm_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +hdparm_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +hdparm_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_hdparm_module_SOURCES) +CLEANFILES += $(nodist_hdparm_module_SOURCES) +MOD_FILES += hdparm.mod +MARKER_FILES += hdparm.marker +CLEANFILES += hdparm.marker + +hdparm.marker: $(hdparm_module_SOURCES) $(nodist_hdparm_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hdparm_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += hdparm.module +MODULE_FILES += hdparm.module$(EXEEXT) +hdparm_module_SOURCES = commands/hdparm.c ## platform sources +nodist_hdparm_module_SOURCES = ## platform nodist sources +hdparm_module_LDADD = +hdparm_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +hdparm_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +hdparm_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +hdparm_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +hdparm_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_hdparm_module_SOURCES) +CLEANFILES += $(nodist_hdparm_module_SOURCES) +MOD_FILES += hdparm.mod +MARKER_FILES += hdparm.marker +CLEANFILES += hdparm.marker + +hdparm.marker: $(hdparm_module_SOURCES) $(nodist_hdparm_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hdparm_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += hdparm.module +MODULE_FILES += hdparm.module$(EXEEXT) +hdparm_module_SOURCES = commands/hdparm.c ## platform sources +nodist_hdparm_module_SOURCES = ## platform nodist sources +hdparm_module_LDADD = +hdparm_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +hdparm_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +hdparm_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +hdparm_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +hdparm_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_hdparm_module_SOURCES) +CLEANFILES += $(nodist_hdparm_module_SOURCES) +MOD_FILES += hdparm.mod +MARKER_FILES += hdparm.marker +CLEANFILES += hdparm.marker + +hdparm.marker: $(hdparm_module_SOURCES) $(nodist_hdparm_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hdparm_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += hdparm.module +MODULE_FILES += hdparm.module$(EXEEXT) +hdparm_module_SOURCES = commands/hdparm.c ## platform sources +nodist_hdparm_module_SOURCES = ## platform nodist sources +hdparm_module_LDADD = +hdparm_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +hdparm_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +hdparm_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +hdparm_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +hdparm_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_hdparm_module_SOURCES) +CLEANFILES += $(nodist_hdparm_module_SOURCES) +MOD_FILES += hdparm.mod +MARKER_FILES += hdparm.marker +CLEANFILES += hdparm.marker + +hdparm.marker: $(hdparm_module_SOURCES) $(nodist_hdparm_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hdparm_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_loongson +platform_PROGRAMS += hdparm.module +MODULE_FILES += hdparm.module$(EXEEXT) +hdparm_module_SOURCES = commands/hdparm.c ## platform sources +nodist_hdparm_module_SOURCES = ## platform nodist sources +hdparm_module_LDADD = +hdparm_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +hdparm_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +hdparm_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +hdparm_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +hdparm_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_hdparm_module_SOURCES) +CLEANFILES += $(nodist_hdparm_module_SOURCES) +MOD_FILES += hdparm.mod +MARKER_FILES += hdparm.marker +CLEANFILES += hdparm.marker + +hdparm.marker: $(hdparm_module_SOURCES) $(nodist_hdparm_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hdparm_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_qemu_mips +platform_PROGRAMS += hdparm.module +MODULE_FILES += hdparm.module$(EXEEXT) +hdparm_module_SOURCES = commands/hdparm.c ## platform sources +nodist_hdparm_module_SOURCES = ## platform nodist sources +hdparm_module_LDADD = +hdparm_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +hdparm_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +hdparm_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +hdparm_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +hdparm_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_hdparm_module_SOURCES) +CLEANFILES += $(nodist_hdparm_module_SOURCES) +MOD_FILES += hdparm.mod +MARKER_FILES += hdparm.marker +CLEANFILES += hdparm.marker + +hdparm.marker: $(hdparm_module_SOURCES) $(nodist_hdparm_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hdparm_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif +platform_PROGRAMS += help.module +MODULE_FILES += help.module$(EXEEXT) +help_module_SOURCES = commands/help.c ## platform sources +nodist_help_module_SOURCES = ## platform nodist sources +help_module_LDADD = +help_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +help_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +help_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +help_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +help_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_help_module_SOURCES) +CLEANFILES += $(nodist_help_module_SOURCES) +MOD_FILES += help.mod +MARKER_FILES += help.marker +CLEANFILES += help.marker + +help.marker: $(help_module_SOURCES) $(nodist_help_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(help_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += hexdump.module +MODULE_FILES += hexdump.module$(EXEEXT) +hexdump_module_SOURCES = commands/hexdump.c lib/hexdump.c ## platform sources +nodist_hexdump_module_SOURCES = ## platform nodist sources +hexdump_module_LDADD = +hexdump_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +hexdump_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +hexdump_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +hexdump_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +hexdump_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_hexdump_module_SOURCES) +CLEANFILES += $(nodist_hexdump_module_SOURCES) +MOD_FILES += hexdump.mod +MARKER_FILES += hexdump.marker +CLEANFILES += hexdump.marker + +hexdump.marker: $(hexdump_module_SOURCES) $(nodist_hexdump_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hexdump_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += keystatus.module +MODULE_FILES += keystatus.module$(EXEEXT) +keystatus_module_SOURCES = commands/keystatus.c ## platform sources +nodist_keystatus_module_SOURCES = ## platform nodist sources +keystatus_module_LDADD = +keystatus_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +keystatus_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +keystatus_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +keystatus_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +keystatus_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_keystatus_module_SOURCES) +CLEANFILES += $(nodist_keystatus_module_SOURCES) +MOD_FILES += keystatus.mod +MARKER_FILES += keystatus.marker +CLEANFILES += keystatus.marker + +keystatus.marker: $(keystatus_module_SOURCES) $(nodist_keystatus_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(keystatus_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new + +if COND_i386_efi +platform_PROGRAMS += loadbios.module +MODULE_FILES += loadbios.module$(EXEEXT) +loadbios_module_SOURCES = commands/efi/loadbios.c ## platform sources +nodist_loadbios_module_SOURCES = ## platform nodist sources +loadbios_module_LDADD = +loadbios_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +loadbios_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +loadbios_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +loadbios_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +loadbios_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_loadbios_module_SOURCES) +CLEANFILES += $(nodist_loadbios_module_SOURCES) +MOD_FILES += loadbios.mod +MARKER_FILES += loadbios.marker +CLEANFILES += loadbios.marker + +loadbios.marker: $(loadbios_module_SOURCES) $(nodist_loadbios_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(loadbios_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += loadbios.module +MODULE_FILES += loadbios.module$(EXEEXT) +loadbios_module_SOURCES = commands/efi/loadbios.c ## platform sources +nodist_loadbios_module_SOURCES = ## platform nodist sources +loadbios_module_LDADD = +loadbios_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +loadbios_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +loadbios_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +loadbios_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +loadbios_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_loadbios_module_SOURCES) +CLEANFILES += $(nodist_loadbios_module_SOURCES) +MOD_FILES += loadbios.mod +MARKER_FILES += loadbios.marker +CLEANFILES += loadbios.marker + +loadbios.marker: $(loadbios_module_SOURCES) $(nodist_loadbios_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(loadbios_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif +platform_PROGRAMS += loadenv.module +MODULE_FILES += loadenv.module$(EXEEXT) +loadenv_module_SOURCES = commands/loadenv.c lib/envblk.c ## platform sources +nodist_loadenv_module_SOURCES = ## platform nodist sources +loadenv_module_LDADD = +loadenv_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +loadenv_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +loadenv_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +loadenv_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +loadenv_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_loadenv_module_SOURCES) +CLEANFILES += $(nodist_loadenv_module_SOURCES) +MOD_FILES += loadenv.mod +MARKER_FILES += loadenv.marker +CLEANFILES += loadenv.marker + +loadenv.marker: $(loadenv_module_SOURCES) $(nodist_loadenv_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(loadenv_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += ls.module +MODULE_FILES += ls.module$(EXEEXT) +ls_module_SOURCES = commands/ls.c ## platform sources +nodist_ls_module_SOURCES = ## platform nodist sources +ls_module_LDADD = +ls_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +ls_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +ls_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +ls_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +ls_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_ls_module_SOURCES) +CLEANFILES += $(nodist_ls_module_SOURCES) +MOD_FILES += ls.mod +MARKER_FILES += ls.marker +CLEANFILES += ls.marker + +ls.marker: $(ls_module_SOURCES) $(nodist_ls_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ls_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += lsmmap.module +MODULE_FILES += lsmmap.module$(EXEEXT) +lsmmap_module_SOURCES = commands/lsmmap.c ## platform sources +nodist_lsmmap_module_SOURCES = ## platform nodist sources +lsmmap_module_LDADD = +lsmmap_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lsmmap_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lsmmap_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lsmmap_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lsmmap_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lsmmap_module_SOURCES) +CLEANFILES += $(nodist_lsmmap_module_SOURCES) +MOD_FILES += lsmmap.mod +MARKER_FILES += lsmmap.marker +CLEANFILES += lsmmap.marker + +lsmmap.marker: $(lsmmap_module_SOURCES) $(nodist_lsmmap_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lsmmap_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new + +if COND_i386_pc +platform_PROGRAMS += lspci.module +MODULE_FILES += lspci.module$(EXEEXT) +lspci_module_SOURCES = commands/lspci.c ## platform sources +nodist_lspci_module_SOURCES = ## platform nodist sources +lspci_module_LDADD = +lspci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lspci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lspci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lspci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lspci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lspci_module_SOURCES) +CLEANFILES += $(nodist_lspci_module_SOURCES) +MOD_FILES += lspci.mod +MARKER_FILES += lspci.marker +CLEANFILES += lspci.marker + +lspci.marker: $(lspci_module_SOURCES) $(nodist_lspci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lspci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += lspci.module +MODULE_FILES += lspci.module$(EXEEXT) +lspci_module_SOURCES = commands/lspci.c ## platform sources +nodist_lspci_module_SOURCES = ## platform nodist sources +lspci_module_LDADD = +lspci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lspci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lspci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lspci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lspci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lspci_module_SOURCES) +CLEANFILES += $(nodist_lspci_module_SOURCES) +MOD_FILES += lspci.mod +MARKER_FILES += lspci.marker +CLEANFILES += lspci.marker + +lspci.marker: $(lspci_module_SOURCES) $(nodist_lspci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lspci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += lspci.module +MODULE_FILES += lspci.module$(EXEEXT) +lspci_module_SOURCES = commands/lspci.c ## platform sources +nodist_lspci_module_SOURCES = ## platform nodist sources +lspci_module_LDADD = +lspci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lspci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lspci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lspci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lspci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lspci_module_SOURCES) +CLEANFILES += $(nodist_lspci_module_SOURCES) +MOD_FILES += lspci.mod +MARKER_FILES += lspci.marker +CLEANFILES += lspci.marker + +lspci.marker: $(lspci_module_SOURCES) $(nodist_lspci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lspci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += lspci.module +MODULE_FILES += lspci.module$(EXEEXT) +lspci_module_SOURCES = commands/lspci.c ## platform sources +nodist_lspci_module_SOURCES = ## platform nodist sources +lspci_module_LDADD = +lspci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lspci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lspci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lspci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lspci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lspci_module_SOURCES) +CLEANFILES += $(nodist_lspci_module_SOURCES) +MOD_FILES += lspci.mod +MARKER_FILES += lspci.marker +CLEANFILES += lspci.marker + +lspci.marker: $(lspci_module_SOURCES) $(nodist_lspci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lspci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += lspci.module +MODULE_FILES += lspci.module$(EXEEXT) +lspci_module_SOURCES = commands/lspci.c ## platform sources +nodist_lspci_module_SOURCES = ## platform nodist sources +lspci_module_LDADD = +lspci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lspci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lspci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lspci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lspci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lspci_module_SOURCES) +CLEANFILES += $(nodist_lspci_module_SOURCES) +MOD_FILES += lspci.mod +MARKER_FILES += lspci.marker +CLEANFILES += lspci.marker + +lspci.marker: $(lspci_module_SOURCES) $(nodist_lspci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lspci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += lspci.module +MODULE_FILES += lspci.module$(EXEEXT) +lspci_module_SOURCES = commands/lspci.c ## platform sources +nodist_lspci_module_SOURCES = ## platform nodist sources +lspci_module_LDADD = +lspci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lspci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lspci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lspci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lspci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lspci_module_SOURCES) +CLEANFILES += $(nodist_lspci_module_SOURCES) +MOD_FILES += lspci.mod +MARKER_FILES += lspci.marker +CLEANFILES += lspci.marker + +lspci.marker: $(lspci_module_SOURCES) $(nodist_lspci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lspci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += lspci.module +MODULE_FILES += lspci.module$(EXEEXT) +lspci_module_SOURCES = commands/lspci.c ## platform sources +nodist_lspci_module_SOURCES = ## platform nodist sources +lspci_module_LDADD = +lspci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lspci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lspci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lspci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lspci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lspci_module_SOURCES) +CLEANFILES += $(nodist_lspci_module_SOURCES) +MOD_FILES += lspci.mod +MARKER_FILES += lspci.marker +CLEANFILES += lspci.marker + +lspci.marker: $(lspci_module_SOURCES) $(nodist_lspci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lspci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_loongson +platform_PROGRAMS += lspci.module +MODULE_FILES += lspci.module$(EXEEXT) +lspci_module_SOURCES = commands/lspci.c ## platform sources +nodist_lspci_module_SOURCES = ## platform nodist sources +lspci_module_LDADD = +lspci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lspci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lspci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lspci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lspci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lspci_module_SOURCES) +CLEANFILES += $(nodist_lspci_module_SOURCES) +MOD_FILES += lspci.mod +MARKER_FILES += lspci.marker +CLEANFILES += lspci.marker + +lspci.marker: $(lspci_module_SOURCES) $(nodist_lspci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lspci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif +platform_PROGRAMS += memrw.module +MODULE_FILES += memrw.module$(EXEEXT) +memrw_module_SOURCES = commands/memrw.c ## platform sources +nodist_memrw_module_SOURCES = ## platform nodist sources +memrw_module_LDADD = +memrw_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +memrw_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +memrw_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +memrw_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +memrw_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_memrw_module_SOURCES) +CLEANFILES += $(nodist_memrw_module_SOURCES) +MOD_FILES += memrw.mod +MARKER_FILES += memrw.marker +CLEANFILES += memrw.marker + +memrw.marker: $(memrw_module_SOURCES) $(nodist_memrw_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(memrw_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += minicmd.module +MODULE_FILES += minicmd.module$(EXEEXT) +minicmd_module_SOURCES = commands/minicmd.c ## platform sources +nodist_minicmd_module_SOURCES = ## platform nodist sources +minicmd_module_LDADD = +minicmd_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +minicmd_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +minicmd_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +minicmd_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +minicmd_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_minicmd_module_SOURCES) +CLEANFILES += $(nodist_minicmd_module_SOURCES) +MOD_FILES += minicmd.mod +MARKER_FILES += minicmd.marker +CLEANFILES += minicmd.marker + +minicmd.marker: $(minicmd_module_SOURCES) $(nodist_minicmd_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(minicmd_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += parttool.module +MODULE_FILES += parttool.module$(EXEEXT) +parttool_module_SOURCES = commands/parttool.c ## platform sources +nodist_parttool_module_SOURCES = ## platform nodist sources +parttool_module_LDADD = +parttool_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +parttool_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +parttool_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +parttool_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +parttool_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_parttool_module_SOURCES) +CLEANFILES += $(nodist_parttool_module_SOURCES) +MOD_FILES += parttool.mod +MARKER_FILES += parttool.marker +CLEANFILES += parttool.marker + +parttool.marker: $(parttool_module_SOURCES) $(nodist_parttool_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(parttool_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += password.module +MODULE_FILES += password.module$(EXEEXT) +password_module_SOURCES = commands/password.c ## platform sources +nodist_password_module_SOURCES = ## platform nodist sources +password_module_LDADD = +password_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +password_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +password_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +password_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +password_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_password_module_SOURCES) +CLEANFILES += $(nodist_password_module_SOURCES) +MOD_FILES += password.mod +MARKER_FILES += password.marker +CLEANFILES += password.marker + +password.marker: $(password_module_SOURCES) $(nodist_password_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(password_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += password_pbkdf2.module +MODULE_FILES += password_pbkdf2.module$(EXEEXT) +password_pbkdf2_module_SOURCES = commands/password_pbkdf2.c ## platform sources +nodist_password_pbkdf2_module_SOURCES = ## platform nodist sources +password_pbkdf2_module_LDADD = +password_pbkdf2_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +password_pbkdf2_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +password_pbkdf2_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +password_pbkdf2_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +password_pbkdf2_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_password_pbkdf2_module_SOURCES) +CLEANFILES += $(nodist_password_pbkdf2_module_SOURCES) +MOD_FILES += password_pbkdf2.mod +MARKER_FILES += password_pbkdf2.marker +CLEANFILES += password_pbkdf2.marker + +password_pbkdf2.marker: $(password_pbkdf2_module_SOURCES) $(nodist_password_pbkdf2_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(password_pbkdf2_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new + +if COND_i386_pc +platform_PROGRAMS += play.module +MODULE_FILES += play.module$(EXEEXT) +play_module_SOURCES = commands/i386/pc/play.c ## platform sources +nodist_play_module_SOURCES = ## platform nodist sources +play_module_LDADD = +play_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +play_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +play_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +play_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +play_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_play_module_SOURCES) +CLEANFILES += $(nodist_play_module_SOURCES) +MOD_FILES += play.mod +MARKER_FILES += play.marker +CLEANFILES += play.marker + +play.marker: $(play_module_SOURCES) $(nodist_play_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(play_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += play.module +MODULE_FILES += play.module$(EXEEXT) +play_module_SOURCES = commands/i386/pc/play.c ## platform sources +nodist_play_module_SOURCES = ## platform nodist sources +play_module_LDADD = +play_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +play_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +play_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +play_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +play_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_play_module_SOURCES) +CLEANFILES += $(nodist_play_module_SOURCES) +MOD_FILES += play.mod +MARKER_FILES += play.marker +CLEANFILES += play.marker + +play.marker: $(play_module_SOURCES) $(nodist_play_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(play_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += play.module +MODULE_FILES += play.module$(EXEEXT) +play_module_SOURCES = commands/i386/pc/play.c ## platform sources +nodist_play_module_SOURCES = ## platform nodist sources +play_module_LDADD = +play_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +play_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +play_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +play_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +play_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_play_module_SOURCES) +CLEANFILES += $(nodist_play_module_SOURCES) +MOD_FILES += play.mod +MARKER_FILES += play.marker +CLEANFILES += play.marker + +play.marker: $(play_module_SOURCES) $(nodist_play_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(play_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += play.module +MODULE_FILES += play.module$(EXEEXT) +play_module_SOURCES = commands/i386/pc/play.c ## platform sources +nodist_play_module_SOURCES = ## platform nodist sources +play_module_LDADD = +play_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +play_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +play_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +play_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +play_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_play_module_SOURCES) +CLEANFILES += $(nodist_play_module_SOURCES) +MOD_FILES += play.mod +MARKER_FILES += play.marker +CLEANFILES += play.marker + +play.marker: $(play_module_SOURCES) $(nodist_play_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(play_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += play.module +MODULE_FILES += play.module$(EXEEXT) +play_module_SOURCES = commands/i386/pc/play.c ## platform sources +nodist_play_module_SOURCES = ## platform nodist sources +play_module_LDADD = +play_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +play_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +play_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +play_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +play_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_play_module_SOURCES) +CLEANFILES += $(nodist_play_module_SOURCES) +MOD_FILES += play.mod +MARKER_FILES += play.marker +CLEANFILES += play.marker + +play.marker: $(play_module_SOURCES) $(nodist_play_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(play_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += play.module +MODULE_FILES += play.module$(EXEEXT) +play_module_SOURCES = commands/i386/pc/play.c ## platform sources +nodist_play_module_SOURCES = ## platform nodist sources +play_module_LDADD = +play_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +play_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +play_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +play_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +play_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_play_module_SOURCES) +CLEANFILES += $(nodist_play_module_SOURCES) +MOD_FILES += play.mod +MARKER_FILES += play.marker +CLEANFILES += play.marker + +play.marker: $(play_module_SOURCES) $(nodist_play_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(play_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += play.module +MODULE_FILES += play.module$(EXEEXT) +play_module_SOURCES = commands/i386/pc/play.c ## platform sources +nodist_play_module_SOURCES = ## platform nodist sources +play_module_LDADD = +play_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +play_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +play_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +play_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +play_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_play_module_SOURCES) +CLEANFILES += $(nodist_play_module_SOURCES) +MOD_FILES += play.mod +MARKER_FILES += play.marker +CLEANFILES += play.marker + +play.marker: $(play_module_SOURCES) $(nodist_play_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(play_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += spkmodem.module +MODULE_FILES += spkmodem.module$(EXEEXT) +spkmodem_module_SOURCES = term/spkmodem.c ## platform sources +nodist_spkmodem_module_SOURCES = ## platform nodist sources +spkmodem_module_LDADD = +spkmodem_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +spkmodem_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +spkmodem_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +spkmodem_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +spkmodem_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_spkmodem_module_SOURCES) +CLEANFILES += $(nodist_spkmodem_module_SOURCES) +MOD_FILES += spkmodem.mod +MARKER_FILES += spkmodem.marker +CLEANFILES += spkmodem.marker + +spkmodem.marker: $(spkmodem_module_SOURCES) $(nodist_spkmodem_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(spkmodem_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += spkmodem.module +MODULE_FILES += spkmodem.module$(EXEEXT) +spkmodem_module_SOURCES = term/spkmodem.c ## platform sources +nodist_spkmodem_module_SOURCES = ## platform nodist sources +spkmodem_module_LDADD = +spkmodem_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +spkmodem_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +spkmodem_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +spkmodem_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +spkmodem_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_spkmodem_module_SOURCES) +CLEANFILES += $(nodist_spkmodem_module_SOURCES) +MOD_FILES += spkmodem.mod +MARKER_FILES += spkmodem.marker +CLEANFILES += spkmodem.marker + +spkmodem.marker: $(spkmodem_module_SOURCES) $(nodist_spkmodem_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(spkmodem_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += spkmodem.module +MODULE_FILES += spkmodem.module$(EXEEXT) +spkmodem_module_SOURCES = term/spkmodem.c ## platform sources +nodist_spkmodem_module_SOURCES = ## platform nodist sources +spkmodem_module_LDADD = +spkmodem_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +spkmodem_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +spkmodem_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +spkmodem_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +spkmodem_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_spkmodem_module_SOURCES) +CLEANFILES += $(nodist_spkmodem_module_SOURCES) +MOD_FILES += spkmodem.mod +MARKER_FILES += spkmodem.marker +CLEANFILES += spkmodem.marker + +spkmodem.marker: $(spkmodem_module_SOURCES) $(nodist_spkmodem_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(spkmodem_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += spkmodem.module +MODULE_FILES += spkmodem.module$(EXEEXT) +spkmodem_module_SOURCES = term/spkmodem.c ## platform sources +nodist_spkmodem_module_SOURCES = ## platform nodist sources +spkmodem_module_LDADD = +spkmodem_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +spkmodem_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +spkmodem_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +spkmodem_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +spkmodem_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_spkmodem_module_SOURCES) +CLEANFILES += $(nodist_spkmodem_module_SOURCES) +MOD_FILES += spkmodem.mod +MARKER_FILES += spkmodem.marker +CLEANFILES += spkmodem.marker + +spkmodem.marker: $(spkmodem_module_SOURCES) $(nodist_spkmodem_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(spkmodem_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += spkmodem.module +MODULE_FILES += spkmodem.module$(EXEEXT) +spkmodem_module_SOURCES = term/spkmodem.c ## platform sources +nodist_spkmodem_module_SOURCES = ## platform nodist sources +spkmodem_module_LDADD = +spkmodem_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +spkmodem_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +spkmodem_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +spkmodem_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +spkmodem_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_spkmodem_module_SOURCES) +CLEANFILES += $(nodist_spkmodem_module_SOURCES) +MOD_FILES += spkmodem.mod +MARKER_FILES += spkmodem.marker +CLEANFILES += spkmodem.marker + +spkmodem.marker: $(spkmodem_module_SOURCES) $(nodist_spkmodem_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(spkmodem_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += spkmodem.module +MODULE_FILES += spkmodem.module$(EXEEXT) +spkmodem_module_SOURCES = term/spkmodem.c ## platform sources +nodist_spkmodem_module_SOURCES = ## platform nodist sources +spkmodem_module_LDADD = +spkmodem_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +spkmodem_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +spkmodem_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +spkmodem_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +spkmodem_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_spkmodem_module_SOURCES) +CLEANFILES += $(nodist_spkmodem_module_SOURCES) +MOD_FILES += spkmodem.mod +MARKER_FILES += spkmodem.marker +CLEANFILES += spkmodem.marker + +spkmodem.marker: $(spkmodem_module_SOURCES) $(nodist_spkmodem_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(spkmodem_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += spkmodem.module +MODULE_FILES += spkmodem.module$(EXEEXT) +spkmodem_module_SOURCES = term/spkmodem.c ## platform sources +nodist_spkmodem_module_SOURCES = ## platform nodist sources +spkmodem_module_LDADD = +spkmodem_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +spkmodem_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +spkmodem_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +spkmodem_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +spkmodem_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_spkmodem_module_SOURCES) +CLEANFILES += $(nodist_spkmodem_module_SOURCES) +MOD_FILES += spkmodem.mod +MARKER_FILES += spkmodem.marker +CLEANFILES += spkmodem.marker + +spkmodem.marker: $(spkmodem_module_SOURCES) $(nodist_spkmodem_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(spkmodem_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += morse.module +MODULE_FILES += morse.module$(EXEEXT) +morse_module_SOURCES = term/morse.c ## platform sources +nodist_morse_module_SOURCES = ## platform nodist sources +morse_module_LDADD = +morse_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +morse_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +morse_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +morse_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +morse_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_morse_module_SOURCES) +CLEANFILES += $(nodist_morse_module_SOURCES) +MOD_FILES += morse.mod +MARKER_FILES += morse.marker +CLEANFILES += morse.marker + +morse.marker: $(morse_module_SOURCES) $(nodist_morse_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(morse_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += morse.module +MODULE_FILES += morse.module$(EXEEXT) +morse_module_SOURCES = term/morse.c ## platform sources +nodist_morse_module_SOURCES = ## platform nodist sources +morse_module_LDADD = +morse_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +morse_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +morse_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +morse_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +morse_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_morse_module_SOURCES) +CLEANFILES += $(nodist_morse_module_SOURCES) +MOD_FILES += morse.mod +MARKER_FILES += morse.marker +CLEANFILES += morse.marker + +morse.marker: $(morse_module_SOURCES) $(nodist_morse_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(morse_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += morse.module +MODULE_FILES += morse.module$(EXEEXT) +morse_module_SOURCES = term/morse.c ## platform sources +nodist_morse_module_SOURCES = ## platform nodist sources +morse_module_LDADD = +morse_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +morse_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +morse_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +morse_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +morse_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_morse_module_SOURCES) +CLEANFILES += $(nodist_morse_module_SOURCES) +MOD_FILES += morse.mod +MARKER_FILES += morse.marker +CLEANFILES += morse.marker + +morse.marker: $(morse_module_SOURCES) $(nodist_morse_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(morse_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += morse.module +MODULE_FILES += morse.module$(EXEEXT) +morse_module_SOURCES = term/morse.c ## platform sources +nodist_morse_module_SOURCES = ## platform nodist sources +morse_module_LDADD = +morse_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +morse_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +morse_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +morse_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +morse_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_morse_module_SOURCES) +CLEANFILES += $(nodist_morse_module_SOURCES) +MOD_FILES += morse.mod +MARKER_FILES += morse.marker +CLEANFILES += morse.marker + +morse.marker: $(morse_module_SOURCES) $(nodist_morse_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(morse_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += morse.module +MODULE_FILES += morse.module$(EXEEXT) +morse_module_SOURCES = term/morse.c ## platform sources +nodist_morse_module_SOURCES = ## platform nodist sources +morse_module_LDADD = +morse_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +morse_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +morse_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +morse_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +morse_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_morse_module_SOURCES) +CLEANFILES += $(nodist_morse_module_SOURCES) +MOD_FILES += morse.mod +MARKER_FILES += morse.marker +CLEANFILES += morse.marker + +morse.marker: $(morse_module_SOURCES) $(nodist_morse_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(morse_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += morse.module +MODULE_FILES += morse.module$(EXEEXT) +morse_module_SOURCES = term/morse.c ## platform sources +nodist_morse_module_SOURCES = ## platform nodist sources +morse_module_LDADD = +morse_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +morse_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +morse_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +morse_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +morse_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_morse_module_SOURCES) +CLEANFILES += $(nodist_morse_module_SOURCES) +MOD_FILES += morse.mod +MARKER_FILES += morse.marker +CLEANFILES += morse.marker + +morse.marker: $(morse_module_SOURCES) $(nodist_morse_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(morse_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += morse.module +MODULE_FILES += morse.module$(EXEEXT) +morse_module_SOURCES = term/morse.c ## platform sources +nodist_morse_module_SOURCES = ## platform nodist sources +morse_module_LDADD = +morse_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +morse_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +morse_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +morse_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +morse_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_morse_module_SOURCES) +CLEANFILES += $(nodist_morse_module_SOURCES) +MOD_FILES += morse.mod +MARKER_FILES += morse.marker +CLEANFILES += morse.marker + +morse.marker: $(morse_module_SOURCES) $(nodist_morse_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(morse_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif +platform_PROGRAMS += probe.module +MODULE_FILES += probe.module$(EXEEXT) +probe_module_SOURCES = commands/probe.c ## platform sources +nodist_probe_module_SOURCES = ## platform nodist sources +probe_module_LDADD = +probe_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +probe_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +probe_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +probe_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +probe_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_probe_module_SOURCES) +CLEANFILES += $(nodist_probe_module_SOURCES) +MOD_FILES += probe.mod +MARKER_FILES += probe.marker +CLEANFILES += probe.marker + +probe.marker: $(probe_module_SOURCES) $(nodist_probe_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(probe_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += read.module +MODULE_FILES += read.module$(EXEEXT) +read_module_SOURCES = commands/read.c ## platform sources +nodist_read_module_SOURCES = ## platform nodist sources +read_module_LDADD = +read_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +read_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +read_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +read_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +read_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_read_module_SOURCES) +CLEANFILES += $(nodist_read_module_SOURCES) +MOD_FILES += read.mod +MARKER_FILES += read.marker +CLEANFILES += read.marker + +read.marker: $(read_module_SOURCES) $(nodist_read_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(read_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += search.module +MODULE_FILES += search.module$(EXEEXT) +search_module_SOURCES = commands/search_wrap.c ## platform sources +nodist_search_module_SOURCES = ## platform nodist sources +search_module_LDADD = +search_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +search_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +search_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +search_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +search_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += commands/search.c +BUILT_SOURCES += $(nodist_search_module_SOURCES) +CLEANFILES += $(nodist_search_module_SOURCES) +MOD_FILES += search.mod +MARKER_FILES += search.marker +CLEANFILES += search.marker + +search.marker: $(search_module_SOURCES) $(nodist_search_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(search_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += search_fs_file.module +MODULE_FILES += search_fs_file.module$(EXEEXT) +search_fs_file_module_SOURCES = commands/search_file.c ## platform sources +nodist_search_fs_file_module_SOURCES = ## platform nodist sources +search_fs_file_module_LDADD = +search_fs_file_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +search_fs_file_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +search_fs_file_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +search_fs_file_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +search_fs_file_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_search_fs_file_module_SOURCES) +CLEANFILES += $(nodist_search_fs_file_module_SOURCES) +MOD_FILES += search_fs_file.mod +MARKER_FILES += search_fs_file.marker +CLEANFILES += search_fs_file.marker + +search_fs_file.marker: $(search_fs_file_module_SOURCES) $(nodist_search_fs_file_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(search_fs_file_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += search_fs_uuid.module +MODULE_FILES += search_fs_uuid.module$(EXEEXT) +search_fs_uuid_module_SOURCES = commands/search_uuid.c ## platform sources +nodist_search_fs_uuid_module_SOURCES = ## platform nodist sources +search_fs_uuid_module_LDADD = +search_fs_uuid_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +search_fs_uuid_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +search_fs_uuid_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +search_fs_uuid_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +search_fs_uuid_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_search_fs_uuid_module_SOURCES) +CLEANFILES += $(nodist_search_fs_uuid_module_SOURCES) +MOD_FILES += search_fs_uuid.mod +MARKER_FILES += search_fs_uuid.marker +CLEANFILES += search_fs_uuid.marker + +search_fs_uuid.marker: $(search_fs_uuid_module_SOURCES) $(nodist_search_fs_uuid_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(search_fs_uuid_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += search_label.module +MODULE_FILES += search_label.module$(EXEEXT) +search_label_module_SOURCES = commands/search_label.c ## platform sources +nodist_search_label_module_SOURCES = ## platform nodist sources +search_label_module_LDADD = +search_label_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +search_label_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +search_label_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +search_label_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +search_label_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_search_label_module_SOURCES) +CLEANFILES += $(nodist_search_label_module_SOURCES) +MOD_FILES += search_label.mod +MARKER_FILES += search_label.marker +CLEANFILES += search_label.marker + +search_label.marker: $(search_label_module_SOURCES) $(nodist_search_label_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(search_label_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new + +if COND_i386_pc +platform_PROGRAMS += setpci.module +MODULE_FILES += setpci.module$(EXEEXT) +setpci_module_SOURCES = commands/setpci.c ## platform sources +nodist_setpci_module_SOURCES = ## platform nodist sources +setpci_module_LDADD = +setpci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +setpci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +setpci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +setpci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +setpci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_setpci_module_SOURCES) +CLEANFILES += $(nodist_setpci_module_SOURCES) +MOD_FILES += setpci.mod +MARKER_FILES += setpci.marker +CLEANFILES += setpci.marker + +setpci.marker: $(setpci_module_SOURCES) $(nodist_setpci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(setpci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += setpci.module +MODULE_FILES += setpci.module$(EXEEXT) +setpci_module_SOURCES = commands/setpci.c ## platform sources +nodist_setpci_module_SOURCES = ## platform nodist sources +setpci_module_LDADD = +setpci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +setpci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +setpci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +setpci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +setpci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_setpci_module_SOURCES) +CLEANFILES += $(nodist_setpci_module_SOURCES) +MOD_FILES += setpci.mod +MARKER_FILES += setpci.marker +CLEANFILES += setpci.marker + +setpci.marker: $(setpci_module_SOURCES) $(nodist_setpci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(setpci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += setpci.module +MODULE_FILES += setpci.module$(EXEEXT) +setpci_module_SOURCES = commands/setpci.c ## platform sources +nodist_setpci_module_SOURCES = ## platform nodist sources +setpci_module_LDADD = +setpci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +setpci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +setpci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +setpci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +setpci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_setpci_module_SOURCES) +CLEANFILES += $(nodist_setpci_module_SOURCES) +MOD_FILES += setpci.mod +MARKER_FILES += setpci.marker +CLEANFILES += setpci.marker + +setpci.marker: $(setpci_module_SOURCES) $(nodist_setpci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(setpci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += setpci.module +MODULE_FILES += setpci.module$(EXEEXT) +setpci_module_SOURCES = commands/setpci.c ## platform sources +nodist_setpci_module_SOURCES = ## platform nodist sources +setpci_module_LDADD = +setpci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +setpci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +setpci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +setpci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +setpci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_setpci_module_SOURCES) +CLEANFILES += $(nodist_setpci_module_SOURCES) +MOD_FILES += setpci.mod +MARKER_FILES += setpci.marker +CLEANFILES += setpci.marker + +setpci.marker: $(setpci_module_SOURCES) $(nodist_setpci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(setpci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += setpci.module +MODULE_FILES += setpci.module$(EXEEXT) +setpci_module_SOURCES = commands/setpci.c ## platform sources +nodist_setpci_module_SOURCES = ## platform nodist sources +setpci_module_LDADD = +setpci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +setpci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +setpci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +setpci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +setpci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_setpci_module_SOURCES) +CLEANFILES += $(nodist_setpci_module_SOURCES) +MOD_FILES += setpci.mod +MARKER_FILES += setpci.marker +CLEANFILES += setpci.marker + +setpci.marker: $(setpci_module_SOURCES) $(nodist_setpci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(setpci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += setpci.module +MODULE_FILES += setpci.module$(EXEEXT) +setpci_module_SOURCES = commands/setpci.c ## platform sources +nodist_setpci_module_SOURCES = ## platform nodist sources +setpci_module_LDADD = +setpci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +setpci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +setpci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +setpci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +setpci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_setpci_module_SOURCES) +CLEANFILES += $(nodist_setpci_module_SOURCES) +MOD_FILES += setpci.mod +MARKER_FILES += setpci.marker +CLEANFILES += setpci.marker + +setpci.marker: $(setpci_module_SOURCES) $(nodist_setpci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(setpci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += setpci.module +MODULE_FILES += setpci.module$(EXEEXT) +setpci_module_SOURCES = commands/setpci.c ## platform sources +nodist_setpci_module_SOURCES = ## platform nodist sources +setpci_module_LDADD = +setpci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +setpci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +setpci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +setpci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +setpci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_setpci_module_SOURCES) +CLEANFILES += $(nodist_setpci_module_SOURCES) +MOD_FILES += setpci.mod +MARKER_FILES += setpci.marker +CLEANFILES += setpci.marker + +setpci.marker: $(setpci_module_SOURCES) $(nodist_setpci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(setpci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_loongson +platform_PROGRAMS += setpci.module +MODULE_FILES += setpci.module$(EXEEXT) +setpci_module_SOURCES = commands/setpci.c ## platform sources +nodist_setpci_module_SOURCES = ## platform nodist sources +setpci_module_LDADD = +setpci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +setpci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +setpci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +setpci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +setpci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_setpci_module_SOURCES) +CLEANFILES += $(nodist_setpci_module_SOURCES) +MOD_FILES += setpci.mod +MARKER_FILES += setpci.marker +CLEANFILES += setpci.marker + +setpci.marker: $(setpci_module_SOURCES) $(nodist_setpci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(setpci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += pcidump.module +MODULE_FILES += pcidump.module$(EXEEXT) +pcidump_module_SOURCES = commands/pcidump.c ## platform sources +nodist_pcidump_module_SOURCES = ## platform nodist sources +pcidump_module_LDADD = +pcidump_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +pcidump_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +pcidump_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +pcidump_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +pcidump_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_pcidump_module_SOURCES) +CLEANFILES += $(nodist_pcidump_module_SOURCES) +MOD_FILES += pcidump.mod +MARKER_FILES += pcidump.marker +CLEANFILES += pcidump.marker + +pcidump.marker: $(pcidump_module_SOURCES) $(nodist_pcidump_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pcidump_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += pcidump.module +MODULE_FILES += pcidump.module$(EXEEXT) +pcidump_module_SOURCES = commands/pcidump.c ## platform sources +nodist_pcidump_module_SOURCES = ## platform nodist sources +pcidump_module_LDADD = +pcidump_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +pcidump_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +pcidump_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +pcidump_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +pcidump_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_pcidump_module_SOURCES) +CLEANFILES += $(nodist_pcidump_module_SOURCES) +MOD_FILES += pcidump.mod +MARKER_FILES += pcidump.marker +CLEANFILES += pcidump.marker + +pcidump.marker: $(pcidump_module_SOURCES) $(nodist_pcidump_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pcidump_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += pcidump.module +MODULE_FILES += pcidump.module$(EXEEXT) +pcidump_module_SOURCES = commands/pcidump.c ## platform sources +nodist_pcidump_module_SOURCES = ## platform nodist sources +pcidump_module_LDADD = +pcidump_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +pcidump_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +pcidump_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +pcidump_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +pcidump_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_pcidump_module_SOURCES) +CLEANFILES += $(nodist_pcidump_module_SOURCES) +MOD_FILES += pcidump.mod +MARKER_FILES += pcidump.marker +CLEANFILES += pcidump.marker + +pcidump.marker: $(pcidump_module_SOURCES) $(nodist_pcidump_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pcidump_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += pcidump.module +MODULE_FILES += pcidump.module$(EXEEXT) +pcidump_module_SOURCES = commands/pcidump.c ## platform sources +nodist_pcidump_module_SOURCES = ## platform nodist sources +pcidump_module_LDADD = +pcidump_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +pcidump_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +pcidump_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +pcidump_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +pcidump_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_pcidump_module_SOURCES) +CLEANFILES += $(nodist_pcidump_module_SOURCES) +MOD_FILES += pcidump.mod +MARKER_FILES += pcidump.marker +CLEANFILES += pcidump.marker + +pcidump.marker: $(pcidump_module_SOURCES) $(nodist_pcidump_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pcidump_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += pcidump.module +MODULE_FILES += pcidump.module$(EXEEXT) +pcidump_module_SOURCES = commands/pcidump.c ## platform sources +nodist_pcidump_module_SOURCES = ## platform nodist sources +pcidump_module_LDADD = +pcidump_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +pcidump_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +pcidump_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +pcidump_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +pcidump_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_pcidump_module_SOURCES) +CLEANFILES += $(nodist_pcidump_module_SOURCES) +MOD_FILES += pcidump.mod +MARKER_FILES += pcidump.marker +CLEANFILES += pcidump.marker + +pcidump.marker: $(pcidump_module_SOURCES) $(nodist_pcidump_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pcidump_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += pcidump.module +MODULE_FILES += pcidump.module$(EXEEXT) +pcidump_module_SOURCES = commands/pcidump.c ## platform sources +nodist_pcidump_module_SOURCES = ## platform nodist sources +pcidump_module_LDADD = +pcidump_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +pcidump_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +pcidump_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +pcidump_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +pcidump_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_pcidump_module_SOURCES) +CLEANFILES += $(nodist_pcidump_module_SOURCES) +MOD_FILES += pcidump.mod +MARKER_FILES += pcidump.marker +CLEANFILES += pcidump.marker + +pcidump.marker: $(pcidump_module_SOURCES) $(nodist_pcidump_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pcidump_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += pcidump.module +MODULE_FILES += pcidump.module$(EXEEXT) +pcidump_module_SOURCES = commands/pcidump.c ## platform sources +nodist_pcidump_module_SOURCES = ## platform nodist sources +pcidump_module_LDADD = +pcidump_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +pcidump_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +pcidump_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +pcidump_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +pcidump_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_pcidump_module_SOURCES) +CLEANFILES += $(nodist_pcidump_module_SOURCES) +MOD_FILES += pcidump.mod +MARKER_FILES += pcidump.marker +CLEANFILES += pcidump.marker + +pcidump.marker: $(pcidump_module_SOURCES) $(nodist_pcidump_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pcidump_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_loongson +platform_PROGRAMS += pcidump.module +MODULE_FILES += pcidump.module$(EXEEXT) +pcidump_module_SOURCES = commands/pcidump.c ## platform sources +nodist_pcidump_module_SOURCES = ## platform nodist sources +pcidump_module_LDADD = +pcidump_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +pcidump_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +pcidump_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +pcidump_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +pcidump_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_pcidump_module_SOURCES) +CLEANFILES += $(nodist_pcidump_module_SOURCES) +MOD_FILES += pcidump.mod +MARKER_FILES += pcidump.marker +CLEANFILES += pcidump.marker + +pcidump.marker: $(pcidump_module_SOURCES) $(nodist_pcidump_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pcidump_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif +platform_PROGRAMS += sleep.module +MODULE_FILES += sleep.module$(EXEEXT) +sleep_module_SOURCES = commands/sleep.c ## platform sources +nodist_sleep_module_SOURCES = ## platform nodist sources +sleep_module_LDADD = +sleep_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +sleep_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +sleep_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +sleep_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +sleep_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_sleep_module_SOURCES) +CLEANFILES += $(nodist_sleep_module_SOURCES) +MOD_FILES += sleep.mod +MARKER_FILES += sleep.marker +CLEANFILES += sleep.marker + +sleep.marker: $(sleep_module_SOURCES) $(nodist_sleep_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(sleep_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new + +if COND_i386_pc +platform_PROGRAMS += smbios.module +MODULE_FILES += smbios.module$(EXEEXT) +smbios_module_SOURCES = commands/i386/pc/smbios.c commands/smbios.c ## platform sources +nodist_smbios_module_SOURCES = ## platform nodist sources +smbios_module_LDADD = +smbios_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +smbios_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +smbios_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +smbios_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +smbios_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_smbios_module_SOURCES) +CLEANFILES += $(nodist_smbios_module_SOURCES) +MOD_FILES += smbios.mod +MARKER_FILES += smbios.marker +CLEANFILES += smbios.marker + +smbios.marker: $(smbios_module_SOURCES) $(nodist_smbios_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(smbios_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += smbios.module +MODULE_FILES += smbios.module$(EXEEXT) +smbios_module_SOURCES = commands/efi/smbios.c commands/smbios.c ## platform sources +nodist_smbios_module_SOURCES = ## platform nodist sources +smbios_module_LDADD = +smbios_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +smbios_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +smbios_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +smbios_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +smbios_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_smbios_module_SOURCES) +CLEANFILES += $(nodist_smbios_module_SOURCES) +MOD_FILES += smbios.mod +MARKER_FILES += smbios.marker +CLEANFILES += smbios.marker + +smbios.marker: $(smbios_module_SOURCES) $(nodist_smbios_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(smbios_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += smbios.module +MODULE_FILES += smbios.module$(EXEEXT) +smbios_module_SOURCES = commands/i386/pc/smbios.c commands/smbios.c ## platform sources +nodist_smbios_module_SOURCES = ## platform nodist sources +smbios_module_LDADD = +smbios_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +smbios_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +smbios_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +smbios_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +smbios_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_smbios_module_SOURCES) +CLEANFILES += $(nodist_smbios_module_SOURCES) +MOD_FILES += smbios.mod +MARKER_FILES += smbios.marker +CLEANFILES += smbios.marker + +smbios.marker: $(smbios_module_SOURCES) $(nodist_smbios_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(smbios_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += smbios.module +MODULE_FILES += smbios.module$(EXEEXT) +smbios_module_SOURCES = commands/i386/pc/smbios.c commands/smbios.c ## platform sources +nodist_smbios_module_SOURCES = ## platform nodist sources +smbios_module_LDADD = +smbios_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +smbios_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +smbios_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +smbios_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +smbios_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_smbios_module_SOURCES) +CLEANFILES += $(nodist_smbios_module_SOURCES) +MOD_FILES += smbios.mod +MARKER_FILES += smbios.marker +CLEANFILES += smbios.marker + +smbios.marker: $(smbios_module_SOURCES) $(nodist_smbios_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(smbios_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += smbios.module +MODULE_FILES += smbios.module$(EXEEXT) +smbios_module_SOURCES = commands/efi/smbios.c commands/smbios.c ## platform sources +nodist_smbios_module_SOURCES = ## platform nodist sources +smbios_module_LDADD = +smbios_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +smbios_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +smbios_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +smbios_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +smbios_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_smbios_module_SOURCES) +CLEANFILES += $(nodist_smbios_module_SOURCES) +MOD_FILES += smbios.mod +MARKER_FILES += smbios.marker +CLEANFILES += smbios.marker + +smbios.marker: $(smbios_module_SOURCES) $(nodist_smbios_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(smbios_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_ia64_efi +platform_PROGRAMS += smbios.module +MODULE_FILES += smbios.module$(EXEEXT) +smbios_module_SOURCES = commands/efi/smbios.c commands/smbios.c ## platform sources +nodist_smbios_module_SOURCES = ## platform nodist sources +smbios_module_LDADD = +smbios_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +smbios_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +smbios_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +smbios_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +smbios_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_smbios_module_SOURCES) +CLEANFILES += $(nodist_smbios_module_SOURCES) +MOD_FILES += smbios.mod +MARKER_FILES += smbios.marker +CLEANFILES += smbios.marker + +smbios.marker: $(smbios_module_SOURCES) $(nodist_smbios_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(smbios_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_efi +platform_PROGRAMS += smbios.module +MODULE_FILES += smbios.module$(EXEEXT) +smbios_module_SOURCES = commands/efi/smbios.c commands/smbios.c ## platform sources +nodist_smbios_module_SOURCES = ## platform nodist sources +smbios_module_LDADD = +smbios_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +smbios_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +smbios_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +smbios_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +smbios_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_smbios_module_SOURCES) +CLEANFILES += $(nodist_smbios_module_SOURCES) +MOD_FILES += smbios.mod +MARKER_FILES += smbios.marker +CLEANFILES += smbios.marker + +smbios.marker: $(smbios_module_SOURCES) $(nodist_smbios_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(smbios_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm64_efi +platform_PROGRAMS += smbios.module +MODULE_FILES += smbios.module$(EXEEXT) +smbios_module_SOURCES = commands/efi/smbios.c commands/smbios.c ## platform sources +nodist_smbios_module_SOURCES = ## platform nodist sources +smbios_module_LDADD = +smbios_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +smbios_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +smbios_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +smbios_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +smbios_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_smbios_module_SOURCES) +CLEANFILES += $(nodist_smbios_module_SOURCES) +MOD_FILES += smbios.mod +MARKER_FILES += smbios.marker +CLEANFILES += smbios.marker + +smbios.marker: $(smbios_module_SOURCES) $(nodist_smbios_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(smbios_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv32_efi +platform_PROGRAMS += smbios.module +MODULE_FILES += smbios.module$(EXEEXT) +smbios_module_SOURCES = commands/efi/smbios.c commands/smbios.c ## platform sources +nodist_smbios_module_SOURCES = ## platform nodist sources +smbios_module_LDADD = +smbios_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +smbios_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +smbios_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +smbios_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +smbios_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_smbios_module_SOURCES) +CLEANFILES += $(nodist_smbios_module_SOURCES) +MOD_FILES += smbios.mod +MARKER_FILES += smbios.marker +CLEANFILES += smbios.marker + +smbios.marker: $(smbios_module_SOURCES) $(nodist_smbios_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(smbios_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv64_efi +platform_PROGRAMS += smbios.module +MODULE_FILES += smbios.module$(EXEEXT) +smbios_module_SOURCES = commands/efi/smbios.c commands/smbios.c ## platform sources +nodist_smbios_module_SOURCES = ## platform nodist sources +smbios_module_LDADD = +smbios_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +smbios_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +smbios_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +smbios_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +smbios_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_smbios_module_SOURCES) +CLEANFILES += $(nodist_smbios_module_SOURCES) +MOD_FILES += smbios.mod +MARKER_FILES += smbios.marker +CLEANFILES += smbios.marker + +smbios.marker: $(smbios_module_SOURCES) $(nodist_smbios_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(smbios_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += suspend.module +MODULE_FILES += suspend.module$(EXEEXT) +suspend_module_SOURCES = commands/ieee1275/suspend.c ## platform sources +nodist_suspend_module_SOURCES = ## platform nodist sources +suspend_module_LDADD = +suspend_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +suspend_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +suspend_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +suspend_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +suspend_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_suspend_module_SOURCES) +CLEANFILES += $(nodist_suspend_module_SOURCES) +MOD_FILES += suspend.mod +MARKER_FILES += suspend.marker +CLEANFILES += suspend.marker + +suspend.marker: $(suspend_module_SOURCES) $(nodist_suspend_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(suspend_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_powerpc_ieee1275 +platform_PROGRAMS += suspend.module +MODULE_FILES += suspend.module$(EXEEXT) +suspend_module_SOURCES = commands/ieee1275/suspend.c ## platform sources +nodist_suspend_module_SOURCES = ## platform nodist sources +suspend_module_LDADD = +suspend_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +suspend_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +suspend_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +suspend_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +suspend_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_suspend_module_SOURCES) +CLEANFILES += $(nodist_suspend_module_SOURCES) +MOD_FILES += suspend.mod +MARKER_FILES += suspend.marker +CLEANFILES += suspend.marker + +suspend.marker: $(suspend_module_SOURCES) $(nodist_suspend_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(suspend_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_powerpc_ieee1275 +platform_PROGRAMS += escc.module +MODULE_FILES += escc.module$(EXEEXT) +escc_module_SOURCES = term/ieee1275/escc.c ## platform sources +nodist_escc_module_SOURCES = ## platform nodist sources +escc_module_LDADD = +escc_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +escc_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +escc_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +escc_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +escc_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_escc_module_SOURCES) +CLEANFILES += $(nodist_escc_module_SOURCES) +MOD_FILES += escc.mod +MARKER_FILES += escc.marker +CLEANFILES += escc.marker + +escc.marker: $(escc_module_SOURCES) $(nodist_escc_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(escc_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif +platform_PROGRAMS += terminal.module +MODULE_FILES += terminal.module$(EXEEXT) +terminal_module_SOURCES = commands/terminal.c ## platform sources +nodist_terminal_module_SOURCES = ## platform nodist sources +terminal_module_LDADD = +terminal_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +terminal_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +terminal_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +terminal_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +terminal_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_terminal_module_SOURCES) +CLEANFILES += $(nodist_terminal_module_SOURCES) +MOD_FILES += terminal.mod +MARKER_FILES += terminal.marker +CLEANFILES += terminal.marker + +terminal.marker: $(terminal_module_SOURCES) $(nodist_terminal_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(terminal_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += test.module +MODULE_FILES += test.module$(EXEEXT) +test_module_SOURCES = commands/test.c ## platform sources +nodist_test_module_SOURCES = ## platform nodist sources +test_module_LDADD = +test_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +test_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +test_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +test_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +test_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_test_module_SOURCES) +CLEANFILES += $(nodist_test_module_SOURCES) +MOD_FILES += test.mod +MARKER_FILES += test.marker +CLEANFILES += test.marker + +test.marker: $(test_module_SOURCES) $(nodist_test_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += true.module +MODULE_FILES += true.module$(EXEEXT) +true_module_SOURCES = commands/true.c ## platform sources +nodist_true_module_SOURCES = ## platform nodist sources +true_module_LDADD = +true_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +true_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +true_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +true_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +true_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_true_module_SOURCES) +CLEANFILES += $(nodist_true_module_SOURCES) +MOD_FILES += true.mod +MARKER_FILES += true.marker +CLEANFILES += true.marker + +true.marker: $(true_module_SOURCES) $(nodist_true_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(true_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new + +if COND_i386_pc +platform_PROGRAMS += usbtest.module +MODULE_FILES += usbtest.module$(EXEEXT) +usbtest_module_SOURCES = commands/usbtest.c ## platform sources +nodist_usbtest_module_SOURCES = ## platform nodist sources +usbtest_module_LDADD = +usbtest_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbtest_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbtest_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbtest_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbtest_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbtest_module_SOURCES) +CLEANFILES += $(nodist_usbtest_module_SOURCES) +MOD_FILES += usbtest.mod +MARKER_FILES += usbtest.marker +CLEANFILES += usbtest.marker + +usbtest.marker: $(usbtest_module_SOURCES) $(nodist_usbtest_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbtest_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += usbtest.module +MODULE_FILES += usbtest.module$(EXEEXT) +usbtest_module_SOURCES = commands/usbtest.c ## platform sources +nodist_usbtest_module_SOURCES = ## platform nodist sources +usbtest_module_LDADD = +usbtest_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbtest_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbtest_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbtest_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbtest_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbtest_module_SOURCES) +CLEANFILES += $(nodist_usbtest_module_SOURCES) +MOD_FILES += usbtest.mod +MARKER_FILES += usbtest.marker +CLEANFILES += usbtest.marker + +usbtest.marker: $(usbtest_module_SOURCES) $(nodist_usbtest_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbtest_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += usbtest.module +MODULE_FILES += usbtest.module$(EXEEXT) +usbtest_module_SOURCES = commands/usbtest.c ## platform sources +nodist_usbtest_module_SOURCES = ## platform nodist sources +usbtest_module_LDADD = +usbtest_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbtest_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbtest_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbtest_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbtest_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbtest_module_SOURCES) +CLEANFILES += $(nodist_usbtest_module_SOURCES) +MOD_FILES += usbtest.mod +MARKER_FILES += usbtest.marker +CLEANFILES += usbtest.marker + +usbtest.marker: $(usbtest_module_SOURCES) $(nodist_usbtest_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbtest_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += usbtest.module +MODULE_FILES += usbtest.module$(EXEEXT) +usbtest_module_SOURCES = commands/usbtest.c ## platform sources +nodist_usbtest_module_SOURCES = ## platform nodist sources +usbtest_module_LDADD = +usbtest_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbtest_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbtest_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbtest_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbtest_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbtest_module_SOURCES) +CLEANFILES += $(nodist_usbtest_module_SOURCES) +MOD_FILES += usbtest.mod +MARKER_FILES += usbtest.marker +CLEANFILES += usbtest.marker + +usbtest.marker: $(usbtest_module_SOURCES) $(nodist_usbtest_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbtest_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += usbtest.module +MODULE_FILES += usbtest.module$(EXEEXT) +usbtest_module_SOURCES = commands/usbtest.c ## platform sources +nodist_usbtest_module_SOURCES = ## platform nodist sources +usbtest_module_LDADD = +usbtest_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbtest_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbtest_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbtest_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbtest_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbtest_module_SOURCES) +CLEANFILES += $(nodist_usbtest_module_SOURCES) +MOD_FILES += usbtest.mod +MARKER_FILES += usbtest.marker +CLEANFILES += usbtest.marker + +usbtest.marker: $(usbtest_module_SOURCES) $(nodist_usbtest_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbtest_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += usbtest.module +MODULE_FILES += usbtest.module$(EXEEXT) +usbtest_module_SOURCES = commands/usbtest.c ## platform sources +nodist_usbtest_module_SOURCES = ## platform nodist sources +usbtest_module_LDADD = +usbtest_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbtest_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbtest_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbtest_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbtest_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbtest_module_SOURCES) +CLEANFILES += $(nodist_usbtest_module_SOURCES) +MOD_FILES += usbtest.mod +MARKER_FILES += usbtest.marker +CLEANFILES += usbtest.marker + +usbtest.marker: $(usbtest_module_SOURCES) $(nodist_usbtest_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbtest_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += usbtest.module +MODULE_FILES += usbtest.module$(EXEEXT) +usbtest_module_SOURCES = commands/usbtest.c ## platform sources +nodist_usbtest_module_SOURCES = ## platform nodist sources +usbtest_module_LDADD = +usbtest_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbtest_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbtest_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbtest_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbtest_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbtest_module_SOURCES) +CLEANFILES += $(nodist_usbtest_module_SOURCES) +MOD_FILES += usbtest.mod +MARKER_FILES += usbtest.marker +CLEANFILES += usbtest.marker + +usbtest.marker: $(usbtest_module_SOURCES) $(nodist_usbtest_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbtest_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_loongson +platform_PROGRAMS += usbtest.module +MODULE_FILES += usbtest.module$(EXEEXT) +usbtest_module_SOURCES = commands/usbtest.c ## platform sources +nodist_usbtest_module_SOURCES = ## platform nodist sources +usbtest_module_LDADD = +usbtest_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbtest_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbtest_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbtest_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbtest_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbtest_module_SOURCES) +CLEANFILES += $(nodist_usbtest_module_SOURCES) +MOD_FILES += usbtest.mod +MARKER_FILES += usbtest.marker +CLEANFILES += usbtest.marker + +usbtest.marker: $(usbtest_module_SOURCES) $(nodist_usbtest_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbtest_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_coreboot +platform_PROGRAMS += usbtest.module +MODULE_FILES += usbtest.module$(EXEEXT) +usbtest_module_SOURCES = commands/usbtest.c ## platform sources +nodist_usbtest_module_SOURCES = ## platform nodist sources +usbtest_module_LDADD = +usbtest_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbtest_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbtest_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbtest_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbtest_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbtest_module_SOURCES) +CLEANFILES += $(nodist_usbtest_module_SOURCES) +MOD_FILES += usbtest.mod +MARKER_FILES += usbtest.marker +CLEANFILES += usbtest.marker + +usbtest.marker: $(usbtest_module_SOURCES) $(nodist_usbtest_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbtest_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif +platform_PROGRAMS += videoinfo.module +MODULE_FILES += videoinfo.module$(EXEEXT) +videoinfo_module_SOURCES = commands/videoinfo.c ## platform sources +nodist_videoinfo_module_SOURCES = ## platform nodist sources +videoinfo_module_LDADD = +videoinfo_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +videoinfo_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +videoinfo_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +videoinfo_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +videoinfo_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_videoinfo_module_SOURCES) +CLEANFILES += $(nodist_videoinfo_module_SOURCES) +MOD_FILES += videoinfo.mod +MARKER_FILES += videoinfo.marker +CLEANFILES += videoinfo.marker + +videoinfo.marker: $(videoinfo_module_SOURCES) $(nodist_videoinfo_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(videoinfo_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += videotest.module +MODULE_FILES += videotest.module$(EXEEXT) +videotest_module_SOURCES = commands/videotest.c ## platform sources +nodist_videotest_module_SOURCES = ## platform nodist sources +videotest_module_LDADD = +videotest_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +videotest_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +videotest_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +videotest_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +videotest_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_videotest_module_SOURCES) +CLEANFILES += $(nodist_videotest_module_SOURCES) +MOD_FILES += videotest.mod +MARKER_FILES += videotest.marker +CLEANFILES += videotest.marker + +videotest.marker: $(videotest_module_SOURCES) $(nodist_videotest_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(videotest_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += xnu_uuid.module +MODULE_FILES += xnu_uuid.module$(EXEEXT) +xnu_uuid_module_SOURCES = commands/xnu_uuid.c ## platform sources +nodist_xnu_uuid_module_SOURCES = ## platform nodist sources +xnu_uuid_module_LDADD = +xnu_uuid_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +xnu_uuid_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +xnu_uuid_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +xnu_uuid_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +xnu_uuid_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_xnu_uuid_module_SOURCES) +CLEANFILES += $(nodist_xnu_uuid_module_SOURCES) +MOD_FILES += xnu_uuid.mod +MARKER_FILES += xnu_uuid.marker +CLEANFILES += xnu_uuid.marker + +xnu_uuid.marker: $(xnu_uuid_module_SOURCES) $(nodist_xnu_uuid_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xnu_uuid_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += dm_nv.module +MODULE_FILES += dm_nv.module$(EXEEXT) +dm_nv_module_SOURCES = disk/dmraid_nvidia.c ## platform sources +nodist_dm_nv_module_SOURCES = ## platform nodist sources +dm_nv_module_LDADD = +dm_nv_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +dm_nv_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +dm_nv_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +dm_nv_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +dm_nv_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_dm_nv_module_SOURCES) +CLEANFILES += $(nodist_dm_nv_module_SOURCES) +MOD_FILES += dm_nv.mod +MARKER_FILES += dm_nv.marker +CLEANFILES += dm_nv.marker + +dm_nv.marker: $(dm_nv_module_SOURCES) $(nodist_dm_nv_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(dm_nv_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += loopback.module +MODULE_FILES += loopback.module$(EXEEXT) +loopback_module_SOURCES = disk/loopback.c ## platform sources +nodist_loopback_module_SOURCES = ## platform nodist sources +loopback_module_LDADD = +loopback_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +loopback_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +loopback_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +loopback_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +loopback_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_loopback_module_SOURCES) +CLEANFILES += $(nodist_loopback_module_SOURCES) +MOD_FILES += loopback.mod +MARKER_FILES += loopback.marker +CLEANFILES += loopback.marker + +loopback.marker: $(loopback_module_SOURCES) $(nodist_loopback_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(loopback_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += cryptodisk.module +MODULE_FILES += cryptodisk.module$(EXEEXT) +cryptodisk_module_SOURCES = disk/cryptodisk.c ## platform sources +nodist_cryptodisk_module_SOURCES = ## platform nodist sources +cryptodisk_module_LDADD = +cryptodisk_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cryptodisk_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cryptodisk_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cryptodisk_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cryptodisk_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cryptodisk_module_SOURCES) +CLEANFILES += $(nodist_cryptodisk_module_SOURCES) +MOD_FILES += cryptodisk.mod +MARKER_FILES += cryptodisk.marker +CLEANFILES += cryptodisk.marker + +cryptodisk.marker: $(cryptodisk_module_SOURCES) $(nodist_cryptodisk_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cryptodisk_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += json.module +MODULE_FILES += json.module$(EXEEXT) +json_module_SOURCES = lib/json/json.c ## platform sources +nodist_json_module_SOURCES = ## platform nodist sources +json_module_LDADD = +json_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +json_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +json_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +json_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +json_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_json_module_SOURCES) +CLEANFILES += $(nodist_json_module_SOURCES) +MOD_FILES += json.mod +MARKER_FILES += json.marker +CLEANFILES += json.marker + +json.marker: $(json_module_SOURCES) $(nodist_json_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(json_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += afsplitter.module +MODULE_FILES += afsplitter.module$(EXEEXT) +afsplitter_module_SOURCES = disk/AFSplitter.c ## platform sources +nodist_afsplitter_module_SOURCES = ## platform nodist sources +afsplitter_module_LDADD = +afsplitter_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +afsplitter_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +afsplitter_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +afsplitter_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +afsplitter_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_afsplitter_module_SOURCES) +CLEANFILES += $(nodist_afsplitter_module_SOURCES) +MOD_FILES += afsplitter.mod +MARKER_FILES += afsplitter.marker +CLEANFILES += afsplitter.marker + +afsplitter.marker: $(afsplitter_module_SOURCES) $(nodist_afsplitter_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(afsplitter_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += luks.module +MODULE_FILES += luks.module$(EXEEXT) +luks_module_SOURCES = disk/luks.c ## platform sources +nodist_luks_module_SOURCES = ## platform nodist sources +luks_module_LDADD = +luks_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +luks_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +luks_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +luks_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +luks_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_luks_module_SOURCES) +CLEANFILES += $(nodist_luks_module_SOURCES) +MOD_FILES += luks.mod +MARKER_FILES += luks.marker +CLEANFILES += luks.marker + +luks.marker: $(luks_module_SOURCES) $(nodist_luks_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(luks_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += luks2.module +MODULE_FILES += luks2.module$(EXEEXT) +luks2_module_SOURCES = disk/luks2.c lib/gnulib/base64.c ## platform sources +nodist_luks2_module_SOURCES = ## platform nodist sources +luks2_module_LDADD = +luks2_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) $(CFLAGS_POSIX) $(CFLAGS_GNULIB) +luks2_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +luks2_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) $(CPPFLAGS_POSIX) $(CPPFLAGS_GNULIB) -I$(srcdir)/lib/json +luks2_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +luks2_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_luks2_module_SOURCES) +CLEANFILES += $(nodist_luks2_module_SOURCES) +MOD_FILES += luks2.mod +MARKER_FILES += luks2.marker +CLEANFILES += luks2.marker + +luks2.marker: $(luks2_module_SOURCES) $(nodist_luks2_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(luks2_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += geli.module +MODULE_FILES += geli.module$(EXEEXT) +geli_module_SOURCES = disk/geli.c ## platform sources +nodist_geli_module_SOURCES = ## platform nodist sources +geli_module_LDADD = +geli_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +geli_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +geli_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +geli_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +geli_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_geli_module_SOURCES) +CLEANFILES += $(nodist_geli_module_SOURCES) +MOD_FILES += geli.mod +MARKER_FILES += geli.marker +CLEANFILES += geli.marker + +geli.marker: $(geli_module_SOURCES) $(nodist_geli_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(geli_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += lvm.module +MODULE_FILES += lvm.module$(EXEEXT) +lvm_module_SOURCES = disk/lvm.c ## platform sources +nodist_lvm_module_SOURCES = ## platform nodist sources +lvm_module_LDADD = +lvm_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lvm_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lvm_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lvm_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lvm_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lvm_module_SOURCES) +CLEANFILES += $(nodist_lvm_module_SOURCES) +MOD_FILES += lvm.mod +MARKER_FILES += lvm.marker +CLEANFILES += lvm.marker + +lvm.marker: $(lvm_module_SOURCES) $(nodist_lvm_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lvm_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += ldm.module +MODULE_FILES += ldm.module$(EXEEXT) +ldm_module_SOURCES = disk/ldm.c ## platform sources +nodist_ldm_module_SOURCES = ## platform nodist sources +ldm_module_LDADD = +ldm_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +ldm_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +ldm_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +ldm_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +ldm_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_ldm_module_SOURCES) +CLEANFILES += $(nodist_ldm_module_SOURCES) +MOD_FILES += ldm.mod +MARKER_FILES += ldm.marker +CLEANFILES += ldm.marker + +ldm.marker: $(ldm_module_SOURCES) $(nodist_ldm_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ldm_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += mdraid09.module +MODULE_FILES += mdraid09.module$(EXEEXT) +mdraid09_module_SOURCES = disk/mdraid_linux.c ## platform sources +nodist_mdraid09_module_SOURCES = ## platform nodist sources +mdraid09_module_LDADD = +mdraid09_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +mdraid09_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +mdraid09_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +mdraid09_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +mdraid09_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_mdraid09_module_SOURCES) +CLEANFILES += $(nodist_mdraid09_module_SOURCES) +MOD_FILES += mdraid09.mod +MARKER_FILES += mdraid09.marker +CLEANFILES += mdraid09.marker + +mdraid09.marker: $(mdraid09_module_SOURCES) $(nodist_mdraid09_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(mdraid09_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += mdraid09_be.module +MODULE_FILES += mdraid09_be.module$(EXEEXT) +mdraid09_be_module_SOURCES = disk/mdraid_linux_be.c ## platform sources +nodist_mdraid09_be_module_SOURCES = ## platform nodist sources +mdraid09_be_module_LDADD = +mdraid09_be_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +mdraid09_be_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +mdraid09_be_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +mdraid09_be_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +mdraid09_be_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_mdraid09_be_module_SOURCES) +CLEANFILES += $(nodist_mdraid09_be_module_SOURCES) +MOD_FILES += mdraid09_be.mod +MARKER_FILES += mdraid09_be.marker +CLEANFILES += mdraid09_be.marker + +mdraid09_be.marker: $(mdraid09_be_module_SOURCES) $(nodist_mdraid09_be_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(mdraid09_be_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += mdraid1x.module +MODULE_FILES += mdraid1x.module$(EXEEXT) +mdraid1x_module_SOURCES = disk/mdraid1x_linux.c ## platform sources +nodist_mdraid1x_module_SOURCES = ## platform nodist sources +mdraid1x_module_LDADD = +mdraid1x_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +mdraid1x_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +mdraid1x_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +mdraid1x_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +mdraid1x_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_mdraid1x_module_SOURCES) +CLEANFILES += $(nodist_mdraid1x_module_SOURCES) +MOD_FILES += mdraid1x.mod +MARKER_FILES += mdraid1x.marker +CLEANFILES += mdraid1x.marker + +mdraid1x.marker: $(mdraid1x_module_SOURCES) $(nodist_mdraid1x_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(mdraid1x_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += diskfilter.module +MODULE_FILES += diskfilter.module$(EXEEXT) +diskfilter_module_SOURCES = disk/diskfilter.c ## platform sources +nodist_diskfilter_module_SOURCES = ## platform nodist sources +diskfilter_module_LDADD = +diskfilter_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +diskfilter_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +diskfilter_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +diskfilter_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +diskfilter_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_diskfilter_module_SOURCES) +CLEANFILES += $(nodist_diskfilter_module_SOURCES) +MOD_FILES += diskfilter.mod +MARKER_FILES += diskfilter.marker +CLEANFILES += diskfilter.marker + +diskfilter.marker: $(diskfilter_module_SOURCES) $(nodist_diskfilter_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(diskfilter_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += raid5rec.module +MODULE_FILES += raid5rec.module$(EXEEXT) +raid5rec_module_SOURCES = disk/raid5_recover.c ## platform sources +nodist_raid5rec_module_SOURCES = ## platform nodist sources +raid5rec_module_LDADD = +raid5rec_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +raid5rec_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +raid5rec_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +raid5rec_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +raid5rec_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_raid5rec_module_SOURCES) +CLEANFILES += $(nodist_raid5rec_module_SOURCES) +MOD_FILES += raid5rec.mod +MARKER_FILES += raid5rec.marker +CLEANFILES += raid5rec.marker + +raid5rec.marker: $(raid5rec_module_SOURCES) $(nodist_raid5rec_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(raid5rec_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += raid6rec.module +MODULE_FILES += raid6rec.module$(EXEEXT) +raid6rec_module_SOURCES = disk/raid6_recover.c ## platform sources +nodist_raid6rec_module_SOURCES = ## platform nodist sources +raid6rec_module_LDADD = +raid6rec_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +raid6rec_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +raid6rec_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +raid6rec_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +raid6rec_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_raid6rec_module_SOURCES) +CLEANFILES += $(nodist_raid6rec_module_SOURCES) +MOD_FILES += raid6rec.mod +MARKER_FILES += raid6rec.marker +CLEANFILES += raid6rec.marker + +raid6rec.marker: $(raid6rec_module_SOURCES) $(nodist_raid6rec_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(raid6rec_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += scsi.module +MODULE_FILES += scsi.module$(EXEEXT) +scsi_module_SOURCES = disk/scsi.c ## platform sources +nodist_scsi_module_SOURCES = ## platform nodist sources +scsi_module_LDADD = +scsi_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +scsi_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +scsi_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +scsi_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +scsi_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_scsi_module_SOURCES) +CLEANFILES += $(nodist_scsi_module_SOURCES) +MOD_FILES += scsi.mod +MARKER_FILES += scsi.marker +CLEANFILES += scsi.marker + +scsi.marker: $(scsi_module_SOURCES) $(nodist_scsi_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(scsi_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += memdisk.module +MODULE_FILES += memdisk.module$(EXEEXT) +memdisk_module_SOURCES = disk/memdisk.c ## platform sources +nodist_memdisk_module_SOURCES = ## platform nodist sources +memdisk_module_LDADD = +memdisk_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +memdisk_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +memdisk_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +memdisk_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +memdisk_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_memdisk_module_SOURCES) +CLEANFILES += $(nodist_memdisk_module_SOURCES) +MOD_FILES += memdisk.mod +MARKER_FILES += memdisk.marker +CLEANFILES += memdisk.marker + +memdisk.marker: $(memdisk_module_SOURCES) $(nodist_memdisk_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(memdisk_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new + +if COND_i386_pc +platform_PROGRAMS += ata.module +MODULE_FILES += ata.module$(EXEEXT) +ata_module_SOURCES = disk/ata.c ## platform sources +nodist_ata_module_SOURCES = ## platform nodist sources +ata_module_LDADD = +ata_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +ata_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +ata_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +ata_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +ata_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_ata_module_SOURCES) +CLEANFILES += $(nodist_ata_module_SOURCES) +MOD_FILES += ata.mod +MARKER_FILES += ata.marker +CLEANFILES += ata.marker + +ata.marker: $(ata_module_SOURCES) $(nodist_ata_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ata_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += ata.module +MODULE_FILES += ata.module$(EXEEXT) +ata_module_SOURCES = disk/ata.c ## platform sources +nodist_ata_module_SOURCES = ## platform nodist sources +ata_module_LDADD = +ata_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +ata_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +ata_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +ata_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +ata_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_ata_module_SOURCES) +CLEANFILES += $(nodist_ata_module_SOURCES) +MOD_FILES += ata.mod +MARKER_FILES += ata.marker +CLEANFILES += ata.marker + +ata.marker: $(ata_module_SOURCES) $(nodist_ata_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ata_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += ata.module +MODULE_FILES += ata.module$(EXEEXT) +ata_module_SOURCES = disk/ata.c ## platform sources +nodist_ata_module_SOURCES = ## platform nodist sources +ata_module_LDADD = +ata_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +ata_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +ata_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +ata_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +ata_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_ata_module_SOURCES) +CLEANFILES += $(nodist_ata_module_SOURCES) +MOD_FILES += ata.mod +MARKER_FILES += ata.marker +CLEANFILES += ata.marker + +ata.marker: $(ata_module_SOURCES) $(nodist_ata_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ata_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += ata.module +MODULE_FILES += ata.module$(EXEEXT) +ata_module_SOURCES = disk/ata.c ## platform sources +nodist_ata_module_SOURCES = ## platform nodist sources +ata_module_LDADD = +ata_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +ata_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +ata_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +ata_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +ata_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_ata_module_SOURCES) +CLEANFILES += $(nodist_ata_module_SOURCES) +MOD_FILES += ata.mod +MARKER_FILES += ata.marker +CLEANFILES += ata.marker + +ata.marker: $(ata_module_SOURCES) $(nodist_ata_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ata_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += ata.module +MODULE_FILES += ata.module$(EXEEXT) +ata_module_SOURCES = disk/ata.c ## platform sources +nodist_ata_module_SOURCES = ## platform nodist sources +ata_module_LDADD = +ata_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +ata_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +ata_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +ata_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +ata_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_ata_module_SOURCES) +CLEANFILES += $(nodist_ata_module_SOURCES) +MOD_FILES += ata.mod +MARKER_FILES += ata.marker +CLEANFILES += ata.marker + +ata.marker: $(ata_module_SOURCES) $(nodist_ata_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ata_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += ata.module +MODULE_FILES += ata.module$(EXEEXT) +ata_module_SOURCES = disk/ata.c ## platform sources +nodist_ata_module_SOURCES = ## platform nodist sources +ata_module_LDADD = +ata_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +ata_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +ata_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +ata_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +ata_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_ata_module_SOURCES) +CLEANFILES += $(nodist_ata_module_SOURCES) +MOD_FILES += ata.mod +MARKER_FILES += ata.marker +CLEANFILES += ata.marker + +ata.marker: $(ata_module_SOURCES) $(nodist_ata_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ata_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += ata.module +MODULE_FILES += ata.module$(EXEEXT) +ata_module_SOURCES = disk/ata.c ## platform sources +nodist_ata_module_SOURCES = ## platform nodist sources +ata_module_LDADD = +ata_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +ata_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +ata_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +ata_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +ata_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_ata_module_SOURCES) +CLEANFILES += $(nodist_ata_module_SOURCES) +MOD_FILES += ata.mod +MARKER_FILES += ata.marker +CLEANFILES += ata.marker + +ata.marker: $(ata_module_SOURCES) $(nodist_ata_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ata_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_loongson +platform_PROGRAMS += ata.module +MODULE_FILES += ata.module$(EXEEXT) +ata_module_SOURCES = disk/ata.c ## platform sources +nodist_ata_module_SOURCES = ## platform nodist sources +ata_module_LDADD = +ata_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +ata_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +ata_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +ata_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +ata_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_ata_module_SOURCES) +CLEANFILES += $(nodist_ata_module_SOURCES) +MOD_FILES += ata.mod +MARKER_FILES += ata.marker +CLEANFILES += ata.marker + +ata.marker: $(ata_module_SOURCES) $(nodist_ata_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ata_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_qemu_mips +platform_PROGRAMS += ata.module +MODULE_FILES += ata.module$(EXEEXT) +ata_module_SOURCES = disk/ata.c ## platform sources +nodist_ata_module_SOURCES = ## platform nodist sources +ata_module_LDADD = +ata_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +ata_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +ata_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +ata_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +ata_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_ata_module_SOURCES) +CLEANFILES += $(nodist_ata_module_SOURCES) +MOD_FILES += ata.mod +MARKER_FILES += ata.marker +CLEANFILES += ata.marker + +ata.marker: $(ata_module_SOURCES) $(nodist_ata_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ata_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += ahci.module +MODULE_FILES += ahci.module$(EXEEXT) +ahci_module_SOURCES = disk/ahci.c ## platform sources +nodist_ahci_module_SOURCES = ## platform nodist sources +ahci_module_LDADD = +ahci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +ahci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +ahci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +ahci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +ahci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_ahci_module_SOURCES) +CLEANFILES += $(nodist_ahci_module_SOURCES) +MOD_FILES += ahci.mod +MARKER_FILES += ahci.marker +CLEANFILES += ahci.marker + +ahci.marker: $(ahci_module_SOURCES) $(nodist_ahci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ahci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += ahci.module +MODULE_FILES += ahci.module$(EXEEXT) +ahci_module_SOURCES = disk/ahci.c ## platform sources +nodist_ahci_module_SOURCES = ## platform nodist sources +ahci_module_LDADD = +ahci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +ahci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +ahci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +ahci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +ahci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_ahci_module_SOURCES) +CLEANFILES += $(nodist_ahci_module_SOURCES) +MOD_FILES += ahci.mod +MARKER_FILES += ahci.marker +CLEANFILES += ahci.marker + +ahci.marker: $(ahci_module_SOURCES) $(nodist_ahci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ahci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += ahci.module +MODULE_FILES += ahci.module$(EXEEXT) +ahci_module_SOURCES = disk/ahci.c ## platform sources +nodist_ahci_module_SOURCES = ## platform nodist sources +ahci_module_LDADD = +ahci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +ahci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +ahci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +ahci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +ahci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_ahci_module_SOURCES) +CLEANFILES += $(nodist_ahci_module_SOURCES) +MOD_FILES += ahci.mod +MARKER_FILES += ahci.marker +CLEANFILES += ahci.marker + +ahci.marker: $(ahci_module_SOURCES) $(nodist_ahci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ahci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += ahci.module +MODULE_FILES += ahci.module$(EXEEXT) +ahci_module_SOURCES = disk/ahci.c ## platform sources +nodist_ahci_module_SOURCES = ## platform nodist sources +ahci_module_LDADD = +ahci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +ahci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +ahci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +ahci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +ahci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_ahci_module_SOURCES) +CLEANFILES += $(nodist_ahci_module_SOURCES) +MOD_FILES += ahci.mod +MARKER_FILES += ahci.marker +CLEANFILES += ahci.marker + +ahci.marker: $(ahci_module_SOURCES) $(nodist_ahci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ahci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += ahci.module +MODULE_FILES += ahci.module$(EXEEXT) +ahci_module_SOURCES = disk/ahci.c ## platform sources +nodist_ahci_module_SOURCES = ## platform nodist sources +ahci_module_LDADD = +ahci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +ahci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +ahci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +ahci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +ahci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_ahci_module_SOURCES) +CLEANFILES += $(nodist_ahci_module_SOURCES) +MOD_FILES += ahci.mod +MARKER_FILES += ahci.marker +CLEANFILES += ahci.marker + +ahci.marker: $(ahci_module_SOURCES) $(nodist_ahci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ahci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += ahci.module +MODULE_FILES += ahci.module$(EXEEXT) +ahci_module_SOURCES = disk/ahci.c ## platform sources +nodist_ahci_module_SOURCES = ## platform nodist sources +ahci_module_LDADD = +ahci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +ahci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +ahci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +ahci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +ahci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_ahci_module_SOURCES) +CLEANFILES += $(nodist_ahci_module_SOURCES) +MOD_FILES += ahci.mod +MARKER_FILES += ahci.marker +CLEANFILES += ahci.marker + +ahci.marker: $(ahci_module_SOURCES) $(nodist_ahci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ahci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += ahci.module +MODULE_FILES += ahci.module$(EXEEXT) +ahci_module_SOURCES = disk/ahci.c ## platform sources +nodist_ahci_module_SOURCES = ## platform nodist sources +ahci_module_LDADD = +ahci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +ahci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +ahci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +ahci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +ahci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_ahci_module_SOURCES) +CLEANFILES += $(nodist_ahci_module_SOURCES) +MOD_FILES += ahci.mod +MARKER_FILES += ahci.marker +CLEANFILES += ahci.marker + +ahci.marker: $(ahci_module_SOURCES) $(nodist_ahci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ahci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_loongson +platform_PROGRAMS += ahci.module +MODULE_FILES += ahci.module$(EXEEXT) +ahci_module_SOURCES = disk/ahci.c ## platform sources +nodist_ahci_module_SOURCES = ## platform nodist sources +ahci_module_LDADD = +ahci_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +ahci_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +ahci_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +ahci_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +ahci_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_ahci_module_SOURCES) +CLEANFILES += $(nodist_ahci_module_SOURCES) +MOD_FILES += ahci.mod +MARKER_FILES += ahci.marker +CLEANFILES += ahci.marker + +ahci.marker: $(ahci_module_SOURCES) $(nodist_ahci_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ahci_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += pata.module +MODULE_FILES += pata.module$(EXEEXT) +pata_module_SOURCES = disk/pata.c ## platform sources +nodist_pata_module_SOURCES = ## platform nodist sources +pata_module_LDADD = +pata_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +pata_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +pata_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +pata_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +pata_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_pata_module_SOURCES) +CLEANFILES += $(nodist_pata_module_SOURCES) +MOD_FILES += pata.mod +MARKER_FILES += pata.marker +CLEANFILES += pata.marker + +pata.marker: $(pata_module_SOURCES) $(nodist_pata_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pata_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += pata.module +MODULE_FILES += pata.module$(EXEEXT) +pata_module_SOURCES = disk/pata.c ## platform sources +nodist_pata_module_SOURCES = ## platform nodist sources +pata_module_LDADD = +pata_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +pata_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +pata_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +pata_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +pata_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_pata_module_SOURCES) +CLEANFILES += $(nodist_pata_module_SOURCES) +MOD_FILES += pata.mod +MARKER_FILES += pata.marker +CLEANFILES += pata.marker + +pata.marker: $(pata_module_SOURCES) $(nodist_pata_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pata_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += pata.module +MODULE_FILES += pata.module$(EXEEXT) +pata_module_SOURCES = disk/pata.c ## platform sources +nodist_pata_module_SOURCES = ## platform nodist sources +pata_module_LDADD = +pata_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +pata_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +pata_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +pata_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +pata_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_pata_module_SOURCES) +CLEANFILES += $(nodist_pata_module_SOURCES) +MOD_FILES += pata.mod +MARKER_FILES += pata.marker +CLEANFILES += pata.marker + +pata.marker: $(pata_module_SOURCES) $(nodist_pata_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pata_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += pata.module +MODULE_FILES += pata.module$(EXEEXT) +pata_module_SOURCES = disk/pata.c ## platform sources +nodist_pata_module_SOURCES = ## platform nodist sources +pata_module_LDADD = +pata_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +pata_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +pata_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +pata_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +pata_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_pata_module_SOURCES) +CLEANFILES += $(nodist_pata_module_SOURCES) +MOD_FILES += pata.mod +MARKER_FILES += pata.marker +CLEANFILES += pata.marker + +pata.marker: $(pata_module_SOURCES) $(nodist_pata_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pata_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += pata.module +MODULE_FILES += pata.module$(EXEEXT) +pata_module_SOURCES = disk/pata.c ## platform sources +nodist_pata_module_SOURCES = ## platform nodist sources +pata_module_LDADD = +pata_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +pata_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +pata_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +pata_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +pata_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_pata_module_SOURCES) +CLEANFILES += $(nodist_pata_module_SOURCES) +MOD_FILES += pata.mod +MARKER_FILES += pata.marker +CLEANFILES += pata.marker + +pata.marker: $(pata_module_SOURCES) $(nodist_pata_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pata_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += pata.module +MODULE_FILES += pata.module$(EXEEXT) +pata_module_SOURCES = disk/pata.c ## platform sources +nodist_pata_module_SOURCES = ## platform nodist sources +pata_module_LDADD = +pata_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +pata_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +pata_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +pata_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +pata_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_pata_module_SOURCES) +CLEANFILES += $(nodist_pata_module_SOURCES) +MOD_FILES += pata.mod +MARKER_FILES += pata.marker +CLEANFILES += pata.marker + +pata.marker: $(pata_module_SOURCES) $(nodist_pata_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pata_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += pata.module +MODULE_FILES += pata.module$(EXEEXT) +pata_module_SOURCES = disk/pata.c ## platform sources +nodist_pata_module_SOURCES = ## platform nodist sources +pata_module_LDADD = +pata_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +pata_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +pata_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +pata_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +pata_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_pata_module_SOURCES) +CLEANFILES += $(nodist_pata_module_SOURCES) +MOD_FILES += pata.mod +MARKER_FILES += pata.marker +CLEANFILES += pata.marker + +pata.marker: $(pata_module_SOURCES) $(nodist_pata_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pata_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_loongson +platform_PROGRAMS += pata.module +MODULE_FILES += pata.module$(EXEEXT) +pata_module_SOURCES = disk/pata.c ## platform sources +nodist_pata_module_SOURCES = ## platform nodist sources +pata_module_LDADD = +pata_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +pata_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +pata_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +pata_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +pata_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_pata_module_SOURCES) +CLEANFILES += $(nodist_pata_module_SOURCES) +MOD_FILES += pata.mod +MARKER_FILES += pata.marker +CLEANFILES += pata.marker + +pata.marker: $(pata_module_SOURCES) $(nodist_pata_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pata_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_qemu_mips +platform_PROGRAMS += pata.module +MODULE_FILES += pata.module$(EXEEXT) +pata_module_SOURCES = disk/pata.c ## platform sources +nodist_pata_module_SOURCES = ## platform nodist sources +pata_module_LDADD = +pata_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +pata_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +pata_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +pata_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +pata_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_pata_module_SOURCES) +CLEANFILES += $(nodist_pata_module_SOURCES) +MOD_FILES += pata.mod +MARKER_FILES += pata.marker +CLEANFILES += pata.marker + +pata.marker: $(pata_module_SOURCES) $(nodist_pata_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pata_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += biosdisk.module +MODULE_FILES += biosdisk.module$(EXEEXT) +biosdisk_module_SOURCES = disk/i386/pc/biosdisk.c ## platform sources +nodist_biosdisk_module_SOURCES = ## platform nodist sources +biosdisk_module_LDADD = +biosdisk_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +biosdisk_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +biosdisk_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +biosdisk_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +biosdisk_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_biosdisk_module_SOURCES) +CLEANFILES += $(nodist_biosdisk_module_SOURCES) +MOD_FILES += biosdisk.mod +MARKER_FILES += biosdisk.marker +CLEANFILES += biosdisk.marker + +biosdisk.marker: $(biosdisk_module_SOURCES) $(nodist_biosdisk_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(biosdisk_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += usbms.module +MODULE_FILES += usbms.module$(EXEEXT) +usbms_module_SOURCES = disk/usbms.c ## platform sources +nodist_usbms_module_SOURCES = ## platform nodist sources +usbms_module_LDADD = +usbms_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbms_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbms_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbms_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbms_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbms_module_SOURCES) +CLEANFILES += $(nodist_usbms_module_SOURCES) +MOD_FILES += usbms.mod +MARKER_FILES += usbms.marker +CLEANFILES += usbms.marker + +usbms.marker: $(usbms_module_SOURCES) $(nodist_usbms_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbms_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += usbms.module +MODULE_FILES += usbms.module$(EXEEXT) +usbms_module_SOURCES = disk/usbms.c ## platform sources +nodist_usbms_module_SOURCES = ## platform nodist sources +usbms_module_LDADD = +usbms_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbms_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbms_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbms_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbms_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbms_module_SOURCES) +CLEANFILES += $(nodist_usbms_module_SOURCES) +MOD_FILES += usbms.mod +MARKER_FILES += usbms.marker +CLEANFILES += usbms.marker + +usbms.marker: $(usbms_module_SOURCES) $(nodist_usbms_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbms_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += usbms.module +MODULE_FILES += usbms.module$(EXEEXT) +usbms_module_SOURCES = disk/usbms.c ## platform sources +nodist_usbms_module_SOURCES = ## platform nodist sources +usbms_module_LDADD = +usbms_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbms_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbms_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbms_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbms_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbms_module_SOURCES) +CLEANFILES += $(nodist_usbms_module_SOURCES) +MOD_FILES += usbms.mod +MARKER_FILES += usbms.marker +CLEANFILES += usbms.marker + +usbms.marker: $(usbms_module_SOURCES) $(nodist_usbms_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbms_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += usbms.module +MODULE_FILES += usbms.module$(EXEEXT) +usbms_module_SOURCES = disk/usbms.c ## platform sources +nodist_usbms_module_SOURCES = ## platform nodist sources +usbms_module_LDADD = +usbms_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbms_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbms_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbms_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbms_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbms_module_SOURCES) +CLEANFILES += $(nodist_usbms_module_SOURCES) +MOD_FILES += usbms.mod +MARKER_FILES += usbms.marker +CLEANFILES += usbms.marker + +usbms.marker: $(usbms_module_SOURCES) $(nodist_usbms_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbms_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += usbms.module +MODULE_FILES += usbms.module$(EXEEXT) +usbms_module_SOURCES = disk/usbms.c ## platform sources +nodist_usbms_module_SOURCES = ## platform nodist sources +usbms_module_LDADD = +usbms_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbms_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbms_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbms_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbms_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbms_module_SOURCES) +CLEANFILES += $(nodist_usbms_module_SOURCES) +MOD_FILES += usbms.mod +MARKER_FILES += usbms.marker +CLEANFILES += usbms.marker + +usbms.marker: $(usbms_module_SOURCES) $(nodist_usbms_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbms_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += usbms.module +MODULE_FILES += usbms.module$(EXEEXT) +usbms_module_SOURCES = disk/usbms.c ## platform sources +nodist_usbms_module_SOURCES = ## platform nodist sources +usbms_module_LDADD = +usbms_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbms_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbms_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbms_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbms_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbms_module_SOURCES) +CLEANFILES += $(nodist_usbms_module_SOURCES) +MOD_FILES += usbms.mod +MARKER_FILES += usbms.marker +CLEANFILES += usbms.marker + +usbms.marker: $(usbms_module_SOURCES) $(nodist_usbms_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbms_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += usbms.module +MODULE_FILES += usbms.module$(EXEEXT) +usbms_module_SOURCES = disk/usbms.c ## platform sources +nodist_usbms_module_SOURCES = ## platform nodist sources +usbms_module_LDADD = +usbms_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbms_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbms_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbms_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbms_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbms_module_SOURCES) +CLEANFILES += $(nodist_usbms_module_SOURCES) +MOD_FILES += usbms.mod +MARKER_FILES += usbms.marker +CLEANFILES += usbms.marker + +usbms.marker: $(usbms_module_SOURCES) $(nodist_usbms_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbms_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_loongson +platform_PROGRAMS += usbms.module +MODULE_FILES += usbms.module$(EXEEXT) +usbms_module_SOURCES = disk/usbms.c ## platform sources +nodist_usbms_module_SOURCES = ## platform nodist sources +usbms_module_LDADD = +usbms_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbms_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbms_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbms_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbms_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbms_module_SOURCES) +CLEANFILES += $(nodist_usbms_module_SOURCES) +MOD_FILES += usbms.mod +MARKER_FILES += usbms.marker +CLEANFILES += usbms.marker + +usbms.marker: $(usbms_module_SOURCES) $(nodist_usbms_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbms_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_coreboot +platform_PROGRAMS += usbms.module +MODULE_FILES += usbms.module$(EXEEXT) +usbms_module_SOURCES = disk/usbms.c ## platform sources +nodist_usbms_module_SOURCES = ## platform nodist sources +usbms_module_LDADD = +usbms_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usbms_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usbms_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usbms_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usbms_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usbms_module_SOURCES) +CLEANFILES += $(nodist_usbms_module_SOURCES) +MOD_FILES += usbms.mod +MARKER_FILES += usbms.marker +CLEANFILES += usbms.marker + +usbms.marker: $(usbms_module_SOURCES) $(nodist_usbms_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usbms_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += nand.module +MODULE_FILES += nand.module$(EXEEXT) +nand_module_SOURCES = disk/ieee1275/nand.c ## platform sources +nodist_nand_module_SOURCES = ## platform nodist sources +nand_module_LDADD = +nand_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +nand_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +nand_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +nand_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +nand_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_nand_module_SOURCES) +CLEANFILES += $(nodist_nand_module_SOURCES) +MOD_FILES += nand.mod +MARKER_FILES += nand.marker +CLEANFILES += nand.marker + +nand.marker: $(nand_module_SOURCES) $(nodist_nand_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(nand_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += efiemu.module +MODULE_FILES += efiemu.module$(EXEEXT) +efiemu_module_SOURCES = efiemu/i386/pc/cfgtables.c efiemu/main.c efiemu/i386/loadcore32.c efiemu/i386/loadcore64.c efiemu/mm.c efiemu/loadcore_common.c efiemu/symbols.c efiemu/loadcore32.c efiemu/loadcore64.c efiemu/prepare32.c efiemu/prepare64.c efiemu/pnvram.c efiemu/i386/coredetect.c ## platform sources +nodist_efiemu_module_SOURCES = ## platform nodist sources +efiemu_module_LDADD = +efiemu_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +efiemu_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +efiemu_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +efiemu_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +efiemu_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += efiemu/prepare.c efiemu/loadcore.c efiemu/runtime/efiemu.S efiemu/runtime/efiemu.c +BUILT_SOURCES += $(nodist_efiemu_module_SOURCES) +CLEANFILES += $(nodist_efiemu_module_SOURCES) +MOD_FILES += efiemu.mod +MARKER_FILES += efiemu.marker +CLEANFILES += efiemu.marker + +efiemu.marker: $(efiemu_module_SOURCES) $(nodist_efiemu_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(efiemu_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += efiemu.module +MODULE_FILES += efiemu.module$(EXEEXT) +efiemu_module_SOURCES = efiemu/i386/nocfgtables.c efiemu/main.c efiemu/i386/loadcore32.c efiemu/i386/loadcore64.c efiemu/mm.c efiemu/loadcore_common.c efiemu/symbols.c efiemu/loadcore32.c efiemu/loadcore64.c efiemu/prepare32.c efiemu/prepare64.c efiemu/pnvram.c efiemu/i386/coredetect.c ## platform sources +nodist_efiemu_module_SOURCES = ## platform nodist sources +efiemu_module_LDADD = +efiemu_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +efiemu_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +efiemu_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +efiemu_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +efiemu_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += efiemu/prepare.c efiemu/loadcore.c efiemu/runtime/efiemu.S efiemu/runtime/efiemu.c +BUILT_SOURCES += $(nodist_efiemu_module_SOURCES) +CLEANFILES += $(nodist_efiemu_module_SOURCES) +MOD_FILES += efiemu.mod +MARKER_FILES += efiemu.marker +CLEANFILES += efiemu.marker + +efiemu.marker: $(efiemu_module_SOURCES) $(nodist_efiemu_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(efiemu_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += efiemu.module +MODULE_FILES += efiemu.module$(EXEEXT) +efiemu_module_SOURCES = efiemu/i386/pc/cfgtables.c efiemu/main.c efiemu/i386/loadcore32.c efiemu/i386/loadcore64.c efiemu/mm.c efiemu/loadcore_common.c efiemu/symbols.c efiemu/loadcore32.c efiemu/loadcore64.c efiemu/prepare32.c efiemu/prepare64.c efiemu/pnvram.c efiemu/i386/coredetect.c ## platform sources +nodist_efiemu_module_SOURCES = ## platform nodist sources +efiemu_module_LDADD = +efiemu_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +efiemu_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +efiemu_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +efiemu_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +efiemu_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += efiemu/prepare.c efiemu/loadcore.c efiemu/runtime/efiemu.S efiemu/runtime/efiemu.c +BUILT_SOURCES += $(nodist_efiemu_module_SOURCES) +CLEANFILES += $(nodist_efiemu_module_SOURCES) +MOD_FILES += efiemu.mod +MARKER_FILES += efiemu.marker +CLEANFILES += efiemu.marker + +efiemu.marker: $(efiemu_module_SOURCES) $(nodist_efiemu_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(efiemu_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += efiemu.module +MODULE_FILES += efiemu.module$(EXEEXT) +efiemu_module_SOURCES = efiemu/i386/pc/cfgtables.c efiemu/main.c efiemu/i386/loadcore32.c efiemu/i386/loadcore64.c efiemu/mm.c efiemu/loadcore_common.c efiemu/symbols.c efiemu/loadcore32.c efiemu/loadcore64.c efiemu/prepare32.c efiemu/prepare64.c efiemu/pnvram.c efiemu/i386/coredetect.c ## platform sources +nodist_efiemu_module_SOURCES = ## platform nodist sources +efiemu_module_LDADD = +efiemu_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +efiemu_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +efiemu_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +efiemu_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +efiemu_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += efiemu/prepare.c efiemu/loadcore.c efiemu/runtime/efiemu.S efiemu/runtime/efiemu.c +BUILT_SOURCES += $(nodist_efiemu_module_SOURCES) +CLEANFILES += $(nodist_efiemu_module_SOURCES) +MOD_FILES += efiemu.mod +MARKER_FILES += efiemu.marker +CLEANFILES += efiemu.marker + +efiemu.marker: $(efiemu_module_SOURCES) $(nodist_efiemu_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(efiemu_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += efiemu.module +MODULE_FILES += efiemu.module$(EXEEXT) +efiemu_module_SOURCES = efiemu/i386/nocfgtables.c efiemu/main.c efiemu/i386/loadcore32.c efiemu/i386/loadcore64.c efiemu/mm.c efiemu/loadcore_common.c efiemu/symbols.c efiemu/loadcore32.c efiemu/loadcore64.c efiemu/prepare32.c efiemu/prepare64.c efiemu/pnvram.c efiemu/i386/coredetect.c ## platform sources +nodist_efiemu_module_SOURCES = ## platform nodist sources +efiemu_module_LDADD = +efiemu_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +efiemu_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +efiemu_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +efiemu_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +efiemu_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += efiemu/prepare.c efiemu/loadcore.c efiemu/runtime/efiemu.S efiemu/runtime/efiemu.c +BUILT_SOURCES += $(nodist_efiemu_module_SOURCES) +CLEANFILES += $(nodist_efiemu_module_SOURCES) +MOD_FILES += efiemu.mod +MARKER_FILES += efiemu.marker +CLEANFILES += efiemu.marker + +efiemu.marker: $(efiemu_module_SOURCES) $(nodist_efiemu_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(efiemu_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_emu +platform_PROGRAMS += font.module +MODULE_FILES += font.module$(EXEEXT) +font_module_SOURCES = font/font.c font/font_cmd.c ## platform sources +nodist_font_module_SOURCES = ## platform nodist sources +font_module_LDADD = +font_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +font_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +font_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +font_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +font_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_font_module_SOURCES) +CLEANFILES += $(nodist_font_module_SOURCES) +MOD_FILES += font.mod +MARKER_FILES += font.marker +CLEANFILES += font.marker + +font.marker: $(font_module_SOURCES) $(nodist_font_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(font_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += font.module +MODULE_FILES += font.module$(EXEEXT) +font_module_SOURCES = font/font.c font/font_cmd.c ## platform sources +nodist_font_module_SOURCES = ## platform nodist sources +font_module_LDADD = +font_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +font_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +font_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +font_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +font_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_font_module_SOURCES) +CLEANFILES += $(nodist_font_module_SOURCES) +MOD_FILES += font.mod +MARKER_FILES += font.marker +CLEANFILES += font.marker + +font.marker: $(font_module_SOURCES) $(nodist_font_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(font_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += font.module +MODULE_FILES += font.module$(EXEEXT) +font_module_SOURCES = font/font.c font/font_cmd.c ## platform sources +nodist_font_module_SOURCES = ## platform nodist sources +font_module_LDADD = +font_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +font_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +font_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +font_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +font_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_font_module_SOURCES) +CLEANFILES += $(nodist_font_module_SOURCES) +MOD_FILES += font.mod +MARKER_FILES += font.marker +CLEANFILES += font.marker + +font.marker: $(font_module_SOURCES) $(nodist_font_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(font_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += font.module +MODULE_FILES += font.module$(EXEEXT) +font_module_SOURCES = font/font.c font/font_cmd.c ## platform sources +nodist_font_module_SOURCES = ## platform nodist sources +font_module_LDADD = +font_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +font_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +font_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +font_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +font_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_font_module_SOURCES) +CLEANFILES += $(nodist_font_module_SOURCES) +MOD_FILES += font.mod +MARKER_FILES += font.marker +CLEANFILES += font.marker + +font.marker: $(font_module_SOURCES) $(nodist_font_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(font_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += font.module +MODULE_FILES += font.module$(EXEEXT) +font_module_SOURCES = font/font.c font/font_cmd.c ## platform sources +nodist_font_module_SOURCES = ## platform nodist sources +font_module_LDADD = +font_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +font_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +font_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +font_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +font_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_font_module_SOURCES) +CLEANFILES += $(nodist_font_module_SOURCES) +MOD_FILES += font.mod +MARKER_FILES += font.marker +CLEANFILES += font.marker + +font.marker: $(font_module_SOURCES) $(nodist_font_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(font_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += font.module +MODULE_FILES += font.module$(EXEEXT) +font_module_SOURCES = font/font.c font/font_cmd.c ## platform sources +nodist_font_module_SOURCES = ## platform nodist sources +font_module_LDADD = +font_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +font_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +font_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +font_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +font_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_font_module_SOURCES) +CLEANFILES += $(nodist_font_module_SOURCES) +MOD_FILES += font.mod +MARKER_FILES += font.marker +CLEANFILES += font.marker + +font.marker: $(font_module_SOURCES) $(nodist_font_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(font_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += font.module +MODULE_FILES += font.module$(EXEEXT) +font_module_SOURCES = font/font.c font/font_cmd.c ## platform sources +nodist_font_module_SOURCES = ## platform nodist sources +font_module_LDADD = +font_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +font_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +font_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +font_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +font_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_font_module_SOURCES) +CLEANFILES += $(nodist_font_module_SOURCES) +MOD_FILES += font.mod +MARKER_FILES += font.marker +CLEANFILES += font.marker + +font.marker: $(font_module_SOURCES) $(nodist_font_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(font_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_xen +platform_PROGRAMS += font.module +MODULE_FILES += font.module$(EXEEXT) +font_module_SOURCES = font/font.c font/font_cmd.c ## platform sources +nodist_font_module_SOURCES = ## platform nodist sources +font_module_LDADD = +font_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +font_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +font_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +font_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +font_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_font_module_SOURCES) +CLEANFILES += $(nodist_font_module_SOURCES) +MOD_FILES += font.mod +MARKER_FILES += font.marker +CLEANFILES += font.marker + +font.marker: $(font_module_SOURCES) $(nodist_font_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(font_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_xen +platform_PROGRAMS += font.module +MODULE_FILES += font.module$(EXEEXT) +font_module_SOURCES = font/font.c font/font_cmd.c ## platform sources +nodist_font_module_SOURCES = ## platform nodist sources +font_module_LDADD = +font_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +font_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +font_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +font_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +font_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_font_module_SOURCES) +CLEANFILES += $(nodist_font_module_SOURCES) +MOD_FILES += font.mod +MARKER_FILES += font.marker +CLEANFILES += font.marker + +font.marker: $(font_module_SOURCES) $(nodist_font_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(font_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_xen_pvh +platform_PROGRAMS += font.module +MODULE_FILES += font.module$(EXEEXT) +font_module_SOURCES = font/font.c font/font_cmd.c ## platform sources +nodist_font_module_SOURCES = ## platform nodist sources +font_module_LDADD = +font_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +font_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +font_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +font_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +font_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_font_module_SOURCES) +CLEANFILES += $(nodist_font_module_SOURCES) +MOD_FILES += font.mod +MARKER_FILES += font.marker +CLEANFILES += font.marker + +font.marker: $(font_module_SOURCES) $(nodist_font_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(font_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_sparc64_ieee1275 +platform_PROGRAMS += font.module +MODULE_FILES += font.module$(EXEEXT) +font_module_SOURCES = font/font.c font/font_cmd.c ## platform sources +nodist_font_module_SOURCES = ## platform nodist sources +font_module_LDADD = +font_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +font_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +font_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +font_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +font_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_font_module_SOURCES) +CLEANFILES += $(nodist_font_module_SOURCES) +MOD_FILES += font.mod +MARKER_FILES += font.marker +CLEANFILES += font.marker + +font.marker: $(font_module_SOURCES) $(nodist_font_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(font_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_powerpc_ieee1275 +platform_PROGRAMS += font.module +MODULE_FILES += font.module$(EXEEXT) +font_module_SOURCES = font/font.c font/font_cmd.c ## platform sources +nodist_font_module_SOURCES = ## platform nodist sources +font_module_LDADD = +font_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +font_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +font_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +font_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +font_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_font_module_SOURCES) +CLEANFILES += $(nodist_font_module_SOURCES) +MOD_FILES += font.mod +MARKER_FILES += font.marker +CLEANFILES += font.marker + +font.marker: $(font_module_SOURCES) $(nodist_font_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(font_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_arc +platform_PROGRAMS += font.module +MODULE_FILES += font.module$(EXEEXT) +font_module_SOURCES = font/font.c font/font_cmd.c ## platform sources +nodist_font_module_SOURCES = ## platform nodist sources +font_module_LDADD = +font_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +font_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +font_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +font_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +font_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_font_module_SOURCES) +CLEANFILES += $(nodist_font_module_SOURCES) +MOD_FILES += font.mod +MARKER_FILES += font.marker +CLEANFILES += font.marker + +font.marker: $(font_module_SOURCES) $(nodist_font_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(font_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_ia64_efi +platform_PROGRAMS += font.module +MODULE_FILES += font.module$(EXEEXT) +font_module_SOURCES = font/font.c font/font_cmd.c ## platform sources +nodist_font_module_SOURCES = ## platform nodist sources +font_module_LDADD = +font_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +font_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +font_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +font_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +font_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_font_module_SOURCES) +CLEANFILES += $(nodist_font_module_SOURCES) +MOD_FILES += font.mod +MARKER_FILES += font.marker +CLEANFILES += font.marker + +font.marker: $(font_module_SOURCES) $(nodist_font_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(font_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_qemu_mips +platform_PROGRAMS += font.module +MODULE_FILES += font.module$(EXEEXT) +font_module_SOURCES = font/font.c font/font_cmd.c ## platform sources +nodist_font_module_SOURCES = ## platform nodist sources +font_module_LDADD = +font_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +font_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +font_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +font_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +font_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_font_module_SOURCES) +CLEANFILES += $(nodist_font_module_SOURCES) +MOD_FILES += font.mod +MARKER_FILES += font.marker +CLEANFILES += font.marker + +font.marker: $(font_module_SOURCES) $(nodist_font_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(font_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_uboot +platform_PROGRAMS += font.module +MODULE_FILES += font.module$(EXEEXT) +font_module_SOURCES = font/font.c font/font_cmd.c ## platform sources +nodist_font_module_SOURCES = ## platform nodist sources +font_module_LDADD = +font_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +font_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +font_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +font_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +font_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_font_module_SOURCES) +CLEANFILES += $(nodist_font_module_SOURCES) +MOD_FILES += font.mod +MARKER_FILES += font.marker +CLEANFILES += font.marker + +font.marker: $(font_module_SOURCES) $(nodist_font_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(font_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_efi +platform_PROGRAMS += font.module +MODULE_FILES += font.module$(EXEEXT) +font_module_SOURCES = font/font.c font/font_cmd.c ## platform sources +nodist_font_module_SOURCES = ## platform nodist sources +font_module_LDADD = +font_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +font_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +font_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +font_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +font_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_font_module_SOURCES) +CLEANFILES += $(nodist_font_module_SOURCES) +MOD_FILES += font.mod +MARKER_FILES += font.marker +CLEANFILES += font.marker + +font.marker: $(font_module_SOURCES) $(nodist_font_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(font_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm64_efi +platform_PROGRAMS += font.module +MODULE_FILES += font.module$(EXEEXT) +font_module_SOURCES = font/font.c font/font_cmd.c ## platform sources +nodist_font_module_SOURCES = ## platform nodist sources +font_module_LDADD = +font_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +font_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +font_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +font_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +font_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_font_module_SOURCES) +CLEANFILES += $(nodist_font_module_SOURCES) +MOD_FILES += font.mod +MARKER_FILES += font.marker +CLEANFILES += font.marker + +font.marker: $(font_module_SOURCES) $(nodist_font_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(font_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv32_efi +platform_PROGRAMS += font.module +MODULE_FILES += font.module$(EXEEXT) +font_module_SOURCES = font/font.c font/font_cmd.c ## platform sources +nodist_font_module_SOURCES = ## platform nodist sources +font_module_LDADD = +font_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +font_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +font_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +font_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +font_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_font_module_SOURCES) +CLEANFILES += $(nodist_font_module_SOURCES) +MOD_FILES += font.mod +MARKER_FILES += font.marker +CLEANFILES += font.marker + +font.marker: $(font_module_SOURCES) $(nodist_font_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(font_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv64_efi +platform_PROGRAMS += font.module +MODULE_FILES += font.module$(EXEEXT) +font_module_SOURCES = font/font.c font/font_cmd.c ## platform sources +nodist_font_module_SOURCES = ## platform nodist sources +font_module_LDADD = +font_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +font_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +font_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +font_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +font_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_font_module_SOURCES) +CLEANFILES += $(nodist_font_module_SOURCES) +MOD_FILES += font.mod +MARKER_FILES += font.marker +CLEANFILES += font.marker + +font.marker: $(font_module_SOURCES) $(nodist_font_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(font_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif +platform_PROGRAMS += procfs.module +MODULE_FILES += procfs.module$(EXEEXT) +procfs_module_SOURCES = fs/proc.c ## platform sources +nodist_procfs_module_SOURCES = ## platform nodist sources +procfs_module_LDADD = +procfs_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +procfs_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +procfs_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +procfs_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +procfs_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_procfs_module_SOURCES) +CLEANFILES += $(nodist_procfs_module_SOURCES) +MOD_FILES += procfs.mod +MARKER_FILES += procfs.marker +CLEANFILES += procfs.marker + +procfs.marker: $(procfs_module_SOURCES) $(nodist_procfs_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(procfs_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += affs.module +MODULE_FILES += affs.module$(EXEEXT) +affs_module_SOURCES = fs/affs.c ## platform sources +nodist_affs_module_SOURCES = ## platform nodist sources +affs_module_LDADD = +affs_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +affs_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +affs_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +affs_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +affs_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_affs_module_SOURCES) +CLEANFILES += $(nodist_affs_module_SOURCES) +MOD_FILES += affs.mod +MARKER_FILES += affs.marker +CLEANFILES += affs.marker + +affs.marker: $(affs_module_SOURCES) $(nodist_affs_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(affs_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += afs.module +MODULE_FILES += afs.module$(EXEEXT) +afs_module_SOURCES = fs/afs.c ## platform sources +nodist_afs_module_SOURCES = ## platform nodist sources +afs_module_LDADD = +afs_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +afs_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +afs_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +afs_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +afs_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_afs_module_SOURCES) +CLEANFILES += $(nodist_afs_module_SOURCES) +MOD_FILES += afs.mod +MARKER_FILES += afs.marker +CLEANFILES += afs.marker + +afs.marker: $(afs_module_SOURCES) $(nodist_afs_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(afs_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += bfs.module +MODULE_FILES += bfs.module$(EXEEXT) +bfs_module_SOURCES = fs/bfs.c ## platform sources +nodist_bfs_module_SOURCES = ## platform nodist sources +bfs_module_LDADD = +bfs_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +bfs_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +bfs_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +bfs_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +bfs_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_bfs_module_SOURCES) +CLEANFILES += $(nodist_bfs_module_SOURCES) +MOD_FILES += bfs.mod +MARKER_FILES += bfs.marker +CLEANFILES += bfs.marker + +bfs.marker: $(bfs_module_SOURCES) $(nodist_bfs_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bfs_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += zstd.module +MODULE_FILES += zstd.module$(EXEEXT) +zstd_module_SOURCES = lib/zstd/debug.c lib/zstd/entropy_common.c lib/zstd/error_private.c lib/zstd/fse_decompress.c lib/zstd/huf_decompress.c lib/zstd/module.c lib/zstd/xxhash.c lib/zstd/zstd_common.c lib/zstd/zstd_decompress.c ## platform sources +nodist_zstd_module_SOURCES = ## platform nodist sources +zstd_module_LDADD = +zstd_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) $(CFLAGS_POSIX) -Wno-undef +zstd_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +zstd_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) -I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/zstd +zstd_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +zstd_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_zstd_module_SOURCES) +CLEANFILES += $(nodist_zstd_module_SOURCES) +MOD_FILES += zstd.mod +MARKER_FILES += zstd.marker +CLEANFILES += zstd.marker + +zstd.marker: $(zstd_module_SOURCES) $(nodist_zstd_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zstd_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += btrfs.module +MODULE_FILES += btrfs.module$(EXEEXT) +btrfs_module_SOURCES = fs/btrfs.c lib/crc.c ## platform sources +nodist_btrfs_module_SOURCES = ## platform nodist sources +btrfs_module_LDADD = +btrfs_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) $(CFLAGS_POSIX) -Wno-undef +btrfs_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +btrfs_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) -I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/minilzo -I$(srcdir)/lib/zstd -DMINILZO_HAVE_CONFIG_H +btrfs_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +btrfs_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_btrfs_module_SOURCES) +CLEANFILES += $(nodist_btrfs_module_SOURCES) +MOD_FILES += btrfs.mod +MARKER_FILES += btrfs.marker +CLEANFILES += btrfs.marker + +btrfs.marker: $(btrfs_module_SOURCES) $(nodist_btrfs_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(btrfs_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += archelp.module +MODULE_FILES += archelp.module$(EXEEXT) +archelp_module_SOURCES = fs/archelp.c ## platform sources +nodist_archelp_module_SOURCES = ## platform nodist sources +archelp_module_LDADD = +archelp_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +archelp_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +archelp_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +archelp_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +archelp_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_archelp_module_SOURCES) +CLEANFILES += $(nodist_archelp_module_SOURCES) +MOD_FILES += archelp.mod +MARKER_FILES += archelp.marker +CLEANFILES += archelp.marker + +archelp.marker: $(archelp_module_SOURCES) $(nodist_archelp_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(archelp_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += cbfs.module +MODULE_FILES += cbfs.module$(EXEEXT) +cbfs_module_SOURCES = fs/cbfs.c ## platform sources +nodist_cbfs_module_SOURCES = ## platform nodist sources +cbfs_module_LDADD = +cbfs_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cbfs_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cbfs_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cbfs_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cbfs_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cbfs_module_SOURCES) +CLEANFILES += $(nodist_cbfs_module_SOURCES) +MOD_FILES += cbfs.mod +MARKER_FILES += cbfs.marker +CLEANFILES += cbfs.marker + +cbfs.marker: $(cbfs_module_SOURCES) $(nodist_cbfs_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cbfs_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += cpio.module +MODULE_FILES += cpio.module$(EXEEXT) +cpio_module_SOURCES = fs/cpio.c ## platform sources +nodist_cpio_module_SOURCES = ## platform nodist sources +cpio_module_LDADD = +cpio_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cpio_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cpio_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cpio_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cpio_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cpio_module_SOURCES) +CLEANFILES += $(nodist_cpio_module_SOURCES) +MOD_FILES += cpio.mod +MARKER_FILES += cpio.marker +CLEANFILES += cpio.marker + +cpio.marker: $(cpio_module_SOURCES) $(nodist_cpio_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cpio_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += cpio_be.module +MODULE_FILES += cpio_be.module$(EXEEXT) +cpio_be_module_SOURCES = fs/cpio_be.c ## platform sources +nodist_cpio_be_module_SOURCES = ## platform nodist sources +cpio_be_module_LDADD = +cpio_be_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cpio_be_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cpio_be_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cpio_be_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cpio_be_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cpio_be_module_SOURCES) +CLEANFILES += $(nodist_cpio_be_module_SOURCES) +MOD_FILES += cpio_be.mod +MARKER_FILES += cpio_be.marker +CLEANFILES += cpio_be.marker + +cpio_be.marker: $(cpio_be_module_SOURCES) $(nodist_cpio_be_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cpio_be_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += newc.module +MODULE_FILES += newc.module$(EXEEXT) +newc_module_SOURCES = fs/newc.c ## platform sources +nodist_newc_module_SOURCES = ## platform nodist sources +newc_module_LDADD = +newc_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +newc_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +newc_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +newc_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +newc_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_newc_module_SOURCES) +CLEANFILES += $(nodist_newc_module_SOURCES) +MOD_FILES += newc.mod +MARKER_FILES += newc.marker +CLEANFILES += newc.marker + +newc.marker: $(newc_module_SOURCES) $(nodist_newc_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(newc_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += odc.module +MODULE_FILES += odc.module$(EXEEXT) +odc_module_SOURCES = fs/odc.c ## platform sources +nodist_odc_module_SOURCES = ## platform nodist sources +odc_module_LDADD = +odc_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +odc_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +odc_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +odc_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +odc_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_odc_module_SOURCES) +CLEANFILES += $(nodist_odc_module_SOURCES) +MOD_FILES += odc.mod +MARKER_FILES += odc.marker +CLEANFILES += odc.marker + +odc.marker: $(odc_module_SOURCES) $(nodist_odc_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(odc_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += ext2.module +MODULE_FILES += ext2.module$(EXEEXT) +ext2_module_SOURCES = fs/ext2.c ## platform sources +nodist_ext2_module_SOURCES = ## platform nodist sources +ext2_module_LDADD = +ext2_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +ext2_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +ext2_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +ext2_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +ext2_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_ext2_module_SOURCES) +CLEANFILES += $(nodist_ext2_module_SOURCES) +MOD_FILES += ext2.mod +MARKER_FILES += ext2.marker +CLEANFILES += ext2.marker + +ext2.marker: $(ext2_module_SOURCES) $(nodist_ext2_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ext2_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += fat.module +MODULE_FILES += fat.module$(EXEEXT) +fat_module_SOURCES = fs/fat.c ## platform sources +nodist_fat_module_SOURCES = ## platform nodist sources +fat_module_LDADD = +fat_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +fat_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +fat_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +fat_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +fat_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_fat_module_SOURCES) +CLEANFILES += $(nodist_fat_module_SOURCES) +MOD_FILES += fat.mod +MARKER_FILES += fat.marker +CLEANFILES += fat.marker + +fat.marker: $(fat_module_SOURCES) $(nodist_fat_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(fat_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += exfat.module +MODULE_FILES += exfat.module$(EXEEXT) +exfat_module_SOURCES = fs/exfat.c ## platform sources +nodist_exfat_module_SOURCES = ## platform nodist sources +exfat_module_LDADD = +exfat_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +exfat_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +exfat_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +exfat_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +exfat_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_exfat_module_SOURCES) +CLEANFILES += $(nodist_exfat_module_SOURCES) +MOD_FILES += exfat.mod +MARKER_FILES += exfat.marker +CLEANFILES += exfat.marker + +exfat.marker: $(exfat_module_SOURCES) $(nodist_exfat_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(exfat_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += f2fs.module +MODULE_FILES += f2fs.module$(EXEEXT) +f2fs_module_SOURCES = fs/f2fs.c ## platform sources +nodist_f2fs_module_SOURCES = ## platform nodist sources +f2fs_module_LDADD = +f2fs_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +f2fs_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +f2fs_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +f2fs_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +f2fs_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_f2fs_module_SOURCES) +CLEANFILES += $(nodist_f2fs_module_SOURCES) +MOD_FILES += f2fs.mod +MARKER_FILES += f2fs.marker +CLEANFILES += f2fs.marker + +f2fs.marker: $(f2fs_module_SOURCES) $(nodist_f2fs_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(f2fs_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += fshelp.module +MODULE_FILES += fshelp.module$(EXEEXT) +fshelp_module_SOURCES = fs/fshelp.c ## platform sources +nodist_fshelp_module_SOURCES = ## platform nodist sources +fshelp_module_LDADD = +fshelp_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +fshelp_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +fshelp_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +fshelp_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +fshelp_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_fshelp_module_SOURCES) +CLEANFILES += $(nodist_fshelp_module_SOURCES) +MOD_FILES += fshelp.mod +MARKER_FILES += fshelp.marker +CLEANFILES += fshelp.marker + +fshelp.marker: $(fshelp_module_SOURCES) $(nodist_fshelp_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(fshelp_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += hfs.module +MODULE_FILES += hfs.module$(EXEEXT) +hfs_module_SOURCES = fs/hfs.c ## platform sources +nodist_hfs_module_SOURCES = ## platform nodist sources +hfs_module_LDADD = +hfs_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +hfs_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +hfs_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +hfs_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +hfs_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_hfs_module_SOURCES) +CLEANFILES += $(nodist_hfs_module_SOURCES) +MOD_FILES += hfs.mod +MARKER_FILES += hfs.marker +CLEANFILES += hfs.marker + +hfs.marker: $(hfs_module_SOURCES) $(nodist_hfs_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hfs_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += hfsplus.module +MODULE_FILES += hfsplus.module$(EXEEXT) +hfsplus_module_SOURCES = fs/hfsplus.c ## platform sources +nodist_hfsplus_module_SOURCES = ## platform nodist sources +hfsplus_module_LDADD = +hfsplus_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +hfsplus_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +hfsplus_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +hfsplus_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +hfsplus_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_hfsplus_module_SOURCES) +CLEANFILES += $(nodist_hfsplus_module_SOURCES) +MOD_FILES += hfsplus.mod +MARKER_FILES += hfsplus.marker +CLEANFILES += hfsplus.marker + +hfsplus.marker: $(hfsplus_module_SOURCES) $(nodist_hfsplus_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hfsplus_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += hfspluscomp.module +MODULE_FILES += hfspluscomp.module$(EXEEXT) +hfspluscomp_module_SOURCES = fs/hfspluscomp.c ## platform sources +nodist_hfspluscomp_module_SOURCES = ## platform nodist sources +hfspluscomp_module_LDADD = +hfspluscomp_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +hfspluscomp_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +hfspluscomp_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +hfspluscomp_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +hfspluscomp_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_hfspluscomp_module_SOURCES) +CLEANFILES += $(nodist_hfspluscomp_module_SOURCES) +MOD_FILES += hfspluscomp.mod +MARKER_FILES += hfspluscomp.marker +CLEANFILES += hfspluscomp.marker + +hfspluscomp.marker: $(hfspluscomp_module_SOURCES) $(nodist_hfspluscomp_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hfspluscomp_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += iso9660.module +MODULE_FILES += iso9660.module$(EXEEXT) +iso9660_module_SOURCES = fs/iso9660.c ## platform sources +nodist_iso9660_module_SOURCES = ## platform nodist sources +iso9660_module_LDADD = +iso9660_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +iso9660_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +iso9660_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +iso9660_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +iso9660_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_iso9660_module_SOURCES) +CLEANFILES += $(nodist_iso9660_module_SOURCES) +MOD_FILES += iso9660.mod +MARKER_FILES += iso9660.marker +CLEANFILES += iso9660.marker + +iso9660.marker: $(iso9660_module_SOURCES) $(nodist_iso9660_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(iso9660_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += jfs.module +MODULE_FILES += jfs.module$(EXEEXT) +jfs_module_SOURCES = fs/jfs.c ## platform sources +nodist_jfs_module_SOURCES = ## platform nodist sources +jfs_module_LDADD = +jfs_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +jfs_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +jfs_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +jfs_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +jfs_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_jfs_module_SOURCES) +CLEANFILES += $(nodist_jfs_module_SOURCES) +MOD_FILES += jfs.mod +MARKER_FILES += jfs.marker +CLEANFILES += jfs.marker + +jfs.marker: $(jfs_module_SOURCES) $(nodist_jfs_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(jfs_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += minix.module +MODULE_FILES += minix.module$(EXEEXT) +minix_module_SOURCES = fs/minix.c ## platform sources +nodist_minix_module_SOURCES = ## platform nodist sources +minix_module_LDADD = +minix_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +minix_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +minix_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +minix_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +minix_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_minix_module_SOURCES) +CLEANFILES += $(nodist_minix_module_SOURCES) +MOD_FILES += minix.mod +MARKER_FILES += minix.marker +CLEANFILES += minix.marker + +minix.marker: $(minix_module_SOURCES) $(nodist_minix_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(minix_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += minix2.module +MODULE_FILES += minix2.module$(EXEEXT) +minix2_module_SOURCES = fs/minix2.c ## platform sources +nodist_minix2_module_SOURCES = ## platform nodist sources +minix2_module_LDADD = +minix2_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +minix2_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +minix2_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +minix2_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +minix2_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_minix2_module_SOURCES) +CLEANFILES += $(nodist_minix2_module_SOURCES) +MOD_FILES += minix2.mod +MARKER_FILES += minix2.marker +CLEANFILES += minix2.marker + +minix2.marker: $(minix2_module_SOURCES) $(nodist_minix2_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(minix2_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += minix3.module +MODULE_FILES += minix3.module$(EXEEXT) +minix3_module_SOURCES = fs/minix3.c ## platform sources +nodist_minix3_module_SOURCES = ## platform nodist sources +minix3_module_LDADD = +minix3_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +minix3_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +minix3_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +minix3_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +minix3_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_minix3_module_SOURCES) +CLEANFILES += $(nodist_minix3_module_SOURCES) +MOD_FILES += minix3.mod +MARKER_FILES += minix3.marker +CLEANFILES += minix3.marker + +minix3.marker: $(minix3_module_SOURCES) $(nodist_minix3_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(minix3_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += minix_be.module +MODULE_FILES += minix_be.module$(EXEEXT) +minix_be_module_SOURCES = fs/minix_be.c ## platform sources +nodist_minix_be_module_SOURCES = ## platform nodist sources +minix_be_module_LDADD = +minix_be_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +minix_be_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +minix_be_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +minix_be_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +minix_be_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_minix_be_module_SOURCES) +CLEANFILES += $(nodist_minix_be_module_SOURCES) +MOD_FILES += minix_be.mod +MARKER_FILES += minix_be.marker +CLEANFILES += minix_be.marker + +minix_be.marker: $(minix_be_module_SOURCES) $(nodist_minix_be_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(minix_be_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += minix2_be.module +MODULE_FILES += minix2_be.module$(EXEEXT) +minix2_be_module_SOURCES = fs/minix2_be.c ## platform sources +nodist_minix2_be_module_SOURCES = ## platform nodist sources +minix2_be_module_LDADD = +minix2_be_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +minix2_be_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +minix2_be_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +minix2_be_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +minix2_be_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_minix2_be_module_SOURCES) +CLEANFILES += $(nodist_minix2_be_module_SOURCES) +MOD_FILES += minix2_be.mod +MARKER_FILES += minix2_be.marker +CLEANFILES += minix2_be.marker + +minix2_be.marker: $(minix2_be_module_SOURCES) $(nodist_minix2_be_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(minix2_be_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += minix3_be.module +MODULE_FILES += minix3_be.module$(EXEEXT) +minix3_be_module_SOURCES = fs/minix3_be.c ## platform sources +nodist_minix3_be_module_SOURCES = ## platform nodist sources +minix3_be_module_LDADD = +minix3_be_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +minix3_be_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +minix3_be_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +minix3_be_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +minix3_be_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_minix3_be_module_SOURCES) +CLEANFILES += $(nodist_minix3_be_module_SOURCES) +MOD_FILES += minix3_be.mod +MARKER_FILES += minix3_be.marker +CLEANFILES += minix3_be.marker + +minix3_be.marker: $(minix3_be_module_SOURCES) $(nodist_minix3_be_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(minix3_be_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += nilfs2.module +MODULE_FILES += nilfs2.module$(EXEEXT) +nilfs2_module_SOURCES = fs/nilfs2.c ## platform sources +nodist_nilfs2_module_SOURCES = ## platform nodist sources +nilfs2_module_LDADD = +nilfs2_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +nilfs2_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +nilfs2_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +nilfs2_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +nilfs2_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_nilfs2_module_SOURCES) +CLEANFILES += $(nodist_nilfs2_module_SOURCES) +MOD_FILES += nilfs2.mod +MARKER_FILES += nilfs2.marker +CLEANFILES += nilfs2.marker + +nilfs2.marker: $(nilfs2_module_SOURCES) $(nodist_nilfs2_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(nilfs2_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += ntfs.module +MODULE_FILES += ntfs.module$(EXEEXT) +ntfs_module_SOURCES = fs/ntfs.c ## platform sources +nodist_ntfs_module_SOURCES = ## platform nodist sources +ntfs_module_LDADD = +ntfs_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +ntfs_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +ntfs_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +ntfs_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +ntfs_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_ntfs_module_SOURCES) +CLEANFILES += $(nodist_ntfs_module_SOURCES) +MOD_FILES += ntfs.mod +MARKER_FILES += ntfs.marker +CLEANFILES += ntfs.marker + +ntfs.marker: $(ntfs_module_SOURCES) $(nodist_ntfs_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ntfs_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += ntfscomp.module +MODULE_FILES += ntfscomp.module$(EXEEXT) +ntfscomp_module_SOURCES = fs/ntfscomp.c ## platform sources +nodist_ntfscomp_module_SOURCES = ## platform nodist sources +ntfscomp_module_LDADD = +ntfscomp_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +ntfscomp_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +ntfscomp_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +ntfscomp_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +ntfscomp_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_ntfscomp_module_SOURCES) +CLEANFILES += $(nodist_ntfscomp_module_SOURCES) +MOD_FILES += ntfscomp.mod +MARKER_FILES += ntfscomp.marker +CLEANFILES += ntfscomp.marker + +ntfscomp.marker: $(ntfscomp_module_SOURCES) $(nodist_ntfscomp_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ntfscomp_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += reiserfs.module +MODULE_FILES += reiserfs.module$(EXEEXT) +reiserfs_module_SOURCES = fs/reiserfs.c ## platform sources +nodist_reiserfs_module_SOURCES = ## platform nodist sources +reiserfs_module_LDADD = +reiserfs_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +reiserfs_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +reiserfs_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +reiserfs_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +reiserfs_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_reiserfs_module_SOURCES) +CLEANFILES += $(nodist_reiserfs_module_SOURCES) +MOD_FILES += reiserfs.mod +MARKER_FILES += reiserfs.marker +CLEANFILES += reiserfs.marker + +reiserfs.marker: $(reiserfs_module_SOURCES) $(nodist_reiserfs_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(reiserfs_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += romfs.module +MODULE_FILES += romfs.module$(EXEEXT) +romfs_module_SOURCES = fs/romfs.c ## platform sources +nodist_romfs_module_SOURCES = ## platform nodist sources +romfs_module_LDADD = +romfs_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +romfs_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +romfs_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +romfs_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +romfs_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_romfs_module_SOURCES) +CLEANFILES += $(nodist_romfs_module_SOURCES) +MOD_FILES += romfs.mod +MARKER_FILES += romfs.marker +CLEANFILES += romfs.marker + +romfs.marker: $(romfs_module_SOURCES) $(nodist_romfs_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(romfs_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += sfs.module +MODULE_FILES += sfs.module$(EXEEXT) +sfs_module_SOURCES = fs/sfs.c ## platform sources +nodist_sfs_module_SOURCES = ## platform nodist sources +sfs_module_LDADD = +sfs_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +sfs_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +sfs_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +sfs_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +sfs_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_sfs_module_SOURCES) +CLEANFILES += $(nodist_sfs_module_SOURCES) +MOD_FILES += sfs.mod +MARKER_FILES += sfs.marker +CLEANFILES += sfs.marker + +sfs.marker: $(sfs_module_SOURCES) $(nodist_sfs_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(sfs_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += squash4.module +MODULE_FILES += squash4.module$(EXEEXT) +squash4_module_SOURCES = fs/squash4.c ## platform sources +nodist_squash4_module_SOURCES = ## platform nodist sources +squash4_module_LDADD = +squash4_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) $(CFLAGS_POSIX) -Wno-undef +squash4_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +squash4_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) -I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/xzembed -I$(srcdir)/lib/minilzo -DMINILZO_HAVE_CONFIG_H +squash4_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +squash4_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_squash4_module_SOURCES) +CLEANFILES += $(nodist_squash4_module_SOURCES) +MOD_FILES += squash4.mod +MARKER_FILES += squash4.marker +CLEANFILES += squash4.marker + +squash4.marker: $(squash4_module_SOURCES) $(nodist_squash4_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(squash4_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += tar.module +MODULE_FILES += tar.module$(EXEEXT) +tar_module_SOURCES = fs/tar.c ## platform sources +nodist_tar_module_SOURCES = ## platform nodist sources +tar_module_LDADD = +tar_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +tar_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +tar_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +tar_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +tar_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_tar_module_SOURCES) +CLEANFILES += $(nodist_tar_module_SOURCES) +MOD_FILES += tar.mod +MARKER_FILES += tar.marker +CLEANFILES += tar.marker + +tar.marker: $(tar_module_SOURCES) $(nodist_tar_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tar_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += udf.module +MODULE_FILES += udf.module$(EXEEXT) +udf_module_SOURCES = fs/udf.c ## platform sources +nodist_udf_module_SOURCES = ## platform nodist sources +udf_module_LDADD = +udf_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +udf_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +udf_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +udf_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +udf_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_udf_module_SOURCES) +CLEANFILES += $(nodist_udf_module_SOURCES) +MOD_FILES += udf.mod +MARKER_FILES += udf.marker +CLEANFILES += udf.marker + +udf.marker: $(udf_module_SOURCES) $(nodist_udf_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(udf_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += ufs1.module +MODULE_FILES += ufs1.module$(EXEEXT) +ufs1_module_SOURCES = fs/ufs.c ## platform sources +nodist_ufs1_module_SOURCES = ## platform nodist sources +ufs1_module_LDADD = +ufs1_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +ufs1_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +ufs1_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +ufs1_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +ufs1_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_ufs1_module_SOURCES) +CLEANFILES += $(nodist_ufs1_module_SOURCES) +MOD_FILES += ufs1.mod +MARKER_FILES += ufs1.marker +CLEANFILES += ufs1.marker + +ufs1.marker: $(ufs1_module_SOURCES) $(nodist_ufs1_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ufs1_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += ufs1_be.module +MODULE_FILES += ufs1_be.module$(EXEEXT) +ufs1_be_module_SOURCES = fs/ufs_be.c ## platform sources +nodist_ufs1_be_module_SOURCES = ## platform nodist sources +ufs1_be_module_LDADD = +ufs1_be_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +ufs1_be_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +ufs1_be_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +ufs1_be_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +ufs1_be_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_ufs1_be_module_SOURCES) +CLEANFILES += $(nodist_ufs1_be_module_SOURCES) +MOD_FILES += ufs1_be.mod +MARKER_FILES += ufs1_be.marker +CLEANFILES += ufs1_be.marker + +ufs1_be.marker: $(ufs1_be_module_SOURCES) $(nodist_ufs1_be_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ufs1_be_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += ufs2.module +MODULE_FILES += ufs2.module$(EXEEXT) +ufs2_module_SOURCES = fs/ufs2.c ## platform sources +nodist_ufs2_module_SOURCES = ## platform nodist sources +ufs2_module_LDADD = +ufs2_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +ufs2_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +ufs2_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +ufs2_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +ufs2_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_ufs2_module_SOURCES) +CLEANFILES += $(nodist_ufs2_module_SOURCES) +MOD_FILES += ufs2.mod +MARKER_FILES += ufs2.marker +CLEANFILES += ufs2.marker + +ufs2.marker: $(ufs2_module_SOURCES) $(nodist_ufs2_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ufs2_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += xfs.module +MODULE_FILES += xfs.module$(EXEEXT) +xfs_module_SOURCES = fs/xfs.c ## platform sources +nodist_xfs_module_SOURCES = ## platform nodist sources +xfs_module_LDADD = +xfs_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +xfs_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +xfs_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +xfs_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +xfs_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_xfs_module_SOURCES) +CLEANFILES += $(nodist_xfs_module_SOURCES) +MOD_FILES += xfs.mod +MARKER_FILES += xfs.marker +CLEANFILES += xfs.marker + +xfs.marker: $(xfs_module_SOURCES) $(nodist_xfs_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xfs_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += zfs.module +MODULE_FILES += zfs.module$(EXEEXT) +zfs_module_SOURCES = fs/zfs/zfs.c fs/zfs/zfs_lzjb.c fs/zfs/zfs_lz4.c fs/zfs/zfs_sha256.c fs/zfs/zfs_fletcher.c ## platform sources +nodist_zfs_module_SOURCES = ## platform nodist sources +zfs_module_LDADD = +zfs_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +zfs_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +zfs_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +zfs_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +zfs_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_zfs_module_SOURCES) +CLEANFILES += $(nodist_zfs_module_SOURCES) +MOD_FILES += zfs.mod +MARKER_FILES += zfs.marker +CLEANFILES += zfs.marker + +zfs.marker: $(zfs_module_SOURCES) $(nodist_zfs_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zfs_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += zfscrypt.module +MODULE_FILES += zfscrypt.module$(EXEEXT) +zfscrypt_module_SOURCES = fs/zfs/zfscrypt.c ## platform sources +nodist_zfscrypt_module_SOURCES = ## platform nodist sources +zfscrypt_module_LDADD = +zfscrypt_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +zfscrypt_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +zfscrypt_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +zfscrypt_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +zfscrypt_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_zfscrypt_module_SOURCES) +CLEANFILES += $(nodist_zfscrypt_module_SOURCES) +MOD_FILES += zfscrypt.mod +MARKER_FILES += zfscrypt.marker +CLEANFILES += zfscrypt.marker + +zfscrypt.marker: $(zfscrypt_module_SOURCES) $(nodist_zfscrypt_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zfscrypt_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += zfsinfo.module +MODULE_FILES += zfsinfo.module$(EXEEXT) +zfsinfo_module_SOURCES = fs/zfs/zfsinfo.c ## platform sources +nodist_zfsinfo_module_SOURCES = ## platform nodist sources +zfsinfo_module_LDADD = +zfsinfo_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +zfsinfo_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +zfsinfo_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +zfsinfo_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +zfsinfo_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_zfsinfo_module_SOURCES) +CLEANFILES += $(nodist_zfsinfo_module_SOURCES) +MOD_FILES += zfsinfo.mod +MARKER_FILES += zfsinfo.marker +CLEANFILES += zfsinfo.marker + +zfsinfo.marker: $(zfsinfo_module_SOURCES) $(nodist_zfsinfo_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(zfsinfo_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += macbless.module +MODULE_FILES += macbless.module$(EXEEXT) +macbless_module_SOURCES = commands/macbless.c ## platform sources +nodist_macbless_module_SOURCES = ## platform nodist sources +macbless_module_LDADD = +macbless_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +macbless_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +macbless_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +macbless_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +macbless_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_macbless_module_SOURCES) +CLEANFILES += $(nodist_macbless_module_SOURCES) +MOD_FILES += macbless.mod +MARKER_FILES += macbless.marker +CLEANFILES += macbless.marker + +macbless.marker: $(macbless_module_SOURCES) $(nodist_macbless_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(macbless_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new + +if COND_i386_pc +platform_PROGRAMS += pxe.module +MODULE_FILES += pxe.module$(EXEEXT) +pxe_module_SOURCES = net/drivers/i386/pc/pxe.c ## platform sources +nodist_pxe_module_SOURCES = ## platform nodist sources +pxe_module_LDADD = +pxe_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +pxe_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +pxe_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +pxe_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +pxe_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_pxe_module_SOURCES) +CLEANFILES += $(nodist_pxe_module_SOURCES) +MOD_FILES += pxe.mod +MARKER_FILES += pxe.marker +CLEANFILES += pxe.marker + +pxe.marker: $(pxe_module_SOURCES) $(nodist_pxe_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pxe_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif +platform_PROGRAMS += gettext.module +MODULE_FILES += gettext.module$(EXEEXT) +gettext_module_SOURCES = gettext/gettext.c ## platform sources +nodist_gettext_module_SOURCES = ## platform nodist sources +gettext_module_LDADD = +gettext_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +gettext_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gettext_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +gettext_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gettext_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gettext_module_SOURCES) +CLEANFILES += $(nodist_gettext_module_SOURCES) +MOD_FILES += gettext.mod +MARKER_FILES += gettext.marker +CLEANFILES += gettext.marker + +gettext.marker: $(gettext_module_SOURCES) $(nodist_gettext_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gettext_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += gfxmenu.module +MODULE_FILES += gfxmenu.module$(EXEEXT) +gfxmenu_module_SOURCES = gfxmenu/gfxmenu.c gfxmenu/view.c gfxmenu/font.c gfxmenu/icon_manager.c gfxmenu/theme_loader.c gfxmenu/widget-box.c gfxmenu/gui_canvas.c gfxmenu/gui_circular_progress.c gfxmenu/gui_box.c gfxmenu/gui_label.c gfxmenu/gui_list.c gfxmenu/gui_image.c gfxmenu/gui_progress_bar.c gfxmenu/gui_util.c gfxmenu/gui_string_util.c ## platform sources +nodist_gfxmenu_module_SOURCES = ## platform nodist sources +gfxmenu_module_LDADD = +gfxmenu_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +gfxmenu_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gfxmenu_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +gfxmenu_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gfxmenu_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gfxmenu_module_SOURCES) +CLEANFILES += $(nodist_gfxmenu_module_SOURCES) +MOD_FILES += gfxmenu.mod +MARKER_FILES += gfxmenu.marker +CLEANFILES += gfxmenu.marker + +gfxmenu.marker: $(gfxmenu_module_SOURCES) $(nodist_gfxmenu_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gfxmenu_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += hello.module +MODULE_FILES += hello.module$(EXEEXT) +hello_module_SOURCES = hello/hello.c ## platform sources +nodist_hello_module_SOURCES = ## platform nodist sources +hello_module_LDADD = +hello_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +hello_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +hello_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +hello_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +hello_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_hello_module_SOURCES) +CLEANFILES += $(nodist_hello_module_SOURCES) +MOD_FILES += hello.mod +MARKER_FILES += hello.marker +CLEANFILES += hello.marker + +hello.marker: $(hello_module_SOURCES) $(nodist_hello_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hello_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += gzio.module +MODULE_FILES += gzio.module$(EXEEXT) +gzio_module_SOURCES = io/gzio.c ## platform sources +nodist_gzio_module_SOURCES = ## platform nodist sources +gzio_module_LDADD = +gzio_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +gzio_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gzio_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +gzio_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gzio_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gzio_module_SOURCES) +CLEANFILES += $(nodist_gzio_module_SOURCES) +MOD_FILES += gzio.mod +MARKER_FILES += gzio.marker +CLEANFILES += gzio.marker + +gzio.marker: $(gzio_module_SOURCES) $(nodist_gzio_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gzio_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += offsetio.module +MODULE_FILES += offsetio.module$(EXEEXT) +offsetio_module_SOURCES = io/offset.c ## platform sources +nodist_offsetio_module_SOURCES = ## platform nodist sources +offsetio_module_LDADD = +offsetio_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +offsetio_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +offsetio_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +offsetio_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +offsetio_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_offsetio_module_SOURCES) +CLEANFILES += $(nodist_offsetio_module_SOURCES) +MOD_FILES += offsetio.mod +MARKER_FILES += offsetio.marker +CLEANFILES += offsetio.marker + +offsetio.marker: $(offsetio_module_SOURCES) $(nodist_offsetio_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(offsetio_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new + +if COND_emu +platform_PROGRAMS += bufio.module +MODULE_FILES += bufio.module$(EXEEXT) +bufio_module_SOURCES = io/bufio.c ## platform sources +nodist_bufio_module_SOURCES = ## platform nodist sources +bufio_module_LDADD = +bufio_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +bufio_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +bufio_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +bufio_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +bufio_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_bufio_module_SOURCES) +CLEANFILES += $(nodist_bufio_module_SOURCES) +MOD_FILES += bufio.mod +MARKER_FILES += bufio.marker +CLEANFILES += bufio.marker + +bufio.marker: $(bufio_module_SOURCES) $(nodist_bufio_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bufio_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += bufio.module +MODULE_FILES += bufio.module$(EXEEXT) +bufio_module_SOURCES = io/bufio.c ## platform sources +nodist_bufio_module_SOURCES = ## platform nodist sources +bufio_module_LDADD = +bufio_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +bufio_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +bufio_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +bufio_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +bufio_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_bufio_module_SOURCES) +CLEANFILES += $(nodist_bufio_module_SOURCES) +MOD_FILES += bufio.mod +MARKER_FILES += bufio.marker +CLEANFILES += bufio.marker + +bufio.marker: $(bufio_module_SOURCES) $(nodist_bufio_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bufio_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += bufio.module +MODULE_FILES += bufio.module$(EXEEXT) +bufio_module_SOURCES = io/bufio.c ## platform sources +nodist_bufio_module_SOURCES = ## platform nodist sources +bufio_module_LDADD = +bufio_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +bufio_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +bufio_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +bufio_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +bufio_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_bufio_module_SOURCES) +CLEANFILES += $(nodist_bufio_module_SOURCES) +MOD_FILES += bufio.mod +MARKER_FILES += bufio.marker +CLEANFILES += bufio.marker + +bufio.marker: $(bufio_module_SOURCES) $(nodist_bufio_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bufio_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += bufio.module +MODULE_FILES += bufio.module$(EXEEXT) +bufio_module_SOURCES = io/bufio.c ## platform sources +nodist_bufio_module_SOURCES = ## platform nodist sources +bufio_module_LDADD = +bufio_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +bufio_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +bufio_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +bufio_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +bufio_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_bufio_module_SOURCES) +CLEANFILES += $(nodist_bufio_module_SOURCES) +MOD_FILES += bufio.mod +MARKER_FILES += bufio.marker +CLEANFILES += bufio.marker + +bufio.marker: $(bufio_module_SOURCES) $(nodist_bufio_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bufio_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += bufio.module +MODULE_FILES += bufio.module$(EXEEXT) +bufio_module_SOURCES = io/bufio.c ## platform sources +nodist_bufio_module_SOURCES = ## platform nodist sources +bufio_module_LDADD = +bufio_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +bufio_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +bufio_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +bufio_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +bufio_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_bufio_module_SOURCES) +CLEANFILES += $(nodist_bufio_module_SOURCES) +MOD_FILES += bufio.mod +MARKER_FILES += bufio.marker +CLEANFILES += bufio.marker + +bufio.marker: $(bufio_module_SOURCES) $(nodist_bufio_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bufio_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += bufio.module +MODULE_FILES += bufio.module$(EXEEXT) +bufio_module_SOURCES = io/bufio.c ## platform sources +nodist_bufio_module_SOURCES = ## platform nodist sources +bufio_module_LDADD = +bufio_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +bufio_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +bufio_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +bufio_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +bufio_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_bufio_module_SOURCES) +CLEANFILES += $(nodist_bufio_module_SOURCES) +MOD_FILES += bufio.mod +MARKER_FILES += bufio.marker +CLEANFILES += bufio.marker + +bufio.marker: $(bufio_module_SOURCES) $(nodist_bufio_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bufio_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += bufio.module +MODULE_FILES += bufio.module$(EXEEXT) +bufio_module_SOURCES = io/bufio.c ## platform sources +nodist_bufio_module_SOURCES = ## platform nodist sources +bufio_module_LDADD = +bufio_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +bufio_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +bufio_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +bufio_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +bufio_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_bufio_module_SOURCES) +CLEANFILES += $(nodist_bufio_module_SOURCES) +MOD_FILES += bufio.mod +MARKER_FILES += bufio.marker +CLEANFILES += bufio.marker + +bufio.marker: $(bufio_module_SOURCES) $(nodist_bufio_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bufio_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_xen +platform_PROGRAMS += bufio.module +MODULE_FILES += bufio.module$(EXEEXT) +bufio_module_SOURCES = io/bufio.c ## platform sources +nodist_bufio_module_SOURCES = ## platform nodist sources +bufio_module_LDADD = +bufio_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +bufio_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +bufio_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +bufio_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +bufio_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_bufio_module_SOURCES) +CLEANFILES += $(nodist_bufio_module_SOURCES) +MOD_FILES += bufio.mod +MARKER_FILES += bufio.marker +CLEANFILES += bufio.marker + +bufio.marker: $(bufio_module_SOURCES) $(nodist_bufio_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bufio_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_xen +platform_PROGRAMS += bufio.module +MODULE_FILES += bufio.module$(EXEEXT) +bufio_module_SOURCES = io/bufio.c ## platform sources +nodist_bufio_module_SOURCES = ## platform nodist sources +bufio_module_LDADD = +bufio_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +bufio_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +bufio_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +bufio_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +bufio_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_bufio_module_SOURCES) +CLEANFILES += $(nodist_bufio_module_SOURCES) +MOD_FILES += bufio.mod +MARKER_FILES += bufio.marker +CLEANFILES += bufio.marker + +bufio.marker: $(bufio_module_SOURCES) $(nodist_bufio_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bufio_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_xen_pvh +platform_PROGRAMS += bufio.module +MODULE_FILES += bufio.module$(EXEEXT) +bufio_module_SOURCES = io/bufio.c ## platform sources +nodist_bufio_module_SOURCES = ## platform nodist sources +bufio_module_LDADD = +bufio_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +bufio_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +bufio_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +bufio_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +bufio_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_bufio_module_SOURCES) +CLEANFILES += $(nodist_bufio_module_SOURCES) +MOD_FILES += bufio.mod +MARKER_FILES += bufio.marker +CLEANFILES += bufio.marker + +bufio.marker: $(bufio_module_SOURCES) $(nodist_bufio_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bufio_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_sparc64_ieee1275 +platform_PROGRAMS += bufio.module +MODULE_FILES += bufio.module$(EXEEXT) +bufio_module_SOURCES = io/bufio.c ## platform sources +nodist_bufio_module_SOURCES = ## platform nodist sources +bufio_module_LDADD = +bufio_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +bufio_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +bufio_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +bufio_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +bufio_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_bufio_module_SOURCES) +CLEANFILES += $(nodist_bufio_module_SOURCES) +MOD_FILES += bufio.mod +MARKER_FILES += bufio.marker +CLEANFILES += bufio.marker + +bufio.marker: $(bufio_module_SOURCES) $(nodist_bufio_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bufio_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_powerpc_ieee1275 +platform_PROGRAMS += bufio.module +MODULE_FILES += bufio.module$(EXEEXT) +bufio_module_SOURCES = io/bufio.c ## platform sources +nodist_bufio_module_SOURCES = ## platform nodist sources +bufio_module_LDADD = +bufio_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +bufio_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +bufio_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +bufio_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +bufio_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_bufio_module_SOURCES) +CLEANFILES += $(nodist_bufio_module_SOURCES) +MOD_FILES += bufio.mod +MARKER_FILES += bufio.marker +CLEANFILES += bufio.marker + +bufio.marker: $(bufio_module_SOURCES) $(nodist_bufio_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bufio_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_arc +platform_PROGRAMS += bufio.module +MODULE_FILES += bufio.module$(EXEEXT) +bufio_module_SOURCES = io/bufio.c ## platform sources +nodist_bufio_module_SOURCES = ## platform nodist sources +bufio_module_LDADD = +bufio_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +bufio_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +bufio_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +bufio_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +bufio_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_bufio_module_SOURCES) +CLEANFILES += $(nodist_bufio_module_SOURCES) +MOD_FILES += bufio.mod +MARKER_FILES += bufio.marker +CLEANFILES += bufio.marker + +bufio.marker: $(bufio_module_SOURCES) $(nodist_bufio_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bufio_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_ia64_efi +platform_PROGRAMS += bufio.module +MODULE_FILES += bufio.module$(EXEEXT) +bufio_module_SOURCES = io/bufio.c ## platform sources +nodist_bufio_module_SOURCES = ## platform nodist sources +bufio_module_LDADD = +bufio_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +bufio_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +bufio_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +bufio_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +bufio_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_bufio_module_SOURCES) +CLEANFILES += $(nodist_bufio_module_SOURCES) +MOD_FILES += bufio.mod +MARKER_FILES += bufio.marker +CLEANFILES += bufio.marker + +bufio.marker: $(bufio_module_SOURCES) $(nodist_bufio_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bufio_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_qemu_mips +platform_PROGRAMS += bufio.module +MODULE_FILES += bufio.module$(EXEEXT) +bufio_module_SOURCES = io/bufio.c ## platform sources +nodist_bufio_module_SOURCES = ## platform nodist sources +bufio_module_LDADD = +bufio_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +bufio_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +bufio_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +bufio_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +bufio_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_bufio_module_SOURCES) +CLEANFILES += $(nodist_bufio_module_SOURCES) +MOD_FILES += bufio.mod +MARKER_FILES += bufio.marker +CLEANFILES += bufio.marker + +bufio.marker: $(bufio_module_SOURCES) $(nodist_bufio_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bufio_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_uboot +platform_PROGRAMS += bufio.module +MODULE_FILES += bufio.module$(EXEEXT) +bufio_module_SOURCES = io/bufio.c ## platform sources +nodist_bufio_module_SOURCES = ## platform nodist sources +bufio_module_LDADD = +bufio_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +bufio_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +bufio_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +bufio_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +bufio_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_bufio_module_SOURCES) +CLEANFILES += $(nodist_bufio_module_SOURCES) +MOD_FILES += bufio.mod +MARKER_FILES += bufio.marker +CLEANFILES += bufio.marker + +bufio.marker: $(bufio_module_SOURCES) $(nodist_bufio_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bufio_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_efi +platform_PROGRAMS += bufio.module +MODULE_FILES += bufio.module$(EXEEXT) +bufio_module_SOURCES = io/bufio.c ## platform sources +nodist_bufio_module_SOURCES = ## platform nodist sources +bufio_module_LDADD = +bufio_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +bufio_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +bufio_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +bufio_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +bufio_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_bufio_module_SOURCES) +CLEANFILES += $(nodist_bufio_module_SOURCES) +MOD_FILES += bufio.mod +MARKER_FILES += bufio.marker +CLEANFILES += bufio.marker + +bufio.marker: $(bufio_module_SOURCES) $(nodist_bufio_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bufio_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm64_efi +platform_PROGRAMS += bufio.module +MODULE_FILES += bufio.module$(EXEEXT) +bufio_module_SOURCES = io/bufio.c ## platform sources +nodist_bufio_module_SOURCES = ## platform nodist sources +bufio_module_LDADD = +bufio_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +bufio_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +bufio_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +bufio_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +bufio_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_bufio_module_SOURCES) +CLEANFILES += $(nodist_bufio_module_SOURCES) +MOD_FILES += bufio.mod +MARKER_FILES += bufio.marker +CLEANFILES += bufio.marker + +bufio.marker: $(bufio_module_SOURCES) $(nodist_bufio_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bufio_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv32_efi +platform_PROGRAMS += bufio.module +MODULE_FILES += bufio.module$(EXEEXT) +bufio_module_SOURCES = io/bufio.c ## platform sources +nodist_bufio_module_SOURCES = ## platform nodist sources +bufio_module_LDADD = +bufio_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +bufio_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +bufio_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +bufio_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +bufio_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_bufio_module_SOURCES) +CLEANFILES += $(nodist_bufio_module_SOURCES) +MOD_FILES += bufio.mod +MARKER_FILES += bufio.marker +CLEANFILES += bufio.marker + +bufio.marker: $(bufio_module_SOURCES) $(nodist_bufio_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bufio_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv64_efi +platform_PROGRAMS += bufio.module +MODULE_FILES += bufio.module$(EXEEXT) +bufio_module_SOURCES = io/bufio.c ## platform sources +nodist_bufio_module_SOURCES = ## platform nodist sources +bufio_module_LDADD = +bufio_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +bufio_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +bufio_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +bufio_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +bufio_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_bufio_module_SOURCES) +CLEANFILES += $(nodist_bufio_module_SOURCES) +MOD_FILES += bufio.mod +MARKER_FILES += bufio.marker +CLEANFILES += bufio.marker + +bufio.marker: $(bufio_module_SOURCES) $(nodist_bufio_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bufio_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif +platform_PROGRAMS += elf.module +MODULE_FILES += elf.module$(EXEEXT) +elf_module_SOURCES = kern/elf.c ## platform sources +nodist_elf_module_SOURCES = ## platform nodist sources +elf_module_LDADD = +elf_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +elf_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +elf_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +elf_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +elf_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += kern/elfXX.c +BUILT_SOURCES += $(nodist_elf_module_SOURCES) +CLEANFILES += $(nodist_elf_module_SOURCES) +MOD_FILES += elf.mod +MARKER_FILES += elf.marker +CLEANFILES += elf.marker + +elf.marker: $(elf_module_SOURCES) $(nodist_elf_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(elf_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += crypto.module +MODULE_FILES += crypto.module$(EXEEXT) +crypto_module_SOURCES = lib/crypto.c ## platform sources +nodist_crypto_module_SOURCES = ## platform nodist sources +crypto_module_LDADD = +crypto_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +crypto_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +crypto_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +crypto_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +crypto_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += lib/libgcrypt-grub/cipher/crypto.lst +BUILT_SOURCES += $(nodist_crypto_module_SOURCES) +CLEANFILES += $(nodist_crypto_module_SOURCES) +MOD_FILES += crypto.mod +MARKER_FILES += crypto.marker +CLEANFILES += crypto.marker + +crypto.marker: $(crypto_module_SOURCES) $(nodist_crypto_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(crypto_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += pbkdf2.module +MODULE_FILES += pbkdf2.module$(EXEEXT) +pbkdf2_module_SOURCES = lib/pbkdf2.c ## platform sources +nodist_pbkdf2_module_SOURCES = ## platform nodist sources +pbkdf2_module_LDADD = +pbkdf2_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +pbkdf2_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +pbkdf2_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +pbkdf2_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +pbkdf2_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_pbkdf2_module_SOURCES) +CLEANFILES += $(nodist_pbkdf2_module_SOURCES) +MOD_FILES += pbkdf2.mod +MARKER_FILES += pbkdf2.marker +CLEANFILES += pbkdf2.marker + +pbkdf2.marker: $(pbkdf2_module_SOURCES) $(nodist_pbkdf2_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pbkdf2_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new + +if COND_i386_pc +platform_PROGRAMS += relocator.module +MODULE_FILES += relocator.module$(EXEEXT) +relocator_module_SOURCES = lib/i386/relocator_asm.S lib/i386/relocator16.S lib/i386/relocator32.S lib/i386/relocator64.S lib/i386/relocator.c lib/i386/relocator_common_c.c lib/relocator.c ## platform sources +nodist_relocator_module_SOURCES = ## platform nodist sources +relocator_module_LDADD = +relocator_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +relocator_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +relocator_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +relocator_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +relocator_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += lib/i386/relocator_common.S kern/powerpc/cache_flush.S +BUILT_SOURCES += $(nodist_relocator_module_SOURCES) +CLEANFILES += $(nodist_relocator_module_SOURCES) +MOD_FILES += relocator.mod +MARKER_FILES += relocator.marker +CLEANFILES += relocator.marker + +relocator.marker: $(relocator_module_SOURCES) $(nodist_relocator_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(relocator_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += relocator.module +MODULE_FILES += relocator.module$(EXEEXT) +relocator_module_SOURCES = lib/i386/relocator_asm.S lib/i386/relocator16.S lib/i386/relocator32.S lib/i386/relocator64.S lib/i386/relocator.c lib/i386/relocator_common_c.c lib/efi/relocator.c lib/relocator.c ## platform sources +nodist_relocator_module_SOURCES = ## platform nodist sources +relocator_module_LDADD = +relocator_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +relocator_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +relocator_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +relocator_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +relocator_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += lib/i386/relocator_common.S kern/powerpc/cache_flush.S +BUILT_SOURCES += $(nodist_relocator_module_SOURCES) +CLEANFILES += $(nodist_relocator_module_SOURCES) +MOD_FILES += relocator.mod +MARKER_FILES += relocator.marker +CLEANFILES += relocator.marker + +relocator.marker: $(relocator_module_SOURCES) $(nodist_relocator_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(relocator_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += relocator.module +MODULE_FILES += relocator.module$(EXEEXT) +relocator_module_SOURCES = lib/i386/relocator_asm.S lib/i386/relocator16.S lib/i386/relocator32.S lib/i386/relocator64.S lib/i386/relocator.c lib/i386/relocator_common_c.c lib/relocator.c ## platform sources +nodist_relocator_module_SOURCES = ## platform nodist sources +relocator_module_LDADD = +relocator_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +relocator_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +relocator_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +relocator_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +relocator_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += lib/i386/relocator_common.S kern/powerpc/cache_flush.S +BUILT_SOURCES += $(nodist_relocator_module_SOURCES) +CLEANFILES += $(nodist_relocator_module_SOURCES) +MOD_FILES += relocator.mod +MARKER_FILES += relocator.marker +CLEANFILES += relocator.marker + +relocator.marker: $(relocator_module_SOURCES) $(nodist_relocator_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(relocator_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += relocator.module +MODULE_FILES += relocator.module$(EXEEXT) +relocator_module_SOURCES = lib/i386/relocator_asm.S lib/i386/relocator16.S lib/i386/relocator32.S lib/i386/relocator64.S lib/i386/relocator.c lib/i386/relocator_common_c.c lib/relocator.c ## platform sources +nodist_relocator_module_SOURCES = ## platform nodist sources +relocator_module_LDADD = +relocator_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +relocator_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +relocator_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +relocator_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +relocator_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += lib/i386/relocator_common.S kern/powerpc/cache_flush.S +BUILT_SOURCES += $(nodist_relocator_module_SOURCES) +CLEANFILES += $(nodist_relocator_module_SOURCES) +MOD_FILES += relocator.mod +MARKER_FILES += relocator.marker +CLEANFILES += relocator.marker + +relocator.marker: $(relocator_module_SOURCES) $(nodist_relocator_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(relocator_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += relocator.module +MODULE_FILES += relocator.module$(EXEEXT) +relocator_module_SOURCES = lib/i386/relocator_asm.S lib/i386/relocator16.S lib/i386/relocator32.S lib/i386/relocator64.S lib/i386/relocator.c lib/i386/relocator_common_c.c lib/relocator.c ## platform sources +nodist_relocator_module_SOURCES = ## platform nodist sources +relocator_module_LDADD = +relocator_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +relocator_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +relocator_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +relocator_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +relocator_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += lib/i386/relocator_common.S kern/powerpc/cache_flush.S +BUILT_SOURCES += $(nodist_relocator_module_SOURCES) +CLEANFILES += $(nodist_relocator_module_SOURCES) +MOD_FILES += relocator.mod +MARKER_FILES += relocator.marker +CLEANFILES += relocator.marker + +relocator.marker: $(relocator_module_SOURCES) $(nodist_relocator_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(relocator_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += relocator.module +MODULE_FILES += relocator.module$(EXEEXT) +relocator_module_SOURCES = lib/ieee1275/relocator.c lib/i386/relocator_asm.S lib/i386/relocator16.S lib/i386/relocator32.S lib/i386/relocator64.S lib/i386/relocator.c lib/i386/relocator_common_c.c lib/relocator.c ## platform sources +nodist_relocator_module_SOURCES = ## platform nodist sources +relocator_module_LDADD = +relocator_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +relocator_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +relocator_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +relocator_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +relocator_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += lib/i386/relocator_common.S kern/powerpc/cache_flush.S +BUILT_SOURCES += $(nodist_relocator_module_SOURCES) +CLEANFILES += $(nodist_relocator_module_SOURCES) +MOD_FILES += relocator.mod +MARKER_FILES += relocator.marker +CLEANFILES += relocator.marker + +relocator.marker: $(relocator_module_SOURCES) $(nodist_relocator_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(relocator_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += relocator.module +MODULE_FILES += relocator.module$(EXEEXT) +relocator_module_SOURCES = lib/x86_64/efi/relocator.c lib/x86_64/relocator_asm.S lib/i386/relocator16.S lib/i386/relocator32.S lib/i386/relocator64.S lib/i386/relocator.c lib/i386/relocator_common_c.c lib/efi/relocator.c lib/relocator.c ## platform sources +nodist_relocator_module_SOURCES = ## platform nodist sources +relocator_module_LDADD = +relocator_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +relocator_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +relocator_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +relocator_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +relocator_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += lib/i386/relocator_common.S kern/powerpc/cache_flush.S +BUILT_SOURCES += $(nodist_relocator_module_SOURCES) +CLEANFILES += $(nodist_relocator_module_SOURCES) +MOD_FILES += relocator.mod +MARKER_FILES += relocator.marker +CLEANFILES += relocator.marker + +relocator.marker: $(relocator_module_SOURCES) $(nodist_relocator_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(relocator_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_xen +platform_PROGRAMS += relocator.module +MODULE_FILES += relocator.module$(EXEEXT) +relocator_module_SOURCES = lib/i386/relocator_asm.S lib/i386/xen/relocator.S lib/xen/relocator.c lib/i386/relocator_common_c.c lib/relocator.c ## platform sources +nodist_relocator_module_SOURCES = ## platform nodist sources +relocator_module_LDADD = +relocator_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +relocator_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +relocator_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +relocator_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +relocator_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += lib/i386/relocator_common.S kern/powerpc/cache_flush.S +BUILT_SOURCES += $(nodist_relocator_module_SOURCES) +CLEANFILES += $(nodist_relocator_module_SOURCES) +MOD_FILES += relocator.mod +MARKER_FILES += relocator.marker +CLEANFILES += relocator.marker + +relocator.marker: $(relocator_module_SOURCES) $(nodist_relocator_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(relocator_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_xen +platform_PROGRAMS += relocator.module +MODULE_FILES += relocator.module$(EXEEXT) +relocator_module_SOURCES = lib/x86_64/relocator_asm.S lib/x86_64/xen/relocator.S lib/xen/relocator.c lib/i386/relocator_common_c.c lib/relocator.c ## platform sources +nodist_relocator_module_SOURCES = ## platform nodist sources +relocator_module_LDADD = +relocator_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +relocator_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +relocator_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +relocator_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +relocator_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += lib/i386/relocator_common.S kern/powerpc/cache_flush.S +BUILT_SOURCES += $(nodist_relocator_module_SOURCES) +CLEANFILES += $(nodist_relocator_module_SOURCES) +MOD_FILES += relocator.mod +MARKER_FILES += relocator.marker +CLEANFILES += relocator.marker + +relocator.marker: $(relocator_module_SOURCES) $(nodist_relocator_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(relocator_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_xen_pvh +platform_PROGRAMS += relocator.module +MODULE_FILES += relocator.module$(EXEEXT) +relocator_module_SOURCES = lib/i386/relocator16.S lib/i386/relocator32.S lib/i386/relocator64.S lib/i386/relocator_asm.S lib/i386/relocator.c lib/i386/relocator_common_c.c lib/relocator.c ## platform sources +nodist_relocator_module_SOURCES = ## platform nodist sources +relocator_module_LDADD = +relocator_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +relocator_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +relocator_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +relocator_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +relocator_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += lib/i386/relocator_common.S kern/powerpc/cache_flush.S +BUILT_SOURCES += $(nodist_relocator_module_SOURCES) +CLEANFILES += $(nodist_relocator_module_SOURCES) +MOD_FILES += relocator.mod +MARKER_FILES += relocator.marker +CLEANFILES += relocator.marker + +relocator.marker: $(relocator_module_SOURCES) $(nodist_relocator_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(relocator_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_loongson +platform_PROGRAMS += relocator.module +MODULE_FILES += relocator.module$(EXEEXT) +relocator_module_SOURCES = lib/mips/relocator_asm.S lib/mips/relocator.c lib/relocator.c ## platform sources +nodist_relocator_module_SOURCES = ## platform nodist sources +relocator_module_LDADD = +relocator_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +relocator_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +relocator_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +relocator_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +relocator_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += lib/i386/relocator_common.S kern/powerpc/cache_flush.S +BUILT_SOURCES += $(nodist_relocator_module_SOURCES) +CLEANFILES += $(nodist_relocator_module_SOURCES) +MOD_FILES += relocator.mod +MARKER_FILES += relocator.marker +CLEANFILES += relocator.marker + +relocator.marker: $(relocator_module_SOURCES) $(nodist_relocator_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(relocator_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_powerpc_ieee1275 +platform_PROGRAMS += relocator.module +MODULE_FILES += relocator.module$(EXEEXT) +relocator_module_SOURCES = lib/powerpc/relocator_asm.S lib/powerpc/relocator.c lib/ieee1275/relocator.c lib/relocator.c ## platform sources +nodist_relocator_module_SOURCES = ## platform nodist sources +relocator_module_LDADD = +relocator_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +relocator_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +relocator_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +relocator_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +relocator_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += lib/i386/relocator_common.S kern/powerpc/cache_flush.S +BUILT_SOURCES += $(nodist_relocator_module_SOURCES) +CLEANFILES += $(nodist_relocator_module_SOURCES) +MOD_FILES += relocator.mod +MARKER_FILES += relocator.marker +CLEANFILES += relocator.marker + +relocator.marker: $(relocator_module_SOURCES) $(nodist_relocator_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(relocator_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_arc +platform_PROGRAMS += relocator.module +MODULE_FILES += relocator.module$(EXEEXT) +relocator_module_SOURCES = lib/mips/relocator_asm.S lib/mips/relocator.c lib/relocator.c ## platform sources +nodist_relocator_module_SOURCES = ## platform nodist sources +relocator_module_LDADD = +relocator_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +relocator_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +relocator_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +relocator_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +relocator_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += lib/i386/relocator_common.S kern/powerpc/cache_flush.S +BUILT_SOURCES += $(nodist_relocator_module_SOURCES) +CLEANFILES += $(nodist_relocator_module_SOURCES) +MOD_FILES += relocator.mod +MARKER_FILES += relocator.marker +CLEANFILES += relocator.marker + +relocator.marker: $(relocator_module_SOURCES) $(nodist_relocator_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(relocator_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_qemu_mips +platform_PROGRAMS += relocator.module +MODULE_FILES += relocator.module$(EXEEXT) +relocator_module_SOURCES = lib/mips/relocator_asm.S lib/mips/relocator.c lib/relocator.c ## platform sources +nodist_relocator_module_SOURCES = ## platform nodist sources +relocator_module_LDADD = +relocator_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +relocator_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +relocator_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +relocator_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +relocator_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += lib/i386/relocator_common.S kern/powerpc/cache_flush.S +BUILT_SOURCES += $(nodist_relocator_module_SOURCES) +CLEANFILES += $(nodist_relocator_module_SOURCES) +MOD_FILES += relocator.mod +MARKER_FILES += relocator.marker +CLEANFILES += relocator.marker + +relocator.marker: $(relocator_module_SOURCES) $(nodist_relocator_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(relocator_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_emu +platform_PROGRAMS += datetime.module +MODULE_FILES += datetime.module$(EXEEXT) +datetime_module_SOURCES = lib/datetime.c ## platform sources +nodist_datetime_module_SOURCES = ## platform nodist sources +datetime_module_LDADD = +datetime_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +datetime_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +datetime_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +datetime_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +datetime_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_datetime_module_SOURCES) +CLEANFILES += $(nodist_datetime_module_SOURCES) +MOD_FILES += datetime.mod +MARKER_FILES += datetime.marker +CLEANFILES += datetime.marker + +datetime.marker: $(datetime_module_SOURCES) $(nodist_datetime_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(datetime_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += datetime.module +MODULE_FILES += datetime.module$(EXEEXT) +datetime_module_SOURCES = lib/cmos_datetime.c lib/datetime.c ## platform sources +nodist_datetime_module_SOURCES = ## platform nodist sources +datetime_module_LDADD = +datetime_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +datetime_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +datetime_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +datetime_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +datetime_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_datetime_module_SOURCES) +CLEANFILES += $(nodist_datetime_module_SOURCES) +MOD_FILES += datetime.mod +MARKER_FILES += datetime.marker +CLEANFILES += datetime.marker + +datetime.marker: $(datetime_module_SOURCES) $(nodist_datetime_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(datetime_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += datetime.module +MODULE_FILES += datetime.module$(EXEEXT) +datetime_module_SOURCES = lib/efi/datetime.c lib/datetime.c ## platform sources +nodist_datetime_module_SOURCES = ## platform nodist sources +datetime_module_LDADD = +datetime_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +datetime_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +datetime_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +datetime_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +datetime_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_datetime_module_SOURCES) +CLEANFILES += $(nodist_datetime_module_SOURCES) +MOD_FILES += datetime.mod +MARKER_FILES += datetime.marker +CLEANFILES += datetime.marker + +datetime.marker: $(datetime_module_SOURCES) $(nodist_datetime_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(datetime_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += datetime.module +MODULE_FILES += datetime.module$(EXEEXT) +datetime_module_SOURCES = lib/cmos_datetime.c lib/datetime.c ## platform sources +nodist_datetime_module_SOURCES = ## platform nodist sources +datetime_module_LDADD = +datetime_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +datetime_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +datetime_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +datetime_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +datetime_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_datetime_module_SOURCES) +CLEANFILES += $(nodist_datetime_module_SOURCES) +MOD_FILES += datetime.mod +MARKER_FILES += datetime.marker +CLEANFILES += datetime.marker + +datetime.marker: $(datetime_module_SOURCES) $(nodist_datetime_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(datetime_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += datetime.module +MODULE_FILES += datetime.module$(EXEEXT) +datetime_module_SOURCES = lib/cmos_datetime.c lib/datetime.c ## platform sources +nodist_datetime_module_SOURCES = ## platform nodist sources +datetime_module_LDADD = +datetime_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +datetime_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +datetime_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +datetime_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +datetime_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_datetime_module_SOURCES) +CLEANFILES += $(nodist_datetime_module_SOURCES) +MOD_FILES += datetime.mod +MARKER_FILES += datetime.marker +CLEANFILES += datetime.marker + +datetime.marker: $(datetime_module_SOURCES) $(nodist_datetime_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(datetime_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += datetime.module +MODULE_FILES += datetime.module$(EXEEXT) +datetime_module_SOURCES = lib/cmos_datetime.c lib/datetime.c ## platform sources +nodist_datetime_module_SOURCES = ## platform nodist sources +datetime_module_LDADD = +datetime_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +datetime_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +datetime_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +datetime_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +datetime_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_datetime_module_SOURCES) +CLEANFILES += $(nodist_datetime_module_SOURCES) +MOD_FILES += datetime.mod +MARKER_FILES += datetime.marker +CLEANFILES += datetime.marker + +datetime.marker: $(datetime_module_SOURCES) $(nodist_datetime_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(datetime_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += datetime.module +MODULE_FILES += datetime.module$(EXEEXT) +datetime_module_SOURCES = lib/cmos_datetime.c lib/datetime.c ## platform sources +nodist_datetime_module_SOURCES = ## platform nodist sources +datetime_module_LDADD = +datetime_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +datetime_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +datetime_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +datetime_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +datetime_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_datetime_module_SOURCES) +CLEANFILES += $(nodist_datetime_module_SOURCES) +MOD_FILES += datetime.mod +MARKER_FILES += datetime.marker +CLEANFILES += datetime.marker + +datetime.marker: $(datetime_module_SOURCES) $(nodist_datetime_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(datetime_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += datetime.module +MODULE_FILES += datetime.module$(EXEEXT) +datetime_module_SOURCES = lib/efi/datetime.c lib/datetime.c ## platform sources +nodist_datetime_module_SOURCES = ## platform nodist sources +datetime_module_LDADD = +datetime_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +datetime_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +datetime_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +datetime_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +datetime_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_datetime_module_SOURCES) +CLEANFILES += $(nodist_datetime_module_SOURCES) +MOD_FILES += datetime.mod +MARKER_FILES += datetime.marker +CLEANFILES += datetime.marker + +datetime.marker: $(datetime_module_SOURCES) $(nodist_datetime_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(datetime_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_xen +platform_PROGRAMS += datetime.module +MODULE_FILES += datetime.module$(EXEEXT) +datetime_module_SOURCES = lib/xen/datetime.c lib/datetime.c ## platform sources +nodist_datetime_module_SOURCES = ## platform nodist sources +datetime_module_LDADD = +datetime_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +datetime_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +datetime_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +datetime_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +datetime_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_datetime_module_SOURCES) +CLEANFILES += $(nodist_datetime_module_SOURCES) +MOD_FILES += datetime.mod +MARKER_FILES += datetime.marker +CLEANFILES += datetime.marker + +datetime.marker: $(datetime_module_SOURCES) $(nodist_datetime_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(datetime_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_xen +platform_PROGRAMS += datetime.module +MODULE_FILES += datetime.module$(EXEEXT) +datetime_module_SOURCES = lib/xen/datetime.c lib/datetime.c ## platform sources +nodist_datetime_module_SOURCES = ## platform nodist sources +datetime_module_LDADD = +datetime_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +datetime_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +datetime_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +datetime_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +datetime_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_datetime_module_SOURCES) +CLEANFILES += $(nodist_datetime_module_SOURCES) +MOD_FILES += datetime.mod +MARKER_FILES += datetime.marker +CLEANFILES += datetime.marker + +datetime.marker: $(datetime_module_SOURCES) $(nodist_datetime_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(datetime_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_xen_pvh +platform_PROGRAMS += datetime.module +MODULE_FILES += datetime.module$(EXEEXT) +datetime_module_SOURCES = lib/xen/datetime.c lib/datetime.c ## platform sources +nodist_datetime_module_SOURCES = ## platform nodist sources +datetime_module_LDADD = +datetime_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +datetime_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +datetime_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +datetime_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +datetime_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_datetime_module_SOURCES) +CLEANFILES += $(nodist_datetime_module_SOURCES) +MOD_FILES += datetime.mod +MARKER_FILES += datetime.marker +CLEANFILES += datetime.marker + +datetime.marker: $(datetime_module_SOURCES) $(nodist_datetime_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(datetime_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_loongson +platform_PROGRAMS += datetime.module +MODULE_FILES += datetime.module$(EXEEXT) +datetime_module_SOURCES = lib/cmos_datetime.c lib/datetime.c ## platform sources +nodist_datetime_module_SOURCES = ## platform nodist sources +datetime_module_LDADD = +datetime_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +datetime_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +datetime_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +datetime_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +datetime_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_datetime_module_SOURCES) +CLEANFILES += $(nodist_datetime_module_SOURCES) +MOD_FILES += datetime.mod +MARKER_FILES += datetime.marker +CLEANFILES += datetime.marker + +datetime.marker: $(datetime_module_SOURCES) $(nodist_datetime_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(datetime_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_sparc64_ieee1275 +platform_PROGRAMS += datetime.module +MODULE_FILES += datetime.module$(EXEEXT) +datetime_module_SOURCES = lib/ieee1275/datetime.c lib/ieee1275/cmos.c lib/cmos_datetime.c lib/datetime.c ## platform sources +nodist_datetime_module_SOURCES = ## platform nodist sources +datetime_module_LDADD = +datetime_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +datetime_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +datetime_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +datetime_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +datetime_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_datetime_module_SOURCES) +CLEANFILES += $(nodist_datetime_module_SOURCES) +MOD_FILES += datetime.mod +MARKER_FILES += datetime.marker +CLEANFILES += datetime.marker + +datetime.marker: $(datetime_module_SOURCES) $(nodist_datetime_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(datetime_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_powerpc_ieee1275 +platform_PROGRAMS += datetime.module +MODULE_FILES += datetime.module$(EXEEXT) +datetime_module_SOURCES = lib/ieee1275/datetime.c lib/ieee1275/cmos.c lib/cmos_datetime.c lib/datetime.c ## platform sources +nodist_datetime_module_SOURCES = ## platform nodist sources +datetime_module_LDADD = +datetime_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +datetime_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +datetime_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +datetime_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +datetime_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_datetime_module_SOURCES) +CLEANFILES += $(nodist_datetime_module_SOURCES) +MOD_FILES += datetime.mod +MARKER_FILES += datetime.marker +CLEANFILES += datetime.marker + +datetime.marker: $(datetime_module_SOURCES) $(nodist_datetime_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(datetime_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_arc +platform_PROGRAMS += datetime.module +MODULE_FILES += datetime.module$(EXEEXT) +datetime_module_SOURCES = lib/arc/datetime.c lib/datetime.c ## platform sources +nodist_datetime_module_SOURCES = ## platform nodist sources +datetime_module_LDADD = +datetime_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +datetime_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +datetime_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +datetime_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +datetime_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_datetime_module_SOURCES) +CLEANFILES += $(nodist_datetime_module_SOURCES) +MOD_FILES += datetime.mod +MARKER_FILES += datetime.marker +CLEANFILES += datetime.marker + +datetime.marker: $(datetime_module_SOURCES) $(nodist_datetime_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(datetime_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_ia64_efi +platform_PROGRAMS += datetime.module +MODULE_FILES += datetime.module$(EXEEXT) +datetime_module_SOURCES = lib/efi/datetime.c lib/datetime.c ## platform sources +nodist_datetime_module_SOURCES = ## platform nodist sources +datetime_module_LDADD = +datetime_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +datetime_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +datetime_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +datetime_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +datetime_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_datetime_module_SOURCES) +CLEANFILES += $(nodist_datetime_module_SOURCES) +MOD_FILES += datetime.mod +MARKER_FILES += datetime.marker +CLEANFILES += datetime.marker + +datetime.marker: $(datetime_module_SOURCES) $(nodist_datetime_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(datetime_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_qemu_mips +platform_PROGRAMS += datetime.module +MODULE_FILES += datetime.module$(EXEEXT) +datetime_module_SOURCES = lib/cmos_datetime.c lib/datetime.c ## platform sources +nodist_datetime_module_SOURCES = ## platform nodist sources +datetime_module_LDADD = +datetime_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +datetime_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +datetime_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +datetime_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +datetime_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_datetime_module_SOURCES) +CLEANFILES += $(nodist_datetime_module_SOURCES) +MOD_FILES += datetime.mod +MARKER_FILES += datetime.marker +CLEANFILES += datetime.marker + +datetime.marker: $(datetime_module_SOURCES) $(nodist_datetime_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(datetime_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_uboot +platform_PROGRAMS += datetime.module +MODULE_FILES += datetime.module$(EXEEXT) +datetime_module_SOURCES = lib/dummy/datetime.c lib/datetime.c ## platform sources +nodist_datetime_module_SOURCES = ## platform nodist sources +datetime_module_LDADD = +datetime_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +datetime_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +datetime_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +datetime_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +datetime_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_datetime_module_SOURCES) +CLEANFILES += $(nodist_datetime_module_SOURCES) +MOD_FILES += datetime.mod +MARKER_FILES += datetime.marker +CLEANFILES += datetime.marker + +datetime.marker: $(datetime_module_SOURCES) $(nodist_datetime_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(datetime_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_efi +platform_PROGRAMS += datetime.module +MODULE_FILES += datetime.module$(EXEEXT) +datetime_module_SOURCES = lib/efi/datetime.c lib/datetime.c ## platform sources +nodist_datetime_module_SOURCES = ## platform nodist sources +datetime_module_LDADD = +datetime_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +datetime_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +datetime_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +datetime_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +datetime_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_datetime_module_SOURCES) +CLEANFILES += $(nodist_datetime_module_SOURCES) +MOD_FILES += datetime.mod +MARKER_FILES += datetime.marker +CLEANFILES += datetime.marker + +datetime.marker: $(datetime_module_SOURCES) $(nodist_datetime_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(datetime_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm64_efi +platform_PROGRAMS += datetime.module +MODULE_FILES += datetime.module$(EXEEXT) +datetime_module_SOURCES = lib/efi/datetime.c lib/datetime.c ## platform sources +nodist_datetime_module_SOURCES = ## platform nodist sources +datetime_module_LDADD = +datetime_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +datetime_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +datetime_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +datetime_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +datetime_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_datetime_module_SOURCES) +CLEANFILES += $(nodist_datetime_module_SOURCES) +MOD_FILES += datetime.mod +MARKER_FILES += datetime.marker +CLEANFILES += datetime.marker + +datetime.marker: $(datetime_module_SOURCES) $(nodist_datetime_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(datetime_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_coreboot +platform_PROGRAMS += datetime.module +MODULE_FILES += datetime.module$(EXEEXT) +datetime_module_SOURCES = lib/dummy/datetime.c lib/datetime.c ## platform sources +nodist_datetime_module_SOURCES = ## platform nodist sources +datetime_module_LDADD = +datetime_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +datetime_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +datetime_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +datetime_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +datetime_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_datetime_module_SOURCES) +CLEANFILES += $(nodist_datetime_module_SOURCES) +MOD_FILES += datetime.mod +MARKER_FILES += datetime.marker +CLEANFILES += datetime.marker + +datetime.marker: $(datetime_module_SOURCES) $(nodist_datetime_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(datetime_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv32_efi +platform_PROGRAMS += datetime.module +MODULE_FILES += datetime.module$(EXEEXT) +datetime_module_SOURCES = lib/efi/datetime.c lib/datetime.c ## platform sources +nodist_datetime_module_SOURCES = ## platform nodist sources +datetime_module_LDADD = +datetime_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +datetime_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +datetime_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +datetime_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +datetime_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_datetime_module_SOURCES) +CLEANFILES += $(nodist_datetime_module_SOURCES) +MOD_FILES += datetime.mod +MARKER_FILES += datetime.marker +CLEANFILES += datetime.marker + +datetime.marker: $(datetime_module_SOURCES) $(nodist_datetime_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(datetime_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv64_efi +platform_PROGRAMS += datetime.module +MODULE_FILES += datetime.module$(EXEEXT) +datetime_module_SOURCES = lib/efi/datetime.c lib/datetime.c ## platform sources +nodist_datetime_module_SOURCES = ## platform nodist sources +datetime_module_LDADD = +datetime_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +datetime_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +datetime_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +datetime_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +datetime_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_datetime_module_SOURCES) +CLEANFILES += $(nodist_datetime_module_SOURCES) +MOD_FILES += datetime.mod +MARKER_FILES += datetime.marker +CLEANFILES += datetime.marker + +datetime.marker: $(datetime_module_SOURCES) $(nodist_datetime_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(datetime_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif +platform_PROGRAMS += setjmp.module +MODULE_FILES += setjmp.module$(EXEEXT) +setjmp_module_SOURCES = lib/setjmp.S ## platform sources +nodist_setjmp_module_SOURCES = ## platform nodist sources +setjmp_module_LDADD = +setjmp_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +setjmp_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +setjmp_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +setjmp_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +setjmp_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += lib/i386/setjmp.S lib/mips/setjmp.S lib/x86_64/setjmp.S lib/sparc64/setjmp.S lib/powerpc/setjmp.S lib/ia64/setjmp.S lib/ia64/longjmp.S lib/arm/setjmp.S lib/arm64/setjmp.S lib/riscv/setjmp.S +BUILT_SOURCES += $(nodist_setjmp_module_SOURCES) +CLEANFILES += $(nodist_setjmp_module_SOURCES) +MOD_FILES += setjmp.mod +MARKER_FILES += setjmp.marker +CLEANFILES += setjmp.marker + +setjmp.marker: $(setjmp_module_SOURCES) $(nodist_setjmp_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(setjmp_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new + +if COND_i386_pc +platform_PROGRAMS += aout.module +MODULE_FILES += aout.module$(EXEEXT) +aout_module_SOURCES = loader/aout.c ## platform sources +nodist_aout_module_SOURCES = ## platform nodist sources +aout_module_LDADD = +aout_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +aout_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +aout_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +aout_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +aout_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_aout_module_SOURCES) +CLEANFILES += $(nodist_aout_module_SOURCES) +MOD_FILES += aout.mod +MARKER_FILES += aout.marker +CLEANFILES += aout.marker + +aout.marker: $(aout_module_SOURCES) $(nodist_aout_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(aout_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += aout.module +MODULE_FILES += aout.module$(EXEEXT) +aout_module_SOURCES = loader/aout.c ## platform sources +nodist_aout_module_SOURCES = ## platform nodist sources +aout_module_LDADD = +aout_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +aout_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +aout_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +aout_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +aout_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_aout_module_SOURCES) +CLEANFILES += $(nodist_aout_module_SOURCES) +MOD_FILES += aout.mod +MARKER_FILES += aout.marker +CLEANFILES += aout.marker + +aout.marker: $(aout_module_SOURCES) $(nodist_aout_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(aout_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += aout.module +MODULE_FILES += aout.module$(EXEEXT) +aout_module_SOURCES = loader/aout.c ## platform sources +nodist_aout_module_SOURCES = ## platform nodist sources +aout_module_LDADD = +aout_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +aout_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +aout_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +aout_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +aout_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_aout_module_SOURCES) +CLEANFILES += $(nodist_aout_module_SOURCES) +MOD_FILES += aout.mod +MARKER_FILES += aout.marker +CLEANFILES += aout.marker + +aout.marker: $(aout_module_SOURCES) $(nodist_aout_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(aout_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += aout.module +MODULE_FILES += aout.module$(EXEEXT) +aout_module_SOURCES = loader/aout.c ## platform sources +nodist_aout_module_SOURCES = ## platform nodist sources +aout_module_LDADD = +aout_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +aout_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +aout_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +aout_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +aout_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_aout_module_SOURCES) +CLEANFILES += $(nodist_aout_module_SOURCES) +MOD_FILES += aout.mod +MARKER_FILES += aout.marker +CLEANFILES += aout.marker + +aout.marker: $(aout_module_SOURCES) $(nodist_aout_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(aout_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += aout.module +MODULE_FILES += aout.module$(EXEEXT) +aout_module_SOURCES = loader/aout.c ## platform sources +nodist_aout_module_SOURCES = ## platform nodist sources +aout_module_LDADD = +aout_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +aout_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +aout_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +aout_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +aout_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_aout_module_SOURCES) +CLEANFILES += $(nodist_aout_module_SOURCES) +MOD_FILES += aout.mod +MARKER_FILES += aout.marker +CLEANFILES += aout.marker + +aout.marker: $(aout_module_SOURCES) $(nodist_aout_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(aout_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += aout.module +MODULE_FILES += aout.module$(EXEEXT) +aout_module_SOURCES = loader/aout.c ## platform sources +nodist_aout_module_SOURCES = ## platform nodist sources +aout_module_LDADD = +aout_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +aout_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +aout_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +aout_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +aout_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_aout_module_SOURCES) +CLEANFILES += $(nodist_aout_module_SOURCES) +MOD_FILES += aout.mod +MARKER_FILES += aout.marker +CLEANFILES += aout.marker + +aout.marker: $(aout_module_SOURCES) $(nodist_aout_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(aout_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += aout.module +MODULE_FILES += aout.module$(EXEEXT) +aout_module_SOURCES = loader/aout.c ## platform sources +nodist_aout_module_SOURCES = ## platform nodist sources +aout_module_LDADD = +aout_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +aout_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +aout_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +aout_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +aout_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_aout_module_SOURCES) +CLEANFILES += $(nodist_aout_module_SOURCES) +MOD_FILES += aout.mod +MARKER_FILES += aout.marker +CLEANFILES += aout.marker + +aout.marker: $(aout_module_SOURCES) $(nodist_aout_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(aout_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += bsd.module +MODULE_FILES += bsd.module$(EXEEXT) +bsd_module_SOURCES = loader/i386/bsd.c loader/i386/bsd32.c loader/i386/bsd64.c ## platform sources +nodist_bsd_module_SOURCES = ## platform nodist sources +bsd_module_LDADD = +bsd_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +bsd_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +bsd_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +bsd_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +bsd_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += loader/i386/bsdXX.c loader/i386/bsd_pagetable.c +BUILT_SOURCES += $(nodist_bsd_module_SOURCES) +CLEANFILES += $(nodist_bsd_module_SOURCES) +MOD_FILES += bsd.mod +MARKER_FILES += bsd.marker +CLEANFILES += bsd.marker + +bsd.marker: $(bsd_module_SOURCES) $(nodist_bsd_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bsd_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += bsd.module +MODULE_FILES += bsd.module$(EXEEXT) +bsd_module_SOURCES = loader/i386/bsd.c loader/i386/bsd32.c loader/i386/bsd64.c ## platform sources +nodist_bsd_module_SOURCES = ## platform nodist sources +bsd_module_LDADD = +bsd_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +bsd_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +bsd_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +bsd_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +bsd_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += loader/i386/bsdXX.c loader/i386/bsd_pagetable.c +BUILT_SOURCES += $(nodist_bsd_module_SOURCES) +CLEANFILES += $(nodist_bsd_module_SOURCES) +MOD_FILES += bsd.mod +MARKER_FILES += bsd.marker +CLEANFILES += bsd.marker + +bsd.marker: $(bsd_module_SOURCES) $(nodist_bsd_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bsd_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += bsd.module +MODULE_FILES += bsd.module$(EXEEXT) +bsd_module_SOURCES = loader/i386/bsd.c loader/i386/bsd32.c loader/i386/bsd64.c ## platform sources +nodist_bsd_module_SOURCES = ## platform nodist sources +bsd_module_LDADD = +bsd_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +bsd_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +bsd_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +bsd_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +bsd_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += loader/i386/bsdXX.c loader/i386/bsd_pagetable.c +BUILT_SOURCES += $(nodist_bsd_module_SOURCES) +CLEANFILES += $(nodist_bsd_module_SOURCES) +MOD_FILES += bsd.mod +MARKER_FILES += bsd.marker +CLEANFILES += bsd.marker + +bsd.marker: $(bsd_module_SOURCES) $(nodist_bsd_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bsd_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += bsd.module +MODULE_FILES += bsd.module$(EXEEXT) +bsd_module_SOURCES = loader/i386/bsd.c loader/i386/bsd32.c loader/i386/bsd64.c ## platform sources +nodist_bsd_module_SOURCES = ## platform nodist sources +bsd_module_LDADD = +bsd_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +bsd_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +bsd_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +bsd_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +bsd_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += loader/i386/bsdXX.c loader/i386/bsd_pagetable.c +BUILT_SOURCES += $(nodist_bsd_module_SOURCES) +CLEANFILES += $(nodist_bsd_module_SOURCES) +MOD_FILES += bsd.mod +MARKER_FILES += bsd.marker +CLEANFILES += bsd.marker + +bsd.marker: $(bsd_module_SOURCES) $(nodist_bsd_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bsd_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += bsd.module +MODULE_FILES += bsd.module$(EXEEXT) +bsd_module_SOURCES = loader/i386/bsd.c loader/i386/bsd32.c loader/i386/bsd64.c ## platform sources +nodist_bsd_module_SOURCES = ## platform nodist sources +bsd_module_LDADD = +bsd_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +bsd_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +bsd_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +bsd_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +bsd_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += loader/i386/bsdXX.c loader/i386/bsd_pagetable.c +BUILT_SOURCES += $(nodist_bsd_module_SOURCES) +CLEANFILES += $(nodist_bsd_module_SOURCES) +MOD_FILES += bsd.mod +MARKER_FILES += bsd.marker +CLEANFILES += bsd.marker + +bsd.marker: $(bsd_module_SOURCES) $(nodist_bsd_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bsd_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += bsd.module +MODULE_FILES += bsd.module$(EXEEXT) +bsd_module_SOURCES = loader/i386/bsd.c loader/i386/bsd32.c loader/i386/bsd64.c ## platform sources +nodist_bsd_module_SOURCES = ## platform nodist sources +bsd_module_LDADD = +bsd_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +bsd_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +bsd_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +bsd_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +bsd_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += loader/i386/bsdXX.c loader/i386/bsd_pagetable.c +BUILT_SOURCES += $(nodist_bsd_module_SOURCES) +CLEANFILES += $(nodist_bsd_module_SOURCES) +MOD_FILES += bsd.mod +MARKER_FILES += bsd.marker +CLEANFILES += bsd.marker + +bsd.marker: $(bsd_module_SOURCES) $(nodist_bsd_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bsd_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += bsd.module +MODULE_FILES += bsd.module$(EXEEXT) +bsd_module_SOURCES = loader/i386/bsd.c loader/i386/bsd32.c loader/i386/bsd64.c ## platform sources +nodist_bsd_module_SOURCES = ## platform nodist sources +bsd_module_LDADD = +bsd_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +bsd_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +bsd_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +bsd_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +bsd_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += loader/i386/bsdXX.c loader/i386/bsd_pagetable.c +BUILT_SOURCES += $(nodist_bsd_module_SOURCES) +CLEANFILES += $(nodist_bsd_module_SOURCES) +MOD_FILES += bsd.mod +MARKER_FILES += bsd.marker +CLEANFILES += bsd.marker + +bsd.marker: $(bsd_module_SOURCES) $(nodist_bsd_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bsd_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += plan9.module +MODULE_FILES += plan9.module$(EXEEXT) +plan9_module_SOURCES = loader/i386/pc/plan9.c ## platform sources +nodist_plan9_module_SOURCES = ## platform nodist sources +plan9_module_LDADD = +plan9_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +plan9_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +plan9_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +plan9_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +plan9_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_plan9_module_SOURCES) +CLEANFILES += $(nodist_plan9_module_SOURCES) +MOD_FILES += plan9.mod +MARKER_FILES += plan9.marker +CLEANFILES += plan9.marker + +plan9.marker: $(plan9_module_SOURCES) $(nodist_plan9_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(plan9_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += linux16.module +MODULE_FILES += linux16.module$(EXEEXT) +linux16_module_SOURCES = loader/i386/pc/linux.c ## platform sources +nodist_linux16_module_SOURCES = ## platform nodist sources +linux16_module_LDADD = +linux16_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +linux16_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +linux16_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +linux16_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +linux16_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_linux16_module_SOURCES) +CLEANFILES += $(nodist_linux16_module_SOURCES) +MOD_FILES += linux16.mod +MARKER_FILES += linux16.marker +CLEANFILES += linux16.marker + +linux16.marker: $(linux16_module_SOURCES) $(nodist_linux16_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(linux16_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += linux16.module +MODULE_FILES += linux16.module$(EXEEXT) +linux16_module_SOURCES = loader/i386/pc/linux.c ## platform sources +nodist_linux16_module_SOURCES = ## platform nodist sources +linux16_module_LDADD = +linux16_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +linux16_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +linux16_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +linux16_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +linux16_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_linux16_module_SOURCES) +CLEANFILES += $(nodist_linux16_module_SOURCES) +MOD_FILES += linux16.mod +MARKER_FILES += linux16.marker +CLEANFILES += linux16.marker + +linux16.marker: $(linux16_module_SOURCES) $(nodist_linux16_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(linux16_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += linux16.module +MODULE_FILES += linux16.module$(EXEEXT) +linux16_module_SOURCES = loader/i386/pc/linux.c ## platform sources +nodist_linux16_module_SOURCES = ## platform nodist sources +linux16_module_LDADD = +linux16_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +linux16_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +linux16_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +linux16_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +linux16_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_linux16_module_SOURCES) +CLEANFILES += $(nodist_linux16_module_SOURCES) +MOD_FILES += linux16.mod +MARKER_FILES += linux16.marker +CLEANFILES += linux16.marker + +linux16.marker: $(linux16_module_SOURCES) $(nodist_linux16_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(linux16_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += linux16.module +MODULE_FILES += linux16.module$(EXEEXT) +linux16_module_SOURCES = loader/i386/pc/linux.c ## platform sources +nodist_linux16_module_SOURCES = ## platform nodist sources +linux16_module_LDADD = +linux16_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +linux16_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +linux16_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +linux16_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +linux16_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_linux16_module_SOURCES) +CLEANFILES += $(nodist_linux16_module_SOURCES) +MOD_FILES += linux16.mod +MARKER_FILES += linux16.marker +CLEANFILES += linux16.marker + +linux16.marker: $(linux16_module_SOURCES) $(nodist_linux16_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(linux16_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += linux16.module +MODULE_FILES += linux16.module$(EXEEXT) +linux16_module_SOURCES = loader/i386/pc/linux.c ## platform sources +nodist_linux16_module_SOURCES = ## platform nodist sources +linux16_module_LDADD = +linux16_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +linux16_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +linux16_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +linux16_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +linux16_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_linux16_module_SOURCES) +CLEANFILES += $(nodist_linux16_module_SOURCES) +MOD_FILES += linux16.mod +MARKER_FILES += linux16.marker +CLEANFILES += linux16.marker + +linux16.marker: $(linux16_module_SOURCES) $(nodist_linux16_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(linux16_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += linux16.module +MODULE_FILES += linux16.module$(EXEEXT) +linux16_module_SOURCES = loader/i386/pc/linux.c ## platform sources +nodist_linux16_module_SOURCES = ## platform nodist sources +linux16_module_LDADD = +linux16_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +linux16_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +linux16_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +linux16_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +linux16_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_linux16_module_SOURCES) +CLEANFILES += $(nodist_linux16_module_SOURCES) +MOD_FILES += linux16.mod +MARKER_FILES += linux16.marker +CLEANFILES += linux16.marker + +linux16.marker: $(linux16_module_SOURCES) $(nodist_linux16_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(linux16_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += linux16.module +MODULE_FILES += linux16.module$(EXEEXT) +linux16_module_SOURCES = loader/i386/pc/linux.c ## platform sources +nodist_linux16_module_SOURCES = ## platform nodist sources +linux16_module_LDADD = +linux16_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +linux16_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +linux16_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +linux16_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +linux16_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_linux16_module_SOURCES) +CLEANFILES += $(nodist_linux16_module_SOURCES) +MOD_FILES += linux16.mod +MARKER_FILES += linux16.marker +CLEANFILES += linux16.marker + +linux16.marker: $(linux16_module_SOURCES) $(nodist_linux16_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(linux16_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += ntldr.module +MODULE_FILES += ntldr.module$(EXEEXT) +ntldr_module_SOURCES = loader/i386/pc/ntldr.c ## platform sources +nodist_ntldr_module_SOURCES = ## platform nodist sources +ntldr_module_LDADD = +ntldr_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +ntldr_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +ntldr_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +ntldr_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +ntldr_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_ntldr_module_SOURCES) +CLEANFILES += $(nodist_ntldr_module_SOURCES) +MOD_FILES += ntldr.mod +MARKER_FILES += ntldr.marker +CLEANFILES += ntldr.marker + +ntldr.marker: $(ntldr_module_SOURCES) $(nodist_ntldr_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ntldr_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += truecrypt.module +MODULE_FILES += truecrypt.module$(EXEEXT) +truecrypt_module_SOURCES = loader/i386/pc/truecrypt.c ## platform sources +nodist_truecrypt_module_SOURCES = ## platform nodist sources +truecrypt_module_LDADD = +truecrypt_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +truecrypt_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +truecrypt_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +truecrypt_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +truecrypt_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_truecrypt_module_SOURCES) +CLEANFILES += $(nodist_truecrypt_module_SOURCES) +MOD_FILES += truecrypt.mod +MARKER_FILES += truecrypt.marker +CLEANFILES += truecrypt.marker + +truecrypt.marker: $(truecrypt_module_SOURCES) $(nodist_truecrypt_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(truecrypt_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += freedos.module +MODULE_FILES += freedos.module$(EXEEXT) +freedos_module_SOURCES = loader/i386/pc/freedos.c ## platform sources +nodist_freedos_module_SOURCES = ## platform nodist sources +freedos_module_LDADD = +freedos_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +freedos_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +freedos_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +freedos_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +freedos_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_freedos_module_SOURCES) +CLEANFILES += $(nodist_freedos_module_SOURCES) +MOD_FILES += freedos.mod +MARKER_FILES += freedos.marker +CLEANFILES += freedos.marker + +freedos.marker: $(freedos_module_SOURCES) $(nodist_freedos_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(freedos_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += pxechain.module +MODULE_FILES += pxechain.module$(EXEEXT) +pxechain_module_SOURCES = loader/i386/pc/pxechainloader.c ## platform sources +nodist_pxechain_module_SOURCES = ## platform nodist sources +pxechain_module_LDADD = +pxechain_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +pxechain_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +pxechain_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +pxechain_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +pxechain_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_pxechain_module_SOURCES) +CLEANFILES += $(nodist_pxechain_module_SOURCES) +MOD_FILES += pxechain.mod +MARKER_FILES += pxechain.marker +CLEANFILES += pxechain.marker + +pxechain.marker: $(pxechain_module_SOURCES) $(nodist_pxechain_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pxechain_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += multiboot2.module +MODULE_FILES += multiboot2.module$(EXEEXT) +multiboot2_module_SOURCES = loader/multiboot.c loader/multiboot_mbi2.c ## platform sources +nodist_multiboot2_module_SOURCES = ## platform nodist sources +multiboot2_module_LDADD = +multiboot2_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +multiboot2_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +multiboot2_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) -DGRUB_USE_MULTIBOOT2 +multiboot2_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +multiboot2_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_multiboot2_module_SOURCES) +CLEANFILES += $(nodist_multiboot2_module_SOURCES) +MOD_FILES += multiboot2.mod +MARKER_FILES += multiboot2.marker +CLEANFILES += multiboot2.marker + +multiboot2.marker: $(multiboot2_module_SOURCES) $(nodist_multiboot2_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(multiboot2_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += multiboot2.module +MODULE_FILES += multiboot2.module$(EXEEXT) +multiboot2_module_SOURCES = loader/multiboot.c loader/multiboot_mbi2.c ## platform sources +nodist_multiboot2_module_SOURCES = ## platform nodist sources +multiboot2_module_LDADD = +multiboot2_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +multiboot2_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +multiboot2_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) -DGRUB_USE_MULTIBOOT2 +multiboot2_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +multiboot2_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_multiboot2_module_SOURCES) +CLEANFILES += $(nodist_multiboot2_module_SOURCES) +MOD_FILES += multiboot2.mod +MARKER_FILES += multiboot2.marker +CLEANFILES += multiboot2.marker + +multiboot2.marker: $(multiboot2_module_SOURCES) $(nodist_multiboot2_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(multiboot2_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += multiboot2.module +MODULE_FILES += multiboot2.module$(EXEEXT) +multiboot2_module_SOURCES = loader/multiboot.c loader/multiboot_mbi2.c ## platform sources +nodist_multiboot2_module_SOURCES = ## platform nodist sources +multiboot2_module_LDADD = +multiboot2_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +multiboot2_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +multiboot2_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) -DGRUB_USE_MULTIBOOT2 +multiboot2_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +multiboot2_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_multiboot2_module_SOURCES) +CLEANFILES += $(nodist_multiboot2_module_SOURCES) +MOD_FILES += multiboot2.mod +MARKER_FILES += multiboot2.marker +CLEANFILES += multiboot2.marker + +multiboot2.marker: $(multiboot2_module_SOURCES) $(nodist_multiboot2_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(multiboot2_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += multiboot2.module +MODULE_FILES += multiboot2.module$(EXEEXT) +multiboot2_module_SOURCES = loader/multiboot.c loader/multiboot_mbi2.c ## platform sources +nodist_multiboot2_module_SOURCES = ## platform nodist sources +multiboot2_module_LDADD = +multiboot2_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +multiboot2_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +multiboot2_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) -DGRUB_USE_MULTIBOOT2 +multiboot2_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +multiboot2_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_multiboot2_module_SOURCES) +CLEANFILES += $(nodist_multiboot2_module_SOURCES) +MOD_FILES += multiboot2.mod +MARKER_FILES += multiboot2.marker +CLEANFILES += multiboot2.marker + +multiboot2.marker: $(multiboot2_module_SOURCES) $(nodist_multiboot2_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(multiboot2_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += multiboot2.module +MODULE_FILES += multiboot2.module$(EXEEXT) +multiboot2_module_SOURCES = loader/multiboot.c loader/multiboot_mbi2.c ## platform sources +nodist_multiboot2_module_SOURCES = ## platform nodist sources +multiboot2_module_LDADD = +multiboot2_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +multiboot2_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +multiboot2_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) -DGRUB_USE_MULTIBOOT2 +multiboot2_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +multiboot2_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_multiboot2_module_SOURCES) +CLEANFILES += $(nodist_multiboot2_module_SOURCES) +MOD_FILES += multiboot2.mod +MARKER_FILES += multiboot2.marker +CLEANFILES += multiboot2.marker + +multiboot2.marker: $(multiboot2_module_SOURCES) $(nodist_multiboot2_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(multiboot2_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += multiboot2.module +MODULE_FILES += multiboot2.module$(EXEEXT) +multiboot2_module_SOURCES = loader/multiboot.c loader/multiboot_mbi2.c ## platform sources +nodist_multiboot2_module_SOURCES = ## platform nodist sources +multiboot2_module_LDADD = +multiboot2_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +multiboot2_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +multiboot2_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) -DGRUB_USE_MULTIBOOT2 +multiboot2_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +multiboot2_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_multiboot2_module_SOURCES) +CLEANFILES += $(nodist_multiboot2_module_SOURCES) +MOD_FILES += multiboot2.mod +MARKER_FILES += multiboot2.marker +CLEANFILES += multiboot2.marker + +multiboot2.marker: $(multiboot2_module_SOURCES) $(nodist_multiboot2_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(multiboot2_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += multiboot2.module +MODULE_FILES += multiboot2.module$(EXEEXT) +multiboot2_module_SOURCES = loader/multiboot.c loader/multiboot_mbi2.c ## platform sources +nodist_multiboot2_module_SOURCES = ## platform nodist sources +multiboot2_module_LDADD = +multiboot2_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +multiboot2_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +multiboot2_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) -DGRUB_USE_MULTIBOOT2 +multiboot2_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +multiboot2_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_multiboot2_module_SOURCES) +CLEANFILES += $(nodist_multiboot2_module_SOURCES) +MOD_FILES += multiboot2.mod +MARKER_FILES += multiboot2.marker +CLEANFILES += multiboot2.marker + +multiboot2.marker: $(multiboot2_module_SOURCES) $(nodist_multiboot2_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(multiboot2_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_xen_pvh +platform_PROGRAMS += multiboot2.module +MODULE_FILES += multiboot2.module$(EXEEXT) +multiboot2_module_SOURCES = loader/multiboot.c loader/multiboot_mbi2.c ## platform sources +nodist_multiboot2_module_SOURCES = ## platform nodist sources +multiboot2_module_LDADD = +multiboot2_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +multiboot2_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +multiboot2_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) -DGRUB_USE_MULTIBOOT2 +multiboot2_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +multiboot2_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_multiboot2_module_SOURCES) +CLEANFILES += $(nodist_multiboot2_module_SOURCES) +MOD_FILES += multiboot2.mod +MARKER_FILES += multiboot2.marker +CLEANFILES += multiboot2.marker + +multiboot2.marker: $(multiboot2_module_SOURCES) $(nodist_multiboot2_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(multiboot2_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_loongson +platform_PROGRAMS += multiboot2.module +MODULE_FILES += multiboot2.module$(EXEEXT) +multiboot2_module_SOURCES = loader/multiboot.c loader/multiboot_mbi2.c ## platform sources +nodist_multiboot2_module_SOURCES = ## platform nodist sources +multiboot2_module_LDADD = +multiboot2_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +multiboot2_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +multiboot2_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) -DGRUB_USE_MULTIBOOT2 +multiboot2_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +multiboot2_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_multiboot2_module_SOURCES) +CLEANFILES += $(nodist_multiboot2_module_SOURCES) +MOD_FILES += multiboot2.mod +MARKER_FILES += multiboot2.marker +CLEANFILES += multiboot2.marker + +multiboot2.marker: $(multiboot2_module_SOURCES) $(nodist_multiboot2_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(multiboot2_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_arc +platform_PROGRAMS += multiboot2.module +MODULE_FILES += multiboot2.module$(EXEEXT) +multiboot2_module_SOURCES = loader/multiboot.c loader/multiboot_mbi2.c ## platform sources +nodist_multiboot2_module_SOURCES = ## platform nodist sources +multiboot2_module_LDADD = +multiboot2_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +multiboot2_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +multiboot2_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) -DGRUB_USE_MULTIBOOT2 +multiboot2_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +multiboot2_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_multiboot2_module_SOURCES) +CLEANFILES += $(nodist_multiboot2_module_SOURCES) +MOD_FILES += multiboot2.mod +MARKER_FILES += multiboot2.marker +CLEANFILES += multiboot2.marker + +multiboot2.marker: $(multiboot2_module_SOURCES) $(nodist_multiboot2_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(multiboot2_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_qemu_mips +platform_PROGRAMS += multiboot2.module +MODULE_FILES += multiboot2.module$(EXEEXT) +multiboot2_module_SOURCES = loader/multiboot.c loader/multiboot_mbi2.c ## platform sources +nodist_multiboot2_module_SOURCES = ## platform nodist sources +multiboot2_module_LDADD = +multiboot2_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +multiboot2_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +multiboot2_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) -DGRUB_USE_MULTIBOOT2 +multiboot2_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +multiboot2_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_multiboot2_module_SOURCES) +CLEANFILES += $(nodist_multiboot2_module_SOURCES) +MOD_FILES += multiboot2.mod +MARKER_FILES += multiboot2.marker +CLEANFILES += multiboot2.marker + +multiboot2.marker: $(multiboot2_module_SOURCES) $(nodist_multiboot2_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(multiboot2_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += multiboot.module +MODULE_FILES += multiboot.module$(EXEEXT) +multiboot_module_SOURCES = loader/i386/multiboot_mbi.c loader/multiboot.c ## platform sources +nodist_multiboot_module_SOURCES = ## platform nodist sources +multiboot_module_LDADD = +multiboot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +multiboot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +multiboot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +multiboot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +multiboot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += loader/multiboot_elfxx.c +BUILT_SOURCES += $(nodist_multiboot_module_SOURCES) +CLEANFILES += $(nodist_multiboot_module_SOURCES) +MOD_FILES += multiboot.mod +MARKER_FILES += multiboot.marker +CLEANFILES += multiboot.marker + +multiboot.marker: $(multiboot_module_SOURCES) $(nodist_multiboot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(multiboot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += multiboot.module +MODULE_FILES += multiboot.module$(EXEEXT) +multiboot_module_SOURCES = loader/i386/multiboot_mbi.c loader/multiboot.c ## platform sources +nodist_multiboot_module_SOURCES = ## platform nodist sources +multiboot_module_LDADD = +multiboot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +multiboot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +multiboot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +multiboot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +multiboot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += loader/multiboot_elfxx.c +BUILT_SOURCES += $(nodist_multiboot_module_SOURCES) +CLEANFILES += $(nodist_multiboot_module_SOURCES) +MOD_FILES += multiboot.mod +MARKER_FILES += multiboot.marker +CLEANFILES += multiboot.marker + +multiboot.marker: $(multiboot_module_SOURCES) $(nodist_multiboot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(multiboot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += multiboot.module +MODULE_FILES += multiboot.module$(EXEEXT) +multiboot_module_SOURCES = loader/i386/multiboot_mbi.c loader/multiboot.c ## platform sources +nodist_multiboot_module_SOURCES = ## platform nodist sources +multiboot_module_LDADD = +multiboot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +multiboot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +multiboot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +multiboot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +multiboot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += loader/multiboot_elfxx.c +BUILT_SOURCES += $(nodist_multiboot_module_SOURCES) +CLEANFILES += $(nodist_multiboot_module_SOURCES) +MOD_FILES += multiboot.mod +MARKER_FILES += multiboot.marker +CLEANFILES += multiboot.marker + +multiboot.marker: $(multiboot_module_SOURCES) $(nodist_multiboot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(multiboot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += multiboot.module +MODULE_FILES += multiboot.module$(EXEEXT) +multiboot_module_SOURCES = loader/i386/multiboot_mbi.c loader/multiboot.c ## platform sources +nodist_multiboot_module_SOURCES = ## platform nodist sources +multiboot_module_LDADD = +multiboot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +multiboot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +multiboot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +multiboot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +multiboot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += loader/multiboot_elfxx.c +BUILT_SOURCES += $(nodist_multiboot_module_SOURCES) +CLEANFILES += $(nodist_multiboot_module_SOURCES) +MOD_FILES += multiboot.mod +MARKER_FILES += multiboot.marker +CLEANFILES += multiboot.marker + +multiboot.marker: $(multiboot_module_SOURCES) $(nodist_multiboot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(multiboot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += multiboot.module +MODULE_FILES += multiboot.module$(EXEEXT) +multiboot_module_SOURCES = loader/i386/multiboot_mbi.c loader/multiboot.c ## platform sources +nodist_multiboot_module_SOURCES = ## platform nodist sources +multiboot_module_LDADD = +multiboot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +multiboot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +multiboot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +multiboot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +multiboot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += loader/multiboot_elfxx.c +BUILT_SOURCES += $(nodist_multiboot_module_SOURCES) +CLEANFILES += $(nodist_multiboot_module_SOURCES) +MOD_FILES += multiboot.mod +MARKER_FILES += multiboot.marker +CLEANFILES += multiboot.marker + +multiboot.marker: $(multiboot_module_SOURCES) $(nodist_multiboot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(multiboot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += multiboot.module +MODULE_FILES += multiboot.module$(EXEEXT) +multiboot_module_SOURCES = loader/i386/multiboot_mbi.c loader/multiboot.c ## platform sources +nodist_multiboot_module_SOURCES = ## platform nodist sources +multiboot_module_LDADD = +multiboot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +multiboot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +multiboot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +multiboot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +multiboot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += loader/multiboot_elfxx.c +BUILT_SOURCES += $(nodist_multiboot_module_SOURCES) +CLEANFILES += $(nodist_multiboot_module_SOURCES) +MOD_FILES += multiboot.mod +MARKER_FILES += multiboot.marker +CLEANFILES += multiboot.marker + +multiboot.marker: $(multiboot_module_SOURCES) $(nodist_multiboot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(multiboot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += multiboot.module +MODULE_FILES += multiboot.module$(EXEEXT) +multiboot_module_SOURCES = loader/i386/multiboot_mbi.c loader/multiboot.c ## platform sources +nodist_multiboot_module_SOURCES = ## platform nodist sources +multiboot_module_LDADD = +multiboot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +multiboot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +multiboot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +multiboot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +multiboot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += loader/multiboot_elfxx.c +BUILT_SOURCES += $(nodist_multiboot_module_SOURCES) +CLEANFILES += $(nodist_multiboot_module_SOURCES) +MOD_FILES += multiboot.mod +MARKER_FILES += multiboot.marker +CLEANFILES += multiboot.marker + +multiboot.marker: $(multiboot_module_SOURCES) $(nodist_multiboot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(multiboot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_xen_pvh +platform_PROGRAMS += multiboot.module +MODULE_FILES += multiboot.module$(EXEEXT) +multiboot_module_SOURCES = loader/i386/multiboot_mbi.c loader/multiboot.c ## platform sources +nodist_multiboot_module_SOURCES = ## platform nodist sources +multiboot_module_LDADD = +multiboot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +multiboot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +multiboot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +multiboot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +multiboot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += loader/multiboot_elfxx.c +BUILT_SOURCES += $(nodist_multiboot_module_SOURCES) +CLEANFILES += $(nodist_multiboot_module_SOURCES) +MOD_FILES += multiboot.mod +MARKER_FILES += multiboot.marker +CLEANFILES += multiboot.marker + +multiboot.marker: $(multiboot_module_SOURCES) $(nodist_multiboot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(multiboot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm64_efi +platform_PROGRAMS += xen_boot.module +MODULE_FILES += xen_boot.module$(EXEEXT) +xen_boot_module_SOURCES = loader/arm64/xen_boot.c ## platform sources +nodist_xen_boot_module_SOURCES = ## platform nodist sources +xen_boot_module_LDADD = +xen_boot_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +xen_boot_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +xen_boot_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +xen_boot_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +xen_boot_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_xen_boot_module_SOURCES) +CLEANFILES += $(nodist_xen_boot_module_SOURCES) +MOD_FILES += xen_boot.mod +MARKER_FILES += xen_boot.marker +CLEANFILES += xen_boot.marker + +xen_boot.marker: $(xen_boot_module_SOURCES) $(nodist_xen_boot_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xen_boot_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += linux.module +MODULE_FILES += linux.module$(EXEEXT) +linux_module_SOURCES = lib/i386/pc/vesa_modes_table.c loader/i386/linux.c loader/linux.c lib/cmdline.c ## platform sources +nodist_linux_module_SOURCES = ## platform nodist sources +linux_module_LDADD = +linux_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +linux_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +linux_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +linux_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +linux_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_linux_module_SOURCES) +CLEANFILES += $(nodist_linux_module_SOURCES) +MOD_FILES += linux.mod +MARKER_FILES += linux.marker +CLEANFILES += linux.marker + +linux.marker: $(linux_module_SOURCES) $(nodist_linux_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(linux_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += linux.module +MODULE_FILES += linux.module$(EXEEXT) +linux_module_SOURCES = loader/i386/linux.c loader/linux.c lib/cmdline.c ## platform sources +nodist_linux_module_SOURCES = ## platform nodist sources +linux_module_LDADD = +linux_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +linux_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +linux_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +linux_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +linux_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_linux_module_SOURCES) +CLEANFILES += $(nodist_linux_module_SOURCES) +MOD_FILES += linux.mod +MARKER_FILES += linux.marker +CLEANFILES += linux.marker + +linux.marker: $(linux_module_SOURCES) $(nodist_linux_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(linux_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += linux.module +MODULE_FILES += linux.module$(EXEEXT) +linux_module_SOURCES = loader/i386/linux.c loader/linux.c lib/cmdline.c ## platform sources +nodist_linux_module_SOURCES = ## platform nodist sources +linux_module_LDADD = +linux_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +linux_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +linux_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +linux_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +linux_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_linux_module_SOURCES) +CLEANFILES += $(nodist_linux_module_SOURCES) +MOD_FILES += linux.mod +MARKER_FILES += linux.marker +CLEANFILES += linux.marker + +linux.marker: $(linux_module_SOURCES) $(nodist_linux_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(linux_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += linux.module +MODULE_FILES += linux.module$(EXEEXT) +linux_module_SOURCES = loader/i386/linux.c loader/linux.c lib/cmdline.c ## platform sources +nodist_linux_module_SOURCES = ## platform nodist sources +linux_module_LDADD = +linux_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +linux_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +linux_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +linux_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +linux_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_linux_module_SOURCES) +CLEANFILES += $(nodist_linux_module_SOURCES) +MOD_FILES += linux.mod +MARKER_FILES += linux.marker +CLEANFILES += linux.marker + +linux.marker: $(linux_module_SOURCES) $(nodist_linux_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(linux_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += linux.module +MODULE_FILES += linux.module$(EXEEXT) +linux_module_SOURCES = loader/i386/linux.c loader/linux.c lib/cmdline.c ## platform sources +nodist_linux_module_SOURCES = ## platform nodist sources +linux_module_LDADD = +linux_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +linux_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +linux_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +linux_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +linux_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_linux_module_SOURCES) +CLEANFILES += $(nodist_linux_module_SOURCES) +MOD_FILES += linux.mod +MARKER_FILES += linux.marker +CLEANFILES += linux.marker + +linux.marker: $(linux_module_SOURCES) $(nodist_linux_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(linux_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += linux.module +MODULE_FILES += linux.module$(EXEEXT) +linux_module_SOURCES = loader/i386/linux.c loader/linux.c lib/cmdline.c ## platform sources +nodist_linux_module_SOURCES = ## platform nodist sources +linux_module_LDADD = +linux_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +linux_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +linux_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +linux_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +linux_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_linux_module_SOURCES) +CLEANFILES += $(nodist_linux_module_SOURCES) +MOD_FILES += linux.mod +MARKER_FILES += linux.marker +CLEANFILES += linux.marker + +linux.marker: $(linux_module_SOURCES) $(nodist_linux_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(linux_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += linux.module +MODULE_FILES += linux.module$(EXEEXT) +linux_module_SOURCES = loader/i386/linux.c loader/linux.c lib/cmdline.c ## platform sources +nodist_linux_module_SOURCES = ## platform nodist sources +linux_module_LDADD = +linux_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +linux_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +linux_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +linux_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +linux_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_linux_module_SOURCES) +CLEANFILES += $(nodist_linux_module_SOURCES) +MOD_FILES += linux.mod +MARKER_FILES += linux.marker +CLEANFILES += linux.marker + +linux.marker: $(linux_module_SOURCES) $(nodist_linux_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(linux_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_xen +platform_PROGRAMS += linux.module +MODULE_FILES += linux.module$(EXEEXT) +linux_module_SOURCES = loader/i386/xen.c loader/linux.c lib/cmdline.c ## platform sources +nodist_linux_module_SOURCES = ## platform nodist sources +linux_module_LDADD = +linux_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +linux_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +linux_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +linux_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +linux_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_linux_module_SOURCES) +CLEANFILES += $(nodist_linux_module_SOURCES) +MOD_FILES += linux.mod +MARKER_FILES += linux.marker +CLEANFILES += linux.marker + +linux.marker: $(linux_module_SOURCES) $(nodist_linux_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(linux_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_xen +platform_PROGRAMS += linux.module +MODULE_FILES += linux.module$(EXEEXT) +linux_module_SOURCES = loader/i386/xen.c loader/linux.c lib/cmdline.c ## platform sources +nodist_linux_module_SOURCES = ## platform nodist sources +linux_module_LDADD = +linux_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +linux_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +linux_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +linux_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +linux_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_linux_module_SOURCES) +CLEANFILES += $(nodist_linux_module_SOURCES) +MOD_FILES += linux.mod +MARKER_FILES += linux.marker +CLEANFILES += linux.marker + +linux.marker: $(linux_module_SOURCES) $(nodist_linux_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(linux_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_xen_pvh +platform_PROGRAMS += linux.module +MODULE_FILES += linux.module$(EXEEXT) +linux_module_SOURCES = loader/i386/linux.c lib/i386/pc/vesa_modes_table.c loader/linux.c lib/cmdline.c ## platform sources +nodist_linux_module_SOURCES = ## platform nodist sources +linux_module_LDADD = +linux_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +linux_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +linux_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +linux_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +linux_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_linux_module_SOURCES) +CLEANFILES += $(nodist_linux_module_SOURCES) +MOD_FILES += linux.mod +MARKER_FILES += linux.marker +CLEANFILES += linux.marker + +linux.marker: $(linux_module_SOURCES) $(nodist_linux_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(linux_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_loongson +platform_PROGRAMS += linux.module +MODULE_FILES += linux.module$(EXEEXT) +linux_module_SOURCES = loader/mips/linux.c loader/linux.c lib/cmdline.c ## platform sources +nodist_linux_module_SOURCES = ## platform nodist sources +linux_module_LDADD = +linux_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +linux_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +linux_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +linux_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +linux_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_linux_module_SOURCES) +CLEANFILES += $(nodist_linux_module_SOURCES) +MOD_FILES += linux.mod +MARKER_FILES += linux.marker +CLEANFILES += linux.marker + +linux.marker: $(linux_module_SOURCES) $(nodist_linux_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(linux_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_sparc64_ieee1275 +platform_PROGRAMS += linux.module +MODULE_FILES += linux.module$(EXEEXT) +linux_module_SOURCES = loader/sparc64/ieee1275/linux.c loader/linux.c lib/cmdline.c ## platform sources +nodist_linux_module_SOURCES = ## platform nodist sources +linux_module_LDADD = +linux_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +linux_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +linux_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +linux_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +linux_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_linux_module_SOURCES) +CLEANFILES += $(nodist_linux_module_SOURCES) +MOD_FILES += linux.mod +MARKER_FILES += linux.marker +CLEANFILES += linux.marker + +linux.marker: $(linux_module_SOURCES) $(nodist_linux_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(linux_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_powerpc_ieee1275 +platform_PROGRAMS += linux.module +MODULE_FILES += linux.module$(EXEEXT) +linux_module_SOURCES = loader/powerpc/ieee1275/linux.c loader/linux.c lib/cmdline.c ## platform sources +nodist_linux_module_SOURCES = ## platform nodist sources +linux_module_LDADD = +linux_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +linux_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +linux_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +linux_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +linux_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_linux_module_SOURCES) +CLEANFILES += $(nodist_linux_module_SOURCES) +MOD_FILES += linux.mod +MARKER_FILES += linux.marker +CLEANFILES += linux.marker + +linux.marker: $(linux_module_SOURCES) $(nodist_linux_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(linux_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_arc +platform_PROGRAMS += linux.module +MODULE_FILES += linux.module$(EXEEXT) +linux_module_SOURCES = loader/mips/linux.c loader/linux.c lib/cmdline.c ## platform sources +nodist_linux_module_SOURCES = ## platform nodist sources +linux_module_LDADD = +linux_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +linux_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +linux_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +linux_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +linux_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_linux_module_SOURCES) +CLEANFILES += $(nodist_linux_module_SOURCES) +MOD_FILES += linux.mod +MARKER_FILES += linux.marker +CLEANFILES += linux.marker + +linux.marker: $(linux_module_SOURCES) $(nodist_linux_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(linux_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_ia64_efi +platform_PROGRAMS += linux.module +MODULE_FILES += linux.module$(EXEEXT) +linux_module_SOURCES = loader/ia64/efi/linux.c loader/linux.c lib/cmdline.c ## platform sources +nodist_linux_module_SOURCES = ## platform nodist sources +linux_module_LDADD = +linux_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +linux_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +linux_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +linux_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +linux_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_linux_module_SOURCES) +CLEANFILES += $(nodist_linux_module_SOURCES) +MOD_FILES += linux.mod +MARKER_FILES += linux.marker +CLEANFILES += linux.marker + +linux.marker: $(linux_module_SOURCES) $(nodist_linux_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(linux_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_qemu_mips +platform_PROGRAMS += linux.module +MODULE_FILES += linux.module$(EXEEXT) +linux_module_SOURCES = loader/mips/linux.c loader/linux.c lib/cmdline.c ## platform sources +nodist_linux_module_SOURCES = ## platform nodist sources +linux_module_LDADD = +linux_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +linux_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +linux_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +linux_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +linux_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_linux_module_SOURCES) +CLEANFILES += $(nodist_linux_module_SOURCES) +MOD_FILES += linux.mod +MARKER_FILES += linux.marker +CLEANFILES += linux.marker + +linux.marker: $(linux_module_SOURCES) $(nodist_linux_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(linux_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_uboot +platform_PROGRAMS += linux.module +MODULE_FILES += linux.module$(EXEEXT) +linux_module_SOURCES = loader/arm/linux.c loader/linux.c lib/cmdline.c ## platform sources +nodist_linux_module_SOURCES = ## platform nodist sources +linux_module_LDADD = +linux_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +linux_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +linux_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +linux_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +linux_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_linux_module_SOURCES) +CLEANFILES += $(nodist_linux_module_SOURCES) +MOD_FILES += linux.mod +MARKER_FILES += linux.marker +CLEANFILES += linux.marker + +linux.marker: $(linux_module_SOURCES) $(nodist_linux_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(linux_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_efi +platform_PROGRAMS += linux.module +MODULE_FILES += linux.module$(EXEEXT) +linux_module_SOURCES = loader/arm64/linux.c loader/linux.c lib/cmdline.c ## platform sources +nodist_linux_module_SOURCES = ## platform nodist sources +linux_module_LDADD = +linux_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +linux_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +linux_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +linux_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +linux_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_linux_module_SOURCES) +CLEANFILES += $(nodist_linux_module_SOURCES) +MOD_FILES += linux.mod +MARKER_FILES += linux.marker +CLEANFILES += linux.marker + +linux.marker: $(linux_module_SOURCES) $(nodist_linux_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(linux_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm64_efi +platform_PROGRAMS += linux.module +MODULE_FILES += linux.module$(EXEEXT) +linux_module_SOURCES = loader/arm64/linux.c loader/linux.c lib/cmdline.c ## platform sources +nodist_linux_module_SOURCES = ## platform nodist sources +linux_module_LDADD = +linux_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +linux_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +linux_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +linux_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +linux_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_linux_module_SOURCES) +CLEANFILES += $(nodist_linux_module_SOURCES) +MOD_FILES += linux.mod +MARKER_FILES += linux.marker +CLEANFILES += linux.marker + +linux.marker: $(linux_module_SOURCES) $(nodist_linux_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(linux_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_coreboot +platform_PROGRAMS += linux.module +MODULE_FILES += linux.module$(EXEEXT) +linux_module_SOURCES = loader/arm/linux.c loader/linux.c lib/cmdline.c ## platform sources +nodist_linux_module_SOURCES = ## platform nodist sources +linux_module_LDADD = +linux_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +linux_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +linux_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +linux_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +linux_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_linux_module_SOURCES) +CLEANFILES += $(nodist_linux_module_SOURCES) +MOD_FILES += linux.mod +MARKER_FILES += linux.marker +CLEANFILES += linux.marker + +linux.marker: $(linux_module_SOURCES) $(nodist_linux_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(linux_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv32_efi +platform_PROGRAMS += linux.module +MODULE_FILES += linux.module$(EXEEXT) +linux_module_SOURCES = loader/riscv/linux.c loader/linux.c lib/cmdline.c ## platform sources +nodist_linux_module_SOURCES = ## platform nodist sources +linux_module_LDADD = +linux_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +linux_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +linux_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +linux_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +linux_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_linux_module_SOURCES) +CLEANFILES += $(nodist_linux_module_SOURCES) +MOD_FILES += linux.mod +MARKER_FILES += linux.marker +CLEANFILES += linux.marker + +linux.marker: $(linux_module_SOURCES) $(nodist_linux_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(linux_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv64_efi +platform_PROGRAMS += linux.module +MODULE_FILES += linux.module$(EXEEXT) +linux_module_SOURCES = loader/riscv/linux.c loader/linux.c lib/cmdline.c ## platform sources +nodist_linux_module_SOURCES = ## platform nodist sources +linux_module_LDADD = +linux_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +linux_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +linux_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +linux_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +linux_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_linux_module_SOURCES) +CLEANFILES += $(nodist_linux_module_SOURCES) +MOD_FILES += linux.mod +MARKER_FILES += linux.marker +CLEANFILES += linux.marker + +linux.marker: $(linux_module_SOURCES) $(nodist_linux_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(linux_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_uboot +platform_PROGRAMS += fdt.module +MODULE_FILES += fdt.module$(EXEEXT) +fdt_module_SOURCES = lib/fdt.c ## platform sources +nodist_fdt_module_SOURCES = ## platform nodist sources +fdt_module_LDADD = +fdt_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +fdt_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +fdt_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +fdt_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +fdt_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_fdt_module_SOURCES) +CLEANFILES += $(nodist_fdt_module_SOURCES) +MOD_FILES += fdt.mod +MARKER_FILES += fdt.marker +CLEANFILES += fdt.marker + +fdt.marker: $(fdt_module_SOURCES) $(nodist_fdt_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(fdt_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_efi +platform_PROGRAMS += fdt.module +MODULE_FILES += fdt.module$(EXEEXT) +fdt_module_SOURCES = loader/efi/fdt.c lib/fdt.c ## platform sources +nodist_fdt_module_SOURCES = ## platform nodist sources +fdt_module_LDADD = +fdt_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +fdt_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +fdt_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +fdt_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +fdt_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_fdt_module_SOURCES) +CLEANFILES += $(nodist_fdt_module_SOURCES) +MOD_FILES += fdt.mod +MARKER_FILES += fdt.marker +CLEANFILES += fdt.marker + +fdt.marker: $(fdt_module_SOURCES) $(nodist_fdt_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(fdt_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm64_efi +platform_PROGRAMS += fdt.module +MODULE_FILES += fdt.module$(EXEEXT) +fdt_module_SOURCES = loader/efi/fdt.c lib/fdt.c ## platform sources +nodist_fdt_module_SOURCES = ## platform nodist sources +fdt_module_LDADD = +fdt_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +fdt_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +fdt_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +fdt_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +fdt_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_fdt_module_SOURCES) +CLEANFILES += $(nodist_fdt_module_SOURCES) +MOD_FILES += fdt.mod +MARKER_FILES += fdt.marker +CLEANFILES += fdt.marker + +fdt.marker: $(fdt_module_SOURCES) $(nodist_fdt_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(fdt_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv32_efi +platform_PROGRAMS += fdt.module +MODULE_FILES += fdt.module$(EXEEXT) +fdt_module_SOURCES = loader/efi/fdt.c lib/fdt.c ## platform sources +nodist_fdt_module_SOURCES = ## platform nodist sources +fdt_module_LDADD = +fdt_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +fdt_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +fdt_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +fdt_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +fdt_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_fdt_module_SOURCES) +CLEANFILES += $(nodist_fdt_module_SOURCES) +MOD_FILES += fdt.mod +MARKER_FILES += fdt.marker +CLEANFILES += fdt.marker + +fdt.marker: $(fdt_module_SOURCES) $(nodist_fdt_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(fdt_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv64_efi +platform_PROGRAMS += fdt.module +MODULE_FILES += fdt.module$(EXEEXT) +fdt_module_SOURCES = loader/efi/fdt.c lib/fdt.c ## platform sources +nodist_fdt_module_SOURCES = ## platform nodist sources +fdt_module_LDADD = +fdt_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +fdt_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +fdt_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +fdt_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +fdt_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_fdt_module_SOURCES) +CLEANFILES += $(nodist_fdt_module_SOURCES) +MOD_FILES += fdt.mod +MARKER_FILES += fdt.marker +CLEANFILES += fdt.marker + +fdt.marker: $(fdt_module_SOURCES) $(nodist_fdt_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(fdt_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += xnu.module +MODULE_FILES += xnu.module$(EXEEXT) +xnu_module_SOURCES = loader/xnu_resume.c loader/i386/xnu.c loader/xnu.c ## platform sources +nodist_xnu_module_SOURCES = ## platform nodist sources +xnu_module_LDADD = +xnu_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +xnu_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +xnu_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +xnu_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +xnu_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_xnu_module_SOURCES) +CLEANFILES += $(nodist_xnu_module_SOURCES) +MOD_FILES += xnu.mod +MARKER_FILES += xnu.marker +CLEANFILES += xnu.marker + +xnu.marker: $(xnu_module_SOURCES) $(nodist_xnu_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xnu_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += xnu.module +MODULE_FILES += xnu.module$(EXEEXT) +xnu_module_SOURCES = loader/xnu_resume.c loader/i386/xnu.c loader/xnu.c ## platform sources +nodist_xnu_module_SOURCES = ## platform nodist sources +xnu_module_LDADD = +xnu_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +xnu_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +xnu_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +xnu_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +xnu_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_xnu_module_SOURCES) +CLEANFILES += $(nodist_xnu_module_SOURCES) +MOD_FILES += xnu.mod +MARKER_FILES += xnu.marker +CLEANFILES += xnu.marker + +xnu.marker: $(xnu_module_SOURCES) $(nodist_xnu_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xnu_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += xnu.module +MODULE_FILES += xnu.module$(EXEEXT) +xnu_module_SOURCES = loader/xnu_resume.c loader/i386/xnu.c loader/xnu.c ## platform sources +nodist_xnu_module_SOURCES = ## platform nodist sources +xnu_module_LDADD = +xnu_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +xnu_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +xnu_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +xnu_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +xnu_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_xnu_module_SOURCES) +CLEANFILES += $(nodist_xnu_module_SOURCES) +MOD_FILES += xnu.mod +MARKER_FILES += xnu.marker +CLEANFILES += xnu.marker + +xnu.marker: $(xnu_module_SOURCES) $(nodist_xnu_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xnu_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += xnu.module +MODULE_FILES += xnu.module$(EXEEXT) +xnu_module_SOURCES = loader/xnu_resume.c loader/i386/xnu.c loader/xnu.c ## platform sources +nodist_xnu_module_SOURCES = ## platform nodist sources +xnu_module_LDADD = +xnu_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +xnu_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +xnu_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +xnu_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +xnu_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_xnu_module_SOURCES) +CLEANFILES += $(nodist_xnu_module_SOURCES) +MOD_FILES += xnu.mod +MARKER_FILES += xnu.marker +CLEANFILES += xnu.marker + +xnu.marker: $(xnu_module_SOURCES) $(nodist_xnu_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xnu_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += xnu.module +MODULE_FILES += xnu.module$(EXEEXT) +xnu_module_SOURCES = loader/xnu_resume.c loader/i386/xnu.c loader/xnu.c ## platform sources +nodist_xnu_module_SOURCES = ## platform nodist sources +xnu_module_LDADD = +xnu_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +xnu_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +xnu_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +xnu_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +xnu_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_xnu_module_SOURCES) +CLEANFILES += $(nodist_xnu_module_SOURCES) +MOD_FILES += xnu.mod +MARKER_FILES += xnu.marker +CLEANFILES += xnu.marker + +xnu.marker: $(xnu_module_SOURCES) $(nodist_xnu_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xnu_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += random.module +MODULE_FILES += random.module$(EXEEXT) +random_module_SOURCES = kern/i386/tsc_pmtimer.c lib/i386/random.c lib/random.c ## platform sources +nodist_random_module_SOURCES = ## platform nodist sources +random_module_LDADD = +random_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +random_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +random_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +random_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +random_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_random_module_SOURCES) +CLEANFILES += $(nodist_random_module_SOURCES) +MOD_FILES += random.mod +MARKER_FILES += random.marker +CLEANFILES += random.marker + +random.marker: $(random_module_SOURCES) $(nodist_random_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(random_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += random.module +MODULE_FILES += random.module$(EXEEXT) +random_module_SOURCES = lib/i386/random.c lib/random.c ## platform sources +nodist_random_module_SOURCES = ## platform nodist sources +random_module_LDADD = +random_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +random_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +random_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +random_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +random_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_random_module_SOURCES) +CLEANFILES += $(nodist_random_module_SOURCES) +MOD_FILES += random.mod +MARKER_FILES += random.marker +CLEANFILES += random.marker + +random.marker: $(random_module_SOURCES) $(nodist_random_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(random_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += random.module +MODULE_FILES += random.module$(EXEEXT) +random_module_SOURCES = kern/i386/tsc_pmtimer.c lib/i386/random.c lib/random.c ## platform sources +nodist_random_module_SOURCES = ## platform nodist sources +random_module_LDADD = +random_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +random_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +random_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +random_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +random_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_random_module_SOURCES) +CLEANFILES += $(nodist_random_module_SOURCES) +MOD_FILES += random.mod +MARKER_FILES += random.marker +CLEANFILES += random.marker + +random.marker: $(random_module_SOURCES) $(nodist_random_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(random_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += random.module +MODULE_FILES += random.module$(EXEEXT) +random_module_SOURCES = kern/i386/tsc_pmtimer.c lib/i386/random.c lib/random.c ## platform sources +nodist_random_module_SOURCES = ## platform nodist sources +random_module_LDADD = +random_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +random_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +random_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +random_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +random_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_random_module_SOURCES) +CLEANFILES += $(nodist_random_module_SOURCES) +MOD_FILES += random.mod +MARKER_FILES += random.marker +CLEANFILES += random.marker + +random.marker: $(random_module_SOURCES) $(nodist_random_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(random_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += random.module +MODULE_FILES += random.module$(EXEEXT) +random_module_SOURCES = lib/i386/random.c lib/random.c ## platform sources +nodist_random_module_SOURCES = ## platform nodist sources +random_module_LDADD = +random_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +random_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +random_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +random_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +random_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_random_module_SOURCES) +CLEANFILES += $(nodist_random_module_SOURCES) +MOD_FILES += random.mod +MARKER_FILES += random.marker +CLEANFILES += random.marker + +random.marker: $(random_module_SOURCES) $(nodist_random_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(random_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif +platform_PROGRAMS += macho.module +MODULE_FILES += macho.module$(EXEEXT) +macho_module_SOURCES = loader/macho.c loader/macho32.c loader/macho64.c loader/lzss.c ## platform sources +nodist_macho_module_SOURCES = ## platform nodist sources +macho_module_LDADD = +macho_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +macho_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +macho_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +macho_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +macho_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += loader/machoXX.c +BUILT_SOURCES += $(nodist_macho_module_SOURCES) +CLEANFILES += $(nodist_macho_module_SOURCES) +MOD_FILES += macho.mod +MARKER_FILES += macho.marker +CLEANFILES += macho.marker + +macho.marker: $(macho_module_SOURCES) $(nodist_macho_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(macho_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new + +if COND_i386_efi +platform_PROGRAMS += appleldr.module +MODULE_FILES += appleldr.module$(EXEEXT) +appleldr_module_SOURCES = loader/efi/appleloader.c ## platform sources +nodist_appleldr_module_SOURCES = ## platform nodist sources +appleldr_module_LDADD = +appleldr_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +appleldr_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +appleldr_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +appleldr_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +appleldr_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_appleldr_module_SOURCES) +CLEANFILES += $(nodist_appleldr_module_SOURCES) +MOD_FILES += appleldr.mod +MARKER_FILES += appleldr.marker +CLEANFILES += appleldr.marker + +appleldr.marker: $(appleldr_module_SOURCES) $(nodist_appleldr_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(appleldr_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += appleldr.module +MODULE_FILES += appleldr.module$(EXEEXT) +appleldr_module_SOURCES = loader/efi/appleloader.c ## platform sources +nodist_appleldr_module_SOURCES = ## platform nodist sources +appleldr_module_LDADD = +appleldr_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +appleldr_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +appleldr_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +appleldr_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +appleldr_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_appleldr_module_SOURCES) +CLEANFILES += $(nodist_appleldr_module_SOURCES) +MOD_FILES += appleldr.mod +MARKER_FILES += appleldr.marker +CLEANFILES += appleldr.marker + +appleldr.marker: $(appleldr_module_SOURCES) $(nodist_appleldr_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(appleldr_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += chain.module +MODULE_FILES += chain.module$(EXEEXT) +chain_module_SOURCES = loader/i386/pc/chainloader.c ## platform sources +nodist_chain_module_SOURCES = ## platform nodist sources +chain_module_LDADD = +chain_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +chain_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +chain_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +chain_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +chain_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_chain_module_SOURCES) +CLEANFILES += $(nodist_chain_module_SOURCES) +MOD_FILES += chain.mod +MARKER_FILES += chain.marker +CLEANFILES += chain.marker + +chain.marker: $(chain_module_SOURCES) $(nodist_chain_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(chain_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += chain.module +MODULE_FILES += chain.module$(EXEEXT) +chain_module_SOURCES = loader/efi/chainloader.c ## platform sources +nodist_chain_module_SOURCES = ## platform nodist sources +chain_module_LDADD = +chain_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +chain_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +chain_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +chain_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +chain_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_chain_module_SOURCES) +CLEANFILES += $(nodist_chain_module_SOURCES) +MOD_FILES += chain.mod +MARKER_FILES += chain.marker +CLEANFILES += chain.marker + +chain.marker: $(chain_module_SOURCES) $(nodist_chain_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(chain_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += chain.module +MODULE_FILES += chain.module$(EXEEXT) +chain_module_SOURCES = loader/i386/coreboot/chainloader.c lib/LzmaDec.c ## platform sources +nodist_chain_module_SOURCES = ## platform nodist sources +chain_module_LDADD = +chain_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +chain_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +chain_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +chain_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +chain_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_chain_module_SOURCES) +CLEANFILES += $(nodist_chain_module_SOURCES) +MOD_FILES += chain.mod +MARKER_FILES += chain.marker +CLEANFILES += chain.marker + +chain.marker: $(chain_module_SOURCES) $(nodist_chain_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(chain_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += chain.module +MODULE_FILES += chain.module$(EXEEXT) +chain_module_SOURCES = loader/efi/chainloader.c ## platform sources +nodist_chain_module_SOURCES = ## platform nodist sources +chain_module_LDADD = +chain_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +chain_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +chain_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +chain_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +chain_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_chain_module_SOURCES) +CLEANFILES += $(nodist_chain_module_SOURCES) +MOD_FILES += chain.mod +MARKER_FILES += chain.marker +CLEANFILES += chain.marker + +chain.marker: $(chain_module_SOURCES) $(nodist_chain_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(chain_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_ia64_efi +platform_PROGRAMS += chain.module +MODULE_FILES += chain.module$(EXEEXT) +chain_module_SOURCES = loader/efi/chainloader.c ## platform sources +nodist_chain_module_SOURCES = ## platform nodist sources +chain_module_LDADD = +chain_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +chain_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +chain_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +chain_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +chain_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_chain_module_SOURCES) +CLEANFILES += $(nodist_chain_module_SOURCES) +MOD_FILES += chain.mod +MARKER_FILES += chain.marker +CLEANFILES += chain.marker + +chain.marker: $(chain_module_SOURCES) $(nodist_chain_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(chain_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_efi +platform_PROGRAMS += chain.module +MODULE_FILES += chain.module$(EXEEXT) +chain_module_SOURCES = loader/efi/chainloader.c ## platform sources +nodist_chain_module_SOURCES = ## platform nodist sources +chain_module_LDADD = +chain_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +chain_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +chain_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +chain_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +chain_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_chain_module_SOURCES) +CLEANFILES += $(nodist_chain_module_SOURCES) +MOD_FILES += chain.mod +MARKER_FILES += chain.marker +CLEANFILES += chain.marker + +chain.marker: $(chain_module_SOURCES) $(nodist_chain_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(chain_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm64_efi +platform_PROGRAMS += chain.module +MODULE_FILES += chain.module$(EXEEXT) +chain_module_SOURCES = loader/efi/chainloader.c ## platform sources +nodist_chain_module_SOURCES = ## platform nodist sources +chain_module_LDADD = +chain_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +chain_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +chain_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +chain_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +chain_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_chain_module_SOURCES) +CLEANFILES += $(nodist_chain_module_SOURCES) +MOD_FILES += chain.mod +MARKER_FILES += chain.marker +CLEANFILES += chain.marker + +chain.marker: $(chain_module_SOURCES) $(nodist_chain_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(chain_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv32_efi +platform_PROGRAMS += chain.module +MODULE_FILES += chain.module$(EXEEXT) +chain_module_SOURCES = loader/efi/chainloader.c ## platform sources +nodist_chain_module_SOURCES = ## platform nodist sources +chain_module_LDADD = +chain_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +chain_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +chain_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +chain_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +chain_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_chain_module_SOURCES) +CLEANFILES += $(nodist_chain_module_SOURCES) +MOD_FILES += chain.mod +MARKER_FILES += chain.marker +CLEANFILES += chain.marker + +chain.marker: $(chain_module_SOURCES) $(nodist_chain_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(chain_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv64_efi +platform_PROGRAMS += chain.module +MODULE_FILES += chain.module$(EXEEXT) +chain_module_SOURCES = loader/efi/chainloader.c ## platform sources +nodist_chain_module_SOURCES = ## platform nodist sources +chain_module_LDADD = +chain_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +chain_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +chain_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +chain_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +chain_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_chain_module_SOURCES) +CLEANFILES += $(nodist_chain_module_SOURCES) +MOD_FILES += chain.mod +MARKER_FILES += chain.marker +CLEANFILES += chain.marker + +chain.marker: $(chain_module_SOURCES) $(nodist_chain_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(chain_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += mmap.module +MODULE_FILES += mmap.module$(EXEEXT) +mmap_module_SOURCES = mmap/i386/pc/mmap.c mmap/i386/pc/mmap_helper.S mmap/i386/uppermem.c mmap/i386/mmap.c mmap/mmap.c ## platform sources +nodist_mmap_module_SOURCES = ## platform nodist sources +mmap_module_LDADD = +mmap_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +mmap_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +mmap_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +mmap_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +mmap_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_mmap_module_SOURCES) +CLEANFILES += $(nodist_mmap_module_SOURCES) +MOD_FILES += mmap.mod +MARKER_FILES += mmap.marker +CLEANFILES += mmap.marker + +mmap.marker: $(mmap_module_SOURCES) $(nodist_mmap_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(mmap_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += mmap.module +MODULE_FILES += mmap.module$(EXEEXT) +mmap_module_SOURCES = mmap/i386/uppermem.c mmap/i386/mmap.c mmap/efi/mmap.c mmap/mmap.c ## platform sources +nodist_mmap_module_SOURCES = ## platform nodist sources +mmap_module_LDADD = +mmap_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +mmap_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +mmap_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +mmap_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +mmap_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_mmap_module_SOURCES) +CLEANFILES += $(nodist_mmap_module_SOURCES) +MOD_FILES += mmap.mod +MARKER_FILES += mmap.marker +CLEANFILES += mmap.marker + +mmap.marker: $(mmap_module_SOURCES) $(nodist_mmap_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(mmap_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += mmap.module +MODULE_FILES += mmap.module$(EXEEXT) +mmap_module_SOURCES = mmap/i386/uppermem.c mmap/i386/mmap.c mmap/mmap.c ## platform sources +nodist_mmap_module_SOURCES = ## platform nodist sources +mmap_module_LDADD = +mmap_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +mmap_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +mmap_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +mmap_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +mmap_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_mmap_module_SOURCES) +CLEANFILES += $(nodist_mmap_module_SOURCES) +MOD_FILES += mmap.mod +MARKER_FILES += mmap.marker +CLEANFILES += mmap.marker + +mmap.marker: $(mmap_module_SOURCES) $(nodist_mmap_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(mmap_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += mmap.module +MODULE_FILES += mmap.module$(EXEEXT) +mmap_module_SOURCES = mmap/i386/uppermem.c mmap/i386/mmap.c mmap/mmap.c ## platform sources +nodist_mmap_module_SOURCES = ## platform nodist sources +mmap_module_LDADD = +mmap_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +mmap_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +mmap_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +mmap_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +mmap_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_mmap_module_SOURCES) +CLEANFILES += $(nodist_mmap_module_SOURCES) +MOD_FILES += mmap.mod +MARKER_FILES += mmap.marker +CLEANFILES += mmap.marker + +mmap.marker: $(mmap_module_SOURCES) $(nodist_mmap_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(mmap_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += mmap.module +MODULE_FILES += mmap.module$(EXEEXT) +mmap_module_SOURCES = mmap/i386/uppermem.c mmap/i386/mmap.c mmap/mmap.c ## platform sources +nodist_mmap_module_SOURCES = ## platform nodist sources +mmap_module_LDADD = +mmap_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +mmap_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +mmap_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +mmap_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +mmap_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_mmap_module_SOURCES) +CLEANFILES += $(nodist_mmap_module_SOURCES) +MOD_FILES += mmap.mod +MARKER_FILES += mmap.marker +CLEANFILES += mmap.marker + +mmap.marker: $(mmap_module_SOURCES) $(nodist_mmap_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(mmap_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += mmap.module +MODULE_FILES += mmap.module$(EXEEXT) +mmap_module_SOURCES = mmap/i386/uppermem.c mmap/i386/mmap.c mmap/mmap.c ## platform sources +nodist_mmap_module_SOURCES = ## platform nodist sources +mmap_module_LDADD = +mmap_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +mmap_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +mmap_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +mmap_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +mmap_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_mmap_module_SOURCES) +CLEANFILES += $(nodist_mmap_module_SOURCES) +MOD_FILES += mmap.mod +MARKER_FILES += mmap.marker +CLEANFILES += mmap.marker + +mmap.marker: $(mmap_module_SOURCES) $(nodist_mmap_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(mmap_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += mmap.module +MODULE_FILES += mmap.module$(EXEEXT) +mmap_module_SOURCES = mmap/i386/uppermem.c mmap/i386/mmap.c mmap/efi/mmap.c mmap/mmap.c ## platform sources +nodist_mmap_module_SOURCES = ## platform nodist sources +mmap_module_LDADD = +mmap_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +mmap_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +mmap_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +mmap_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +mmap_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_mmap_module_SOURCES) +CLEANFILES += $(nodist_mmap_module_SOURCES) +MOD_FILES += mmap.mod +MARKER_FILES += mmap.marker +CLEANFILES += mmap.marker + +mmap.marker: $(mmap_module_SOURCES) $(nodist_mmap_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(mmap_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_xen_pvh +platform_PROGRAMS += mmap.module +MODULE_FILES += mmap.module$(EXEEXT) +mmap_module_SOURCES = mmap/i386/uppermem.c mmap/i386/mmap.c mmap/mmap.c ## platform sources +nodist_mmap_module_SOURCES = ## platform nodist sources +mmap_module_LDADD = +mmap_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +mmap_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +mmap_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +mmap_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +mmap_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_mmap_module_SOURCES) +CLEANFILES += $(nodist_mmap_module_SOURCES) +MOD_FILES += mmap.mod +MARKER_FILES += mmap.marker +CLEANFILES += mmap.marker + +mmap.marker: $(mmap_module_SOURCES) $(nodist_mmap_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(mmap_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_loongson +platform_PROGRAMS += mmap.module +MODULE_FILES += mmap.module$(EXEEXT) +mmap_module_SOURCES = mmap/mips/uppermem.c mmap/mmap.c ## platform sources +nodist_mmap_module_SOURCES = ## platform nodist sources +mmap_module_LDADD = +mmap_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +mmap_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +mmap_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +mmap_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +mmap_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_mmap_module_SOURCES) +CLEANFILES += $(nodist_mmap_module_SOURCES) +MOD_FILES += mmap.mod +MARKER_FILES += mmap.marker +CLEANFILES += mmap.marker + +mmap.marker: $(mmap_module_SOURCES) $(nodist_mmap_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(mmap_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_arc +platform_PROGRAMS += mmap.module +MODULE_FILES += mmap.module$(EXEEXT) +mmap_module_SOURCES = mmap/mips/uppermem.c mmap/mmap.c ## platform sources +nodist_mmap_module_SOURCES = ## platform nodist sources +mmap_module_LDADD = +mmap_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +mmap_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +mmap_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +mmap_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +mmap_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_mmap_module_SOURCES) +CLEANFILES += $(nodist_mmap_module_SOURCES) +MOD_FILES += mmap.mod +MARKER_FILES += mmap.marker +CLEANFILES += mmap.marker + +mmap.marker: $(mmap_module_SOURCES) $(nodist_mmap_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(mmap_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_ia64_efi +platform_PROGRAMS += mmap.module +MODULE_FILES += mmap.module$(EXEEXT) +mmap_module_SOURCES = mmap/efi/mmap.c mmap/mmap.c ## platform sources +nodist_mmap_module_SOURCES = ## platform nodist sources +mmap_module_LDADD = +mmap_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +mmap_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +mmap_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +mmap_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +mmap_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_mmap_module_SOURCES) +CLEANFILES += $(nodist_mmap_module_SOURCES) +MOD_FILES += mmap.mod +MARKER_FILES += mmap.marker +CLEANFILES += mmap.marker + +mmap.marker: $(mmap_module_SOURCES) $(nodist_mmap_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(mmap_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_qemu_mips +platform_PROGRAMS += mmap.module +MODULE_FILES += mmap.module$(EXEEXT) +mmap_module_SOURCES = mmap/mips/uppermem.c mmap/mmap.c ## platform sources +nodist_mmap_module_SOURCES = ## platform nodist sources +mmap_module_LDADD = +mmap_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +mmap_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +mmap_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +mmap_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +mmap_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_mmap_module_SOURCES) +CLEANFILES += $(nodist_mmap_module_SOURCES) +MOD_FILES += mmap.mod +MARKER_FILES += mmap.marker +CLEANFILES += mmap.marker + +mmap.marker: $(mmap_module_SOURCES) $(nodist_mmap_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(mmap_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_efi +platform_PROGRAMS += mmap.module +MODULE_FILES += mmap.module$(EXEEXT) +mmap_module_SOURCES = mmap/efi/mmap.c mmap/mmap.c ## platform sources +nodist_mmap_module_SOURCES = ## platform nodist sources +mmap_module_LDADD = +mmap_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +mmap_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +mmap_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +mmap_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +mmap_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_mmap_module_SOURCES) +CLEANFILES += $(nodist_mmap_module_SOURCES) +MOD_FILES += mmap.mod +MARKER_FILES += mmap.marker +CLEANFILES += mmap.marker + +mmap.marker: $(mmap_module_SOURCES) $(nodist_mmap_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(mmap_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm64_efi +platform_PROGRAMS += mmap.module +MODULE_FILES += mmap.module$(EXEEXT) +mmap_module_SOURCES = mmap/efi/mmap.c mmap/mmap.c ## platform sources +nodist_mmap_module_SOURCES = ## platform nodist sources +mmap_module_LDADD = +mmap_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +mmap_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +mmap_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +mmap_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +mmap_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_mmap_module_SOURCES) +CLEANFILES += $(nodist_mmap_module_SOURCES) +MOD_FILES += mmap.mod +MARKER_FILES += mmap.marker +CLEANFILES += mmap.marker + +mmap.marker: $(mmap_module_SOURCES) $(nodist_mmap_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(mmap_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv32_efi +platform_PROGRAMS += mmap.module +MODULE_FILES += mmap.module$(EXEEXT) +mmap_module_SOURCES = mmap/efi/mmap.c mmap/mmap.c ## platform sources +nodist_mmap_module_SOURCES = ## platform nodist sources +mmap_module_LDADD = +mmap_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +mmap_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +mmap_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +mmap_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +mmap_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_mmap_module_SOURCES) +CLEANFILES += $(nodist_mmap_module_SOURCES) +MOD_FILES += mmap.mod +MARKER_FILES += mmap.marker +CLEANFILES += mmap.marker + +mmap.marker: $(mmap_module_SOURCES) $(nodist_mmap_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(mmap_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv64_efi +platform_PROGRAMS += mmap.module +MODULE_FILES += mmap.module$(EXEEXT) +mmap_module_SOURCES = mmap/efi/mmap.c mmap/mmap.c ## platform sources +nodist_mmap_module_SOURCES = ## platform nodist sources +mmap_module_LDADD = +mmap_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +mmap_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +mmap_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +mmap_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +mmap_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_mmap_module_SOURCES) +CLEANFILES += $(nodist_mmap_module_SOURCES) +MOD_FILES += mmap.mod +MARKER_FILES += mmap.marker +CLEANFILES += mmap.marker + +mmap.marker: $(mmap_module_SOURCES) $(nodist_mmap_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(mmap_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif +platform_PROGRAMS += normal.module +MODULE_FILES += normal.module$(EXEEXT) +normal_module_SOURCES = normal/main.c normal/cmdline.c normal/dyncmd.c normal/auth.c normal/autofs.c normal/color.c normal/completion.c normal/menu.c normal/menu_entry.c normal/menu_text.c normal/misc.c normal/crypto.c normal/term.c normal/context.c normal/charset.c lib/getline.c script/main.c script/script.c script/execute.c script/function.c script/lexer.c script/argv.c commands/menuentry.c unidata.c ## platform sources +nodist_normal_module_SOURCES = grub_script.tab.c grub_script.yy.c grub_script.tab.h grub_script.yy.h ## platform nodist sources +normal_module_LDADD = +normal_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) $(CFLAGS_POSIX) -Wno-redundant-decls +normal_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +normal_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) $(CPPFLAGS_POSIX) +normal_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +normal_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += script/yylex.l script/parser.y +BUILT_SOURCES += $(nodist_normal_module_SOURCES) +CLEANFILES += $(nodist_normal_module_SOURCES) +MOD_FILES += normal.mod +MARKER_FILES += normal.marker +CLEANFILES += normal.marker + +normal.marker: $(normal_module_SOURCES) $(nodist_normal_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(normal_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += part_acorn.module +MODULE_FILES += part_acorn.module$(EXEEXT) +part_acorn_module_SOURCES = partmap/acorn.c ## platform sources +nodist_part_acorn_module_SOURCES = ## platform nodist sources +part_acorn_module_LDADD = +part_acorn_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +part_acorn_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +part_acorn_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +part_acorn_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +part_acorn_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_part_acorn_module_SOURCES) +CLEANFILES += $(nodist_part_acorn_module_SOURCES) +MOD_FILES += part_acorn.mod +MARKER_FILES += part_acorn.marker +CLEANFILES += part_acorn.marker + +part_acorn.marker: $(part_acorn_module_SOURCES) $(nodist_part_acorn_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(part_acorn_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += part_amiga.module +MODULE_FILES += part_amiga.module$(EXEEXT) +part_amiga_module_SOURCES = partmap/amiga.c ## platform sources +nodist_part_amiga_module_SOURCES = ## platform nodist sources +part_amiga_module_LDADD = +part_amiga_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +part_amiga_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +part_amiga_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +part_amiga_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +part_amiga_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_part_amiga_module_SOURCES) +CLEANFILES += $(nodist_part_amiga_module_SOURCES) +MOD_FILES += part_amiga.mod +MARKER_FILES += part_amiga.marker +CLEANFILES += part_amiga.marker + +part_amiga.marker: $(part_amiga_module_SOURCES) $(nodist_part_amiga_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(part_amiga_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += part_apple.module +MODULE_FILES += part_apple.module$(EXEEXT) +part_apple_module_SOURCES = partmap/apple.c ## platform sources +nodist_part_apple_module_SOURCES = ## platform nodist sources +part_apple_module_LDADD = +part_apple_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +part_apple_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +part_apple_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +part_apple_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +part_apple_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_part_apple_module_SOURCES) +CLEANFILES += $(nodist_part_apple_module_SOURCES) +MOD_FILES += part_apple.mod +MARKER_FILES += part_apple.marker +CLEANFILES += part_apple.marker + +part_apple.marker: $(part_apple_module_SOURCES) $(nodist_part_apple_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(part_apple_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += part_gpt.module +MODULE_FILES += part_gpt.module$(EXEEXT) +part_gpt_module_SOURCES = partmap/gpt.c ## platform sources +nodist_part_gpt_module_SOURCES = ## platform nodist sources +part_gpt_module_LDADD = +part_gpt_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +part_gpt_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +part_gpt_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +part_gpt_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +part_gpt_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_part_gpt_module_SOURCES) +CLEANFILES += $(nodist_part_gpt_module_SOURCES) +MOD_FILES += part_gpt.mod +MARKER_FILES += part_gpt.marker +CLEANFILES += part_gpt.marker + +part_gpt.marker: $(part_gpt_module_SOURCES) $(nodist_part_gpt_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(part_gpt_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += part_msdos.module +MODULE_FILES += part_msdos.module$(EXEEXT) +part_msdos_module_SOURCES = partmap/msdos.c ## platform sources +nodist_part_msdos_module_SOURCES = ## platform nodist sources +part_msdos_module_LDADD = +part_msdos_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +part_msdos_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +part_msdos_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +part_msdos_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +part_msdos_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_part_msdos_module_SOURCES) +CLEANFILES += $(nodist_part_msdos_module_SOURCES) +MOD_FILES += part_msdos.mod +MARKER_FILES += part_msdos.marker +CLEANFILES += part_msdos.marker + +part_msdos.marker: $(part_msdos_module_SOURCES) $(nodist_part_msdos_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(part_msdos_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += part_sun.module +MODULE_FILES += part_sun.module$(EXEEXT) +part_sun_module_SOURCES = partmap/sun.c ## platform sources +nodist_part_sun_module_SOURCES = ## platform nodist sources +part_sun_module_LDADD = +part_sun_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +part_sun_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +part_sun_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +part_sun_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +part_sun_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_part_sun_module_SOURCES) +CLEANFILES += $(nodist_part_sun_module_SOURCES) +MOD_FILES += part_sun.mod +MARKER_FILES += part_sun.marker +CLEANFILES += part_sun.marker + +part_sun.marker: $(part_sun_module_SOURCES) $(nodist_part_sun_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(part_sun_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += part_plan.module +MODULE_FILES += part_plan.module$(EXEEXT) +part_plan_module_SOURCES = partmap/plan.c ## platform sources +nodist_part_plan_module_SOURCES = ## platform nodist sources +part_plan_module_LDADD = +part_plan_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +part_plan_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +part_plan_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +part_plan_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +part_plan_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_part_plan_module_SOURCES) +CLEANFILES += $(nodist_part_plan_module_SOURCES) +MOD_FILES += part_plan.mod +MARKER_FILES += part_plan.marker +CLEANFILES += part_plan.marker + +part_plan.marker: $(part_plan_module_SOURCES) $(nodist_part_plan_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(part_plan_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += part_dvh.module +MODULE_FILES += part_dvh.module$(EXEEXT) +part_dvh_module_SOURCES = partmap/dvh.c ## platform sources +nodist_part_dvh_module_SOURCES = ## platform nodist sources +part_dvh_module_LDADD = +part_dvh_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +part_dvh_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +part_dvh_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +part_dvh_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +part_dvh_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_part_dvh_module_SOURCES) +CLEANFILES += $(nodist_part_dvh_module_SOURCES) +MOD_FILES += part_dvh.mod +MARKER_FILES += part_dvh.marker +CLEANFILES += part_dvh.marker + +part_dvh.marker: $(part_dvh_module_SOURCES) $(nodist_part_dvh_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(part_dvh_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += part_bsd.module +MODULE_FILES += part_bsd.module$(EXEEXT) +part_bsd_module_SOURCES = partmap/bsdlabel.c ## platform sources +nodist_part_bsd_module_SOURCES = ## platform nodist sources +part_bsd_module_LDADD = +part_bsd_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +part_bsd_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +part_bsd_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +part_bsd_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +part_bsd_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_part_bsd_module_SOURCES) +CLEANFILES += $(nodist_part_bsd_module_SOURCES) +MOD_FILES += part_bsd.mod +MARKER_FILES += part_bsd.marker +CLEANFILES += part_bsd.marker + +part_bsd.marker: $(part_bsd_module_SOURCES) $(nodist_part_bsd_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(part_bsd_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += part_sunpc.module +MODULE_FILES += part_sunpc.module$(EXEEXT) +part_sunpc_module_SOURCES = partmap/sunpc.c ## platform sources +nodist_part_sunpc_module_SOURCES = ## platform nodist sources +part_sunpc_module_LDADD = +part_sunpc_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +part_sunpc_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +part_sunpc_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +part_sunpc_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +part_sunpc_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_part_sunpc_module_SOURCES) +CLEANFILES += $(nodist_part_sunpc_module_SOURCES) +MOD_FILES += part_sunpc.mod +MARKER_FILES += part_sunpc.marker +CLEANFILES += part_sunpc.marker + +part_sunpc.marker: $(part_sunpc_module_SOURCES) $(nodist_part_sunpc_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(part_sunpc_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += part_dfly.module +MODULE_FILES += part_dfly.module$(EXEEXT) +part_dfly_module_SOURCES = partmap/dfly.c ## platform sources +nodist_part_dfly_module_SOURCES = ## platform nodist sources +part_dfly_module_LDADD = +part_dfly_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +part_dfly_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +part_dfly_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +part_dfly_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +part_dfly_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_part_dfly_module_SOURCES) +CLEANFILES += $(nodist_part_dfly_module_SOURCES) +MOD_FILES += part_dfly.mod +MARKER_FILES += part_dfly.marker +CLEANFILES += part_dfly.marker + +part_dfly.marker: $(part_dfly_module_SOURCES) $(nodist_part_dfly_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(part_dfly_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += msdospart.module +MODULE_FILES += msdospart.module$(EXEEXT) +msdospart_module_SOURCES = parttool/msdospart.c ## platform sources +nodist_msdospart_module_SOURCES = ## platform nodist sources +msdospart_module_LDADD = +msdospart_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +msdospart_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +msdospart_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +msdospart_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +msdospart_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_msdospart_module_SOURCES) +CLEANFILES += $(nodist_msdospart_module_SOURCES) +MOD_FILES += msdospart.mod +MARKER_FILES += msdospart.marker +CLEANFILES += msdospart.marker + +msdospart.marker: $(msdospart_module_SOURCES) $(nodist_msdospart_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msdospart_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new + +if COND_i386_pc +platform_PROGRAMS += at_keyboard.module +MODULE_FILES += at_keyboard.module$(EXEEXT) +at_keyboard_module_SOURCES = term/at_keyboard.c term/ps2.c ## platform sources +nodist_at_keyboard_module_SOURCES = ## platform nodist sources +at_keyboard_module_LDADD = +at_keyboard_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +at_keyboard_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +at_keyboard_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +at_keyboard_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +at_keyboard_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_at_keyboard_module_SOURCES) +CLEANFILES += $(nodist_at_keyboard_module_SOURCES) +MOD_FILES += at_keyboard.mod +MARKER_FILES += at_keyboard.marker +CLEANFILES += at_keyboard.marker + +at_keyboard.marker: $(at_keyboard_module_SOURCES) $(nodist_at_keyboard_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(at_keyboard_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += at_keyboard.module +MODULE_FILES += at_keyboard.module$(EXEEXT) +at_keyboard_module_SOURCES = term/at_keyboard.c term/ps2.c ## platform sources +nodist_at_keyboard_module_SOURCES = ## platform nodist sources +at_keyboard_module_LDADD = +at_keyboard_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +at_keyboard_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +at_keyboard_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +at_keyboard_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +at_keyboard_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_at_keyboard_module_SOURCES) +CLEANFILES += $(nodist_at_keyboard_module_SOURCES) +MOD_FILES += at_keyboard.mod +MARKER_FILES += at_keyboard.marker +CLEANFILES += at_keyboard.marker + +at_keyboard.marker: $(at_keyboard_module_SOURCES) $(nodist_at_keyboard_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(at_keyboard_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += at_keyboard.module +MODULE_FILES += at_keyboard.module$(EXEEXT) +at_keyboard_module_SOURCES = term/at_keyboard.c term/ps2.c ## platform sources +nodist_at_keyboard_module_SOURCES = ## platform nodist sources +at_keyboard_module_LDADD = +at_keyboard_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +at_keyboard_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +at_keyboard_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +at_keyboard_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +at_keyboard_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_at_keyboard_module_SOURCES) +CLEANFILES += $(nodist_at_keyboard_module_SOURCES) +MOD_FILES += at_keyboard.mod +MARKER_FILES += at_keyboard.marker +CLEANFILES += at_keyboard.marker + +at_keyboard.marker: $(at_keyboard_module_SOURCES) $(nodist_at_keyboard_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(at_keyboard_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += at_keyboard.module +MODULE_FILES += at_keyboard.module$(EXEEXT) +at_keyboard_module_SOURCES = term/at_keyboard.c term/ps2.c ## platform sources +nodist_at_keyboard_module_SOURCES = ## platform nodist sources +at_keyboard_module_LDADD = +at_keyboard_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +at_keyboard_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +at_keyboard_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +at_keyboard_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +at_keyboard_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_at_keyboard_module_SOURCES) +CLEANFILES += $(nodist_at_keyboard_module_SOURCES) +MOD_FILES += at_keyboard.mod +MARKER_FILES += at_keyboard.marker +CLEANFILES += at_keyboard.marker + +at_keyboard.marker: $(at_keyboard_module_SOURCES) $(nodist_at_keyboard_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(at_keyboard_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += at_keyboard.module +MODULE_FILES += at_keyboard.module$(EXEEXT) +at_keyboard_module_SOURCES = term/at_keyboard.c term/ps2.c ## platform sources +nodist_at_keyboard_module_SOURCES = ## platform nodist sources +at_keyboard_module_LDADD = +at_keyboard_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +at_keyboard_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +at_keyboard_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +at_keyboard_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +at_keyboard_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_at_keyboard_module_SOURCES) +CLEANFILES += $(nodist_at_keyboard_module_SOURCES) +MOD_FILES += at_keyboard.mod +MARKER_FILES += at_keyboard.marker +CLEANFILES += at_keyboard.marker + +at_keyboard.marker: $(at_keyboard_module_SOURCES) $(nodist_at_keyboard_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(at_keyboard_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += at_keyboard.module +MODULE_FILES += at_keyboard.module$(EXEEXT) +at_keyboard_module_SOURCES = term/at_keyboard.c term/ps2.c ## platform sources +nodist_at_keyboard_module_SOURCES = ## platform nodist sources +at_keyboard_module_LDADD = +at_keyboard_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +at_keyboard_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +at_keyboard_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +at_keyboard_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +at_keyboard_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_at_keyboard_module_SOURCES) +CLEANFILES += $(nodist_at_keyboard_module_SOURCES) +MOD_FILES += at_keyboard.mod +MARKER_FILES += at_keyboard.marker +CLEANFILES += at_keyboard.marker + +at_keyboard.marker: $(at_keyboard_module_SOURCES) $(nodist_at_keyboard_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(at_keyboard_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += at_keyboard.module +MODULE_FILES += at_keyboard.module$(EXEEXT) +at_keyboard_module_SOURCES = term/at_keyboard.c term/ps2.c ## platform sources +nodist_at_keyboard_module_SOURCES = ## platform nodist sources +at_keyboard_module_LDADD = +at_keyboard_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +at_keyboard_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +at_keyboard_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +at_keyboard_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +at_keyboard_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_at_keyboard_module_SOURCES) +CLEANFILES += $(nodist_at_keyboard_module_SOURCES) +MOD_FILES += at_keyboard.mod +MARKER_FILES += at_keyboard.marker +CLEANFILES += at_keyboard.marker + +at_keyboard.marker: $(at_keyboard_module_SOURCES) $(nodist_at_keyboard_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(at_keyboard_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_emu +platform_PROGRAMS += gfxterm.module +MODULE_FILES += gfxterm.module$(EXEEXT) +gfxterm_module_SOURCES = term/gfxterm.c ## platform sources +nodist_gfxterm_module_SOURCES = ## platform nodist sources +gfxterm_module_LDADD = +gfxterm_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +gfxterm_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gfxterm_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +gfxterm_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gfxterm_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gfxterm_module_SOURCES) +CLEANFILES += $(nodist_gfxterm_module_SOURCES) +MOD_FILES += gfxterm.mod +MARKER_FILES += gfxterm.marker +CLEANFILES += gfxterm.marker + +gfxterm.marker: $(gfxterm_module_SOURCES) $(nodist_gfxterm_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gfxterm_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += gfxterm.module +MODULE_FILES += gfxterm.module$(EXEEXT) +gfxterm_module_SOURCES = term/gfxterm.c ## platform sources +nodist_gfxterm_module_SOURCES = ## platform nodist sources +gfxterm_module_LDADD = +gfxterm_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +gfxterm_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gfxterm_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +gfxterm_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gfxterm_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gfxterm_module_SOURCES) +CLEANFILES += $(nodist_gfxterm_module_SOURCES) +MOD_FILES += gfxterm.mod +MARKER_FILES += gfxterm.marker +CLEANFILES += gfxterm.marker + +gfxterm.marker: $(gfxterm_module_SOURCES) $(nodist_gfxterm_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gfxterm_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += gfxterm.module +MODULE_FILES += gfxterm.module$(EXEEXT) +gfxterm_module_SOURCES = term/gfxterm.c ## platform sources +nodist_gfxterm_module_SOURCES = ## platform nodist sources +gfxterm_module_LDADD = +gfxterm_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +gfxterm_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gfxterm_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +gfxterm_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gfxterm_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gfxterm_module_SOURCES) +CLEANFILES += $(nodist_gfxterm_module_SOURCES) +MOD_FILES += gfxterm.mod +MARKER_FILES += gfxterm.marker +CLEANFILES += gfxterm.marker + +gfxterm.marker: $(gfxterm_module_SOURCES) $(nodist_gfxterm_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gfxterm_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += gfxterm.module +MODULE_FILES += gfxterm.module$(EXEEXT) +gfxterm_module_SOURCES = term/gfxterm.c ## platform sources +nodist_gfxterm_module_SOURCES = ## platform nodist sources +gfxterm_module_LDADD = +gfxterm_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +gfxterm_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gfxterm_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +gfxterm_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gfxterm_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gfxterm_module_SOURCES) +CLEANFILES += $(nodist_gfxterm_module_SOURCES) +MOD_FILES += gfxterm.mod +MARKER_FILES += gfxterm.marker +CLEANFILES += gfxterm.marker + +gfxterm.marker: $(gfxterm_module_SOURCES) $(nodist_gfxterm_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gfxterm_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += gfxterm.module +MODULE_FILES += gfxterm.module$(EXEEXT) +gfxterm_module_SOURCES = term/gfxterm.c ## platform sources +nodist_gfxterm_module_SOURCES = ## platform nodist sources +gfxterm_module_LDADD = +gfxterm_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +gfxterm_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gfxterm_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +gfxterm_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gfxterm_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gfxterm_module_SOURCES) +CLEANFILES += $(nodist_gfxterm_module_SOURCES) +MOD_FILES += gfxterm.mod +MARKER_FILES += gfxterm.marker +CLEANFILES += gfxterm.marker + +gfxterm.marker: $(gfxterm_module_SOURCES) $(nodist_gfxterm_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gfxterm_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += gfxterm.module +MODULE_FILES += gfxterm.module$(EXEEXT) +gfxterm_module_SOURCES = term/gfxterm.c ## platform sources +nodist_gfxterm_module_SOURCES = ## platform nodist sources +gfxterm_module_LDADD = +gfxterm_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +gfxterm_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gfxterm_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +gfxterm_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gfxterm_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gfxterm_module_SOURCES) +CLEANFILES += $(nodist_gfxterm_module_SOURCES) +MOD_FILES += gfxterm.mod +MARKER_FILES += gfxterm.marker +CLEANFILES += gfxterm.marker + +gfxterm.marker: $(gfxterm_module_SOURCES) $(nodist_gfxterm_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gfxterm_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += gfxterm.module +MODULE_FILES += gfxterm.module$(EXEEXT) +gfxterm_module_SOURCES = term/gfxterm.c ## platform sources +nodist_gfxterm_module_SOURCES = ## platform nodist sources +gfxterm_module_LDADD = +gfxterm_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +gfxterm_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gfxterm_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +gfxterm_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gfxterm_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gfxterm_module_SOURCES) +CLEANFILES += $(nodist_gfxterm_module_SOURCES) +MOD_FILES += gfxterm.mod +MARKER_FILES += gfxterm.marker +CLEANFILES += gfxterm.marker + +gfxterm.marker: $(gfxterm_module_SOURCES) $(nodist_gfxterm_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gfxterm_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_xen +platform_PROGRAMS += gfxterm.module +MODULE_FILES += gfxterm.module$(EXEEXT) +gfxterm_module_SOURCES = term/gfxterm.c ## platform sources +nodist_gfxterm_module_SOURCES = ## platform nodist sources +gfxterm_module_LDADD = +gfxterm_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +gfxterm_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gfxterm_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +gfxterm_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gfxterm_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gfxterm_module_SOURCES) +CLEANFILES += $(nodist_gfxterm_module_SOURCES) +MOD_FILES += gfxterm.mod +MARKER_FILES += gfxterm.marker +CLEANFILES += gfxterm.marker + +gfxterm.marker: $(gfxterm_module_SOURCES) $(nodist_gfxterm_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gfxterm_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_xen +platform_PROGRAMS += gfxterm.module +MODULE_FILES += gfxterm.module$(EXEEXT) +gfxterm_module_SOURCES = term/gfxterm.c ## platform sources +nodist_gfxterm_module_SOURCES = ## platform nodist sources +gfxterm_module_LDADD = +gfxterm_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +gfxterm_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gfxterm_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +gfxterm_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gfxterm_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gfxterm_module_SOURCES) +CLEANFILES += $(nodist_gfxterm_module_SOURCES) +MOD_FILES += gfxterm.mod +MARKER_FILES += gfxterm.marker +CLEANFILES += gfxterm.marker + +gfxterm.marker: $(gfxterm_module_SOURCES) $(nodist_gfxterm_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gfxterm_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_xen_pvh +platform_PROGRAMS += gfxterm.module +MODULE_FILES += gfxterm.module$(EXEEXT) +gfxterm_module_SOURCES = term/gfxterm.c ## platform sources +nodist_gfxterm_module_SOURCES = ## platform nodist sources +gfxterm_module_LDADD = +gfxterm_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +gfxterm_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gfxterm_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +gfxterm_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gfxterm_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gfxterm_module_SOURCES) +CLEANFILES += $(nodist_gfxterm_module_SOURCES) +MOD_FILES += gfxterm.mod +MARKER_FILES += gfxterm.marker +CLEANFILES += gfxterm.marker + +gfxterm.marker: $(gfxterm_module_SOURCES) $(nodist_gfxterm_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gfxterm_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_sparc64_ieee1275 +platform_PROGRAMS += gfxterm.module +MODULE_FILES += gfxterm.module$(EXEEXT) +gfxterm_module_SOURCES = term/gfxterm.c ## platform sources +nodist_gfxterm_module_SOURCES = ## platform nodist sources +gfxterm_module_LDADD = +gfxterm_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +gfxterm_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gfxterm_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +gfxterm_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gfxterm_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gfxterm_module_SOURCES) +CLEANFILES += $(nodist_gfxterm_module_SOURCES) +MOD_FILES += gfxterm.mod +MARKER_FILES += gfxterm.marker +CLEANFILES += gfxterm.marker + +gfxterm.marker: $(gfxterm_module_SOURCES) $(nodist_gfxterm_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gfxterm_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_powerpc_ieee1275 +platform_PROGRAMS += gfxterm.module +MODULE_FILES += gfxterm.module$(EXEEXT) +gfxterm_module_SOURCES = term/gfxterm.c ## platform sources +nodist_gfxterm_module_SOURCES = ## platform nodist sources +gfxterm_module_LDADD = +gfxterm_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +gfxterm_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gfxterm_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +gfxterm_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gfxterm_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gfxterm_module_SOURCES) +CLEANFILES += $(nodist_gfxterm_module_SOURCES) +MOD_FILES += gfxterm.mod +MARKER_FILES += gfxterm.marker +CLEANFILES += gfxterm.marker + +gfxterm.marker: $(gfxterm_module_SOURCES) $(nodist_gfxterm_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gfxterm_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_arc +platform_PROGRAMS += gfxterm.module +MODULE_FILES += gfxterm.module$(EXEEXT) +gfxterm_module_SOURCES = term/gfxterm.c ## platform sources +nodist_gfxterm_module_SOURCES = ## platform nodist sources +gfxterm_module_LDADD = +gfxterm_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +gfxterm_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gfxterm_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +gfxterm_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gfxterm_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gfxterm_module_SOURCES) +CLEANFILES += $(nodist_gfxterm_module_SOURCES) +MOD_FILES += gfxterm.mod +MARKER_FILES += gfxterm.marker +CLEANFILES += gfxterm.marker + +gfxterm.marker: $(gfxterm_module_SOURCES) $(nodist_gfxterm_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gfxterm_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_ia64_efi +platform_PROGRAMS += gfxterm.module +MODULE_FILES += gfxterm.module$(EXEEXT) +gfxterm_module_SOURCES = term/gfxterm.c ## platform sources +nodist_gfxterm_module_SOURCES = ## platform nodist sources +gfxterm_module_LDADD = +gfxterm_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +gfxterm_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gfxterm_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +gfxterm_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gfxterm_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gfxterm_module_SOURCES) +CLEANFILES += $(nodist_gfxterm_module_SOURCES) +MOD_FILES += gfxterm.mod +MARKER_FILES += gfxterm.marker +CLEANFILES += gfxterm.marker + +gfxterm.marker: $(gfxterm_module_SOURCES) $(nodist_gfxterm_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gfxterm_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_qemu_mips +platform_PROGRAMS += gfxterm.module +MODULE_FILES += gfxterm.module$(EXEEXT) +gfxterm_module_SOURCES = term/gfxterm.c ## platform sources +nodist_gfxterm_module_SOURCES = ## platform nodist sources +gfxterm_module_LDADD = +gfxterm_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +gfxterm_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gfxterm_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +gfxterm_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gfxterm_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gfxterm_module_SOURCES) +CLEANFILES += $(nodist_gfxterm_module_SOURCES) +MOD_FILES += gfxterm.mod +MARKER_FILES += gfxterm.marker +CLEANFILES += gfxterm.marker + +gfxterm.marker: $(gfxterm_module_SOURCES) $(nodist_gfxterm_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gfxterm_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_uboot +platform_PROGRAMS += gfxterm.module +MODULE_FILES += gfxterm.module$(EXEEXT) +gfxterm_module_SOURCES = term/gfxterm.c ## platform sources +nodist_gfxterm_module_SOURCES = ## platform nodist sources +gfxterm_module_LDADD = +gfxterm_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +gfxterm_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gfxterm_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +gfxterm_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gfxterm_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gfxterm_module_SOURCES) +CLEANFILES += $(nodist_gfxterm_module_SOURCES) +MOD_FILES += gfxterm.mod +MARKER_FILES += gfxterm.marker +CLEANFILES += gfxterm.marker + +gfxterm.marker: $(gfxterm_module_SOURCES) $(nodist_gfxterm_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gfxterm_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_efi +platform_PROGRAMS += gfxterm.module +MODULE_FILES += gfxterm.module$(EXEEXT) +gfxterm_module_SOURCES = term/gfxterm.c ## platform sources +nodist_gfxterm_module_SOURCES = ## platform nodist sources +gfxterm_module_LDADD = +gfxterm_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +gfxterm_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gfxterm_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +gfxterm_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gfxterm_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gfxterm_module_SOURCES) +CLEANFILES += $(nodist_gfxterm_module_SOURCES) +MOD_FILES += gfxterm.mod +MARKER_FILES += gfxterm.marker +CLEANFILES += gfxterm.marker + +gfxterm.marker: $(gfxterm_module_SOURCES) $(nodist_gfxterm_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gfxterm_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm64_efi +platform_PROGRAMS += gfxterm.module +MODULE_FILES += gfxterm.module$(EXEEXT) +gfxterm_module_SOURCES = term/gfxterm.c ## platform sources +nodist_gfxterm_module_SOURCES = ## platform nodist sources +gfxterm_module_LDADD = +gfxterm_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +gfxterm_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gfxterm_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +gfxterm_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gfxterm_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gfxterm_module_SOURCES) +CLEANFILES += $(nodist_gfxterm_module_SOURCES) +MOD_FILES += gfxterm.mod +MARKER_FILES += gfxterm.marker +CLEANFILES += gfxterm.marker + +gfxterm.marker: $(gfxterm_module_SOURCES) $(nodist_gfxterm_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gfxterm_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv32_efi +platform_PROGRAMS += gfxterm.module +MODULE_FILES += gfxterm.module$(EXEEXT) +gfxterm_module_SOURCES = term/gfxterm.c ## platform sources +nodist_gfxterm_module_SOURCES = ## platform nodist sources +gfxterm_module_LDADD = +gfxterm_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +gfxterm_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gfxterm_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +gfxterm_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gfxterm_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gfxterm_module_SOURCES) +CLEANFILES += $(nodist_gfxterm_module_SOURCES) +MOD_FILES += gfxterm.mod +MARKER_FILES += gfxterm.marker +CLEANFILES += gfxterm.marker + +gfxterm.marker: $(gfxterm_module_SOURCES) $(nodist_gfxterm_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gfxterm_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv64_efi +platform_PROGRAMS += gfxterm.module +MODULE_FILES += gfxterm.module$(EXEEXT) +gfxterm_module_SOURCES = term/gfxterm.c ## platform sources +nodist_gfxterm_module_SOURCES = ## platform nodist sources +gfxterm_module_LDADD = +gfxterm_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +gfxterm_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gfxterm_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +gfxterm_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gfxterm_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gfxterm_module_SOURCES) +CLEANFILES += $(nodist_gfxterm_module_SOURCES) +MOD_FILES += gfxterm.mod +MARKER_FILES += gfxterm.marker +CLEANFILES += gfxterm.marker + +gfxterm.marker: $(gfxterm_module_SOURCES) $(nodist_gfxterm_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gfxterm_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif +platform_PROGRAMS += gfxterm_background.module +MODULE_FILES += gfxterm_background.module$(EXEEXT) +gfxterm_background_module_SOURCES = term/gfxterm_background.c ## platform sources +nodist_gfxterm_background_module_SOURCES = ## platform nodist sources +gfxterm_background_module_LDADD = +gfxterm_background_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +gfxterm_background_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gfxterm_background_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +gfxterm_background_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gfxterm_background_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gfxterm_background_module_SOURCES) +CLEANFILES += $(nodist_gfxterm_background_module_SOURCES) +MOD_FILES += gfxterm_background.mod +MARKER_FILES += gfxterm_background.marker +CLEANFILES += gfxterm_background.marker + +gfxterm_background.marker: $(gfxterm_background_module_SOURCES) $(nodist_gfxterm_background_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gfxterm_background_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new + +if COND_i386_pc +platform_PROGRAMS += serial.module +MODULE_FILES += serial.module$(EXEEXT) +serial_module_SOURCES = term/ns8250.c term/serial.c ## platform sources +nodist_serial_module_SOURCES = ## platform nodist sources +serial_module_LDADD = +serial_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +serial_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +serial_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +serial_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +serial_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_serial_module_SOURCES) +CLEANFILES += $(nodist_serial_module_SOURCES) +MOD_FILES += serial.mod +MARKER_FILES += serial.marker +CLEANFILES += serial.marker + +serial.marker: $(serial_module_SOURCES) $(nodist_serial_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(serial_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += serial.module +MODULE_FILES += serial.module$(EXEEXT) +serial_module_SOURCES = term/ns8250.c term/efi/serial.c term/serial.c ## platform sources +nodist_serial_module_SOURCES = ## platform nodist sources +serial_module_LDADD = +serial_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +serial_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +serial_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +serial_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +serial_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_serial_module_SOURCES) +CLEANFILES += $(nodist_serial_module_SOURCES) +MOD_FILES += serial.mod +MARKER_FILES += serial.marker +CLEANFILES += serial.marker + +serial.marker: $(serial_module_SOURCES) $(nodist_serial_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(serial_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += serial.module +MODULE_FILES += serial.module$(EXEEXT) +serial_module_SOURCES = term/ns8250.c term/serial.c ## platform sources +nodist_serial_module_SOURCES = ## platform nodist sources +serial_module_LDADD = +serial_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +serial_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +serial_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +serial_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +serial_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_serial_module_SOURCES) +CLEANFILES += $(nodist_serial_module_SOURCES) +MOD_FILES += serial.mod +MARKER_FILES += serial.marker +CLEANFILES += serial.marker + +serial.marker: $(serial_module_SOURCES) $(nodist_serial_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(serial_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += serial.module +MODULE_FILES += serial.module$(EXEEXT) +serial_module_SOURCES = term/ns8250.c term/serial.c ## platform sources +nodist_serial_module_SOURCES = ## platform nodist sources +serial_module_LDADD = +serial_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +serial_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +serial_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +serial_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +serial_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_serial_module_SOURCES) +CLEANFILES += $(nodist_serial_module_SOURCES) +MOD_FILES += serial.mod +MARKER_FILES += serial.marker +CLEANFILES += serial.marker + +serial.marker: $(serial_module_SOURCES) $(nodist_serial_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(serial_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += serial.module +MODULE_FILES += serial.module$(EXEEXT) +serial_module_SOURCES = term/ns8250.c term/serial.c ## platform sources +nodist_serial_module_SOURCES = ## platform nodist sources +serial_module_LDADD = +serial_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +serial_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +serial_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +serial_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +serial_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_serial_module_SOURCES) +CLEANFILES += $(nodist_serial_module_SOURCES) +MOD_FILES += serial.mod +MARKER_FILES += serial.marker +CLEANFILES += serial.marker + +serial.marker: $(serial_module_SOURCES) $(nodist_serial_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(serial_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += serial.module +MODULE_FILES += serial.module$(EXEEXT) +serial_module_SOURCES = term/ieee1275/serial.c term/ns8250.c term/serial.c ## platform sources +nodist_serial_module_SOURCES = ## platform nodist sources +serial_module_LDADD = +serial_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +serial_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +serial_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +serial_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +serial_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_serial_module_SOURCES) +CLEANFILES += $(nodist_serial_module_SOURCES) +MOD_FILES += serial.mod +MARKER_FILES += serial.marker +CLEANFILES += serial.marker + +serial.marker: $(serial_module_SOURCES) $(nodist_serial_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(serial_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += serial.module +MODULE_FILES += serial.module$(EXEEXT) +serial_module_SOURCES = term/ns8250.c term/efi/serial.c term/serial.c ## platform sources +nodist_serial_module_SOURCES = ## platform nodist sources +serial_module_LDADD = +serial_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +serial_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +serial_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +serial_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +serial_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_serial_module_SOURCES) +CLEANFILES += $(nodist_serial_module_SOURCES) +MOD_FILES += serial.mod +MARKER_FILES += serial.marker +CLEANFILES += serial.marker + +serial.marker: $(serial_module_SOURCES) $(nodist_serial_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(serial_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_sparc64_ieee1275 +platform_PROGRAMS += serial.module +MODULE_FILES += serial.module$(EXEEXT) +serial_module_SOURCES = term/ieee1275/serial.c term/serial.c ## platform sources +nodist_serial_module_SOURCES = ## platform nodist sources +serial_module_LDADD = +serial_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +serial_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +serial_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +serial_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +serial_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_serial_module_SOURCES) +CLEANFILES += $(nodist_serial_module_SOURCES) +MOD_FILES += serial.mod +MARKER_FILES += serial.marker +CLEANFILES += serial.marker + +serial.marker: $(serial_module_SOURCES) $(nodist_serial_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(serial_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_powerpc_ieee1275 +platform_PROGRAMS += serial.module +MODULE_FILES += serial.module$(EXEEXT) +serial_module_SOURCES = term/ieee1275/serial.c term/serial.c ## platform sources +nodist_serial_module_SOURCES = ## platform nodist sources +serial_module_LDADD = +serial_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +serial_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +serial_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +serial_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +serial_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_serial_module_SOURCES) +CLEANFILES += $(nodist_serial_module_SOURCES) +MOD_FILES += serial.mod +MARKER_FILES += serial.marker +CLEANFILES += serial.marker + +serial.marker: $(serial_module_SOURCES) $(nodist_serial_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(serial_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_arc +platform_PROGRAMS += serial.module +MODULE_FILES += serial.module$(EXEEXT) +serial_module_SOURCES = term/arc/serial.c term/serial.c ## platform sources +nodist_serial_module_SOURCES = ## platform nodist sources +serial_module_LDADD = +serial_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +serial_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +serial_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +serial_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +serial_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_serial_module_SOURCES) +CLEANFILES += $(nodist_serial_module_SOURCES) +MOD_FILES += serial.mod +MARKER_FILES += serial.marker +CLEANFILES += serial.marker + +serial.marker: $(serial_module_SOURCES) $(nodist_serial_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(serial_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_ia64_efi +platform_PROGRAMS += serial.module +MODULE_FILES += serial.module$(EXEEXT) +serial_module_SOURCES = term/efi/serial.c term/serial.c ## platform sources +nodist_serial_module_SOURCES = ## platform nodist sources +serial_module_LDADD = +serial_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +serial_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +serial_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +serial_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +serial_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_serial_module_SOURCES) +CLEANFILES += $(nodist_serial_module_SOURCES) +MOD_FILES += serial.mod +MARKER_FILES += serial.marker +CLEANFILES += serial.marker + +serial.marker: $(serial_module_SOURCES) $(nodist_serial_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(serial_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_efi +platform_PROGRAMS += serial.module +MODULE_FILES += serial.module$(EXEEXT) +serial_module_SOURCES = term/efi/serial.c term/serial.c ## platform sources +nodist_serial_module_SOURCES = ## platform nodist sources +serial_module_LDADD = +serial_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +serial_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +serial_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +serial_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +serial_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_serial_module_SOURCES) +CLEANFILES += $(nodist_serial_module_SOURCES) +MOD_FILES += serial.mod +MARKER_FILES += serial.marker +CLEANFILES += serial.marker + +serial.marker: $(serial_module_SOURCES) $(nodist_serial_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(serial_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm64_efi +platform_PROGRAMS += serial.module +MODULE_FILES += serial.module$(EXEEXT) +serial_module_SOURCES = term/efi/serial.c term/serial.c ## platform sources +nodist_serial_module_SOURCES = ## platform nodist sources +serial_module_LDADD = +serial_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +serial_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +serial_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +serial_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +serial_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_serial_module_SOURCES) +CLEANFILES += $(nodist_serial_module_SOURCES) +MOD_FILES += serial.mod +MARKER_FILES += serial.marker +CLEANFILES += serial.marker + +serial.marker: $(serial_module_SOURCES) $(nodist_serial_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(serial_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_coreboot +platform_PROGRAMS += serial.module +MODULE_FILES += serial.module$(EXEEXT) +serial_module_SOURCES = term/serial.c ## platform sources +nodist_serial_module_SOURCES = ## platform nodist sources +serial_module_LDADD = +serial_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +serial_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +serial_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +serial_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +serial_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_serial_module_SOURCES) +CLEANFILES += $(nodist_serial_module_SOURCES) +MOD_FILES += serial.mod +MARKER_FILES += serial.marker +CLEANFILES += serial.marker + +serial.marker: $(serial_module_SOURCES) $(nodist_serial_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(serial_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv32_efi +platform_PROGRAMS += serial.module +MODULE_FILES += serial.module$(EXEEXT) +serial_module_SOURCES = term/efi/serial.c term/serial.c ## platform sources +nodist_serial_module_SOURCES = ## platform nodist sources +serial_module_LDADD = +serial_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +serial_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +serial_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +serial_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +serial_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_serial_module_SOURCES) +CLEANFILES += $(nodist_serial_module_SOURCES) +MOD_FILES += serial.mod +MARKER_FILES += serial.marker +CLEANFILES += serial.marker + +serial.marker: $(serial_module_SOURCES) $(nodist_serial_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(serial_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv64_efi +platform_PROGRAMS += serial.module +MODULE_FILES += serial.module$(EXEEXT) +serial_module_SOURCES = term/efi/serial.c term/serial.c ## platform sources +nodist_serial_module_SOURCES = ## platform nodist sources +serial_module_LDADD = +serial_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +serial_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +serial_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +serial_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +serial_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_serial_module_SOURCES) +CLEANFILES += $(nodist_serial_module_SOURCES) +MOD_FILES += serial.mod +MARKER_FILES += serial.marker +CLEANFILES += serial.marker + +serial.marker: $(serial_module_SOURCES) $(nodist_serial_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(serial_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += sendkey.module +MODULE_FILES += sendkey.module$(EXEEXT) +sendkey_module_SOURCES = commands/i386/pc/sendkey.c ## platform sources +nodist_sendkey_module_SOURCES = ## platform nodist sources +sendkey_module_LDADD = +sendkey_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +sendkey_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +sendkey_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +sendkey_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +sendkey_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_sendkey_module_SOURCES) +CLEANFILES += $(nodist_sendkey_module_SOURCES) +MOD_FILES += sendkey.mod +MARKER_FILES += sendkey.marker +CLEANFILES += sendkey.marker + +sendkey.marker: $(sendkey_module_SOURCES) $(nodist_sendkey_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(sendkey_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += terminfo.module +MODULE_FILES += terminfo.module$(EXEEXT) +terminfo_module_SOURCES = term/terminfo.c term/tparm.c ## platform sources +nodist_terminfo_module_SOURCES = ## platform nodist sources +terminfo_module_LDADD = +terminfo_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +terminfo_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +terminfo_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +terminfo_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +terminfo_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_terminfo_module_SOURCES) +CLEANFILES += $(nodist_terminfo_module_SOURCES) +MOD_FILES += terminfo.mod +MARKER_FILES += terminfo.marker +CLEANFILES += terminfo.marker + +terminfo.marker: $(terminfo_module_SOURCES) $(nodist_terminfo_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(terminfo_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += terminfo.module +MODULE_FILES += terminfo.module$(EXEEXT) +terminfo_module_SOURCES = term/terminfo.c term/tparm.c ## platform sources +nodist_terminfo_module_SOURCES = ## platform nodist sources +terminfo_module_LDADD = +terminfo_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +terminfo_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +terminfo_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +terminfo_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +terminfo_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_terminfo_module_SOURCES) +CLEANFILES += $(nodist_terminfo_module_SOURCES) +MOD_FILES += terminfo.mod +MARKER_FILES += terminfo.marker +CLEANFILES += terminfo.marker + +terminfo.marker: $(terminfo_module_SOURCES) $(nodist_terminfo_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(terminfo_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += terminfo.module +MODULE_FILES += terminfo.module$(EXEEXT) +terminfo_module_SOURCES = term/terminfo.c term/tparm.c ## platform sources +nodist_terminfo_module_SOURCES = ## platform nodist sources +terminfo_module_LDADD = +terminfo_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +terminfo_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +terminfo_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +terminfo_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +terminfo_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_terminfo_module_SOURCES) +CLEANFILES += $(nodist_terminfo_module_SOURCES) +MOD_FILES += terminfo.mod +MARKER_FILES += terminfo.marker +CLEANFILES += terminfo.marker + +terminfo.marker: $(terminfo_module_SOURCES) $(nodist_terminfo_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(terminfo_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += terminfo.module +MODULE_FILES += terminfo.module$(EXEEXT) +terminfo_module_SOURCES = term/terminfo.c term/tparm.c ## platform sources +nodist_terminfo_module_SOURCES = ## platform nodist sources +terminfo_module_LDADD = +terminfo_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +terminfo_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +terminfo_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +terminfo_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +terminfo_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_terminfo_module_SOURCES) +CLEANFILES += $(nodist_terminfo_module_SOURCES) +MOD_FILES += terminfo.mod +MARKER_FILES += terminfo.marker +CLEANFILES += terminfo.marker + +terminfo.marker: $(terminfo_module_SOURCES) $(nodist_terminfo_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(terminfo_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += terminfo.module +MODULE_FILES += terminfo.module$(EXEEXT) +terminfo_module_SOURCES = term/terminfo.c term/tparm.c ## platform sources +nodist_terminfo_module_SOURCES = ## platform nodist sources +terminfo_module_LDADD = +terminfo_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +terminfo_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +terminfo_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +terminfo_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +terminfo_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_terminfo_module_SOURCES) +CLEANFILES += $(nodist_terminfo_module_SOURCES) +MOD_FILES += terminfo.mod +MARKER_FILES += terminfo.marker +CLEANFILES += terminfo.marker + +terminfo.marker: $(terminfo_module_SOURCES) $(nodist_terminfo_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(terminfo_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += terminfo.module +MODULE_FILES += terminfo.module$(EXEEXT) +terminfo_module_SOURCES = term/terminfo.c term/tparm.c ## platform sources +nodist_terminfo_module_SOURCES = ## platform nodist sources +terminfo_module_LDADD = +terminfo_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +terminfo_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +terminfo_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +terminfo_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +terminfo_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_terminfo_module_SOURCES) +CLEANFILES += $(nodist_terminfo_module_SOURCES) +MOD_FILES += terminfo.mod +MARKER_FILES += terminfo.marker +CLEANFILES += terminfo.marker + +terminfo.marker: $(terminfo_module_SOURCES) $(nodist_terminfo_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(terminfo_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_ia64_efi +platform_PROGRAMS += terminfo.module +MODULE_FILES += terminfo.module$(EXEEXT) +terminfo_module_SOURCES = term/terminfo.c term/tparm.c ## platform sources +nodist_terminfo_module_SOURCES = ## platform nodist sources +terminfo_module_LDADD = +terminfo_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +terminfo_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +terminfo_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +terminfo_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +terminfo_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_terminfo_module_SOURCES) +CLEANFILES += $(nodist_terminfo_module_SOURCES) +MOD_FILES += terminfo.mod +MARKER_FILES += terminfo.marker +CLEANFILES += terminfo.marker + +terminfo.marker: $(terminfo_module_SOURCES) $(nodist_terminfo_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(terminfo_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_efi +platform_PROGRAMS += terminfo.module +MODULE_FILES += terminfo.module$(EXEEXT) +terminfo_module_SOURCES = term/terminfo.c term/tparm.c ## platform sources +nodist_terminfo_module_SOURCES = ## platform nodist sources +terminfo_module_LDADD = +terminfo_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +terminfo_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +terminfo_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +terminfo_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +terminfo_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_terminfo_module_SOURCES) +CLEANFILES += $(nodist_terminfo_module_SOURCES) +MOD_FILES += terminfo.mod +MARKER_FILES += terminfo.marker +CLEANFILES += terminfo.marker + +terminfo.marker: $(terminfo_module_SOURCES) $(nodist_terminfo_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(terminfo_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm64_efi +platform_PROGRAMS += terminfo.module +MODULE_FILES += terminfo.module$(EXEEXT) +terminfo_module_SOURCES = term/terminfo.c term/tparm.c ## platform sources +nodist_terminfo_module_SOURCES = ## platform nodist sources +terminfo_module_LDADD = +terminfo_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +terminfo_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +terminfo_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +terminfo_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +terminfo_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_terminfo_module_SOURCES) +CLEANFILES += $(nodist_terminfo_module_SOURCES) +MOD_FILES += terminfo.mod +MARKER_FILES += terminfo.marker +CLEANFILES += terminfo.marker + +terminfo.marker: $(terminfo_module_SOURCES) $(nodist_terminfo_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(terminfo_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_coreboot +platform_PROGRAMS += terminfo.module +MODULE_FILES += terminfo.module$(EXEEXT) +terminfo_module_SOURCES = term/terminfo.c term/tparm.c ## platform sources +nodist_terminfo_module_SOURCES = ## platform nodist sources +terminfo_module_LDADD = +terminfo_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +terminfo_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +terminfo_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +terminfo_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +terminfo_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_terminfo_module_SOURCES) +CLEANFILES += $(nodist_terminfo_module_SOURCES) +MOD_FILES += terminfo.mod +MARKER_FILES += terminfo.marker +CLEANFILES += terminfo.marker + +terminfo.marker: $(terminfo_module_SOURCES) $(nodist_terminfo_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(terminfo_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv32_efi +platform_PROGRAMS += terminfo.module +MODULE_FILES += terminfo.module$(EXEEXT) +terminfo_module_SOURCES = term/terminfo.c term/tparm.c ## platform sources +nodist_terminfo_module_SOURCES = ## platform nodist sources +terminfo_module_LDADD = +terminfo_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +terminfo_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +terminfo_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +terminfo_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +terminfo_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_terminfo_module_SOURCES) +CLEANFILES += $(nodist_terminfo_module_SOURCES) +MOD_FILES += terminfo.mod +MARKER_FILES += terminfo.marker +CLEANFILES += terminfo.marker + +terminfo.marker: $(terminfo_module_SOURCES) $(nodist_terminfo_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(terminfo_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv64_efi +platform_PROGRAMS += terminfo.module +MODULE_FILES += terminfo.module$(EXEEXT) +terminfo_module_SOURCES = term/terminfo.c term/tparm.c ## platform sources +nodist_terminfo_module_SOURCES = ## platform nodist sources +terminfo_module_LDADD = +terminfo_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +terminfo_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +terminfo_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +terminfo_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +terminfo_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_terminfo_module_SOURCES) +CLEANFILES += $(nodist_terminfo_module_SOURCES) +MOD_FILES += terminfo.mod +MARKER_FILES += terminfo.marker +CLEANFILES += terminfo.marker + +terminfo.marker: $(terminfo_module_SOURCES) $(nodist_terminfo_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(terminfo_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += usb_keyboard.module +MODULE_FILES += usb_keyboard.module$(EXEEXT) +usb_keyboard_module_SOURCES = term/usb_keyboard.c ## platform sources +nodist_usb_keyboard_module_SOURCES = ## platform nodist sources +usb_keyboard_module_LDADD = +usb_keyboard_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usb_keyboard_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usb_keyboard_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usb_keyboard_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usb_keyboard_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usb_keyboard_module_SOURCES) +CLEANFILES += $(nodist_usb_keyboard_module_SOURCES) +MOD_FILES += usb_keyboard.mod +MARKER_FILES += usb_keyboard.marker +CLEANFILES += usb_keyboard.marker + +usb_keyboard.marker: $(usb_keyboard_module_SOURCES) $(nodist_usb_keyboard_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usb_keyboard_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += usb_keyboard.module +MODULE_FILES += usb_keyboard.module$(EXEEXT) +usb_keyboard_module_SOURCES = term/usb_keyboard.c ## platform sources +nodist_usb_keyboard_module_SOURCES = ## platform nodist sources +usb_keyboard_module_LDADD = +usb_keyboard_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usb_keyboard_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usb_keyboard_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usb_keyboard_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usb_keyboard_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usb_keyboard_module_SOURCES) +CLEANFILES += $(nodist_usb_keyboard_module_SOURCES) +MOD_FILES += usb_keyboard.mod +MARKER_FILES += usb_keyboard.marker +CLEANFILES += usb_keyboard.marker + +usb_keyboard.marker: $(usb_keyboard_module_SOURCES) $(nodist_usb_keyboard_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usb_keyboard_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += usb_keyboard.module +MODULE_FILES += usb_keyboard.module$(EXEEXT) +usb_keyboard_module_SOURCES = term/usb_keyboard.c ## platform sources +nodist_usb_keyboard_module_SOURCES = ## platform nodist sources +usb_keyboard_module_LDADD = +usb_keyboard_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usb_keyboard_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usb_keyboard_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usb_keyboard_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usb_keyboard_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usb_keyboard_module_SOURCES) +CLEANFILES += $(nodist_usb_keyboard_module_SOURCES) +MOD_FILES += usb_keyboard.mod +MARKER_FILES += usb_keyboard.marker +CLEANFILES += usb_keyboard.marker + +usb_keyboard.marker: $(usb_keyboard_module_SOURCES) $(nodist_usb_keyboard_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usb_keyboard_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += usb_keyboard.module +MODULE_FILES += usb_keyboard.module$(EXEEXT) +usb_keyboard_module_SOURCES = term/usb_keyboard.c ## platform sources +nodist_usb_keyboard_module_SOURCES = ## platform nodist sources +usb_keyboard_module_LDADD = +usb_keyboard_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usb_keyboard_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usb_keyboard_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usb_keyboard_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usb_keyboard_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usb_keyboard_module_SOURCES) +CLEANFILES += $(nodist_usb_keyboard_module_SOURCES) +MOD_FILES += usb_keyboard.mod +MARKER_FILES += usb_keyboard.marker +CLEANFILES += usb_keyboard.marker + +usb_keyboard.marker: $(usb_keyboard_module_SOURCES) $(nodist_usb_keyboard_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usb_keyboard_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += usb_keyboard.module +MODULE_FILES += usb_keyboard.module$(EXEEXT) +usb_keyboard_module_SOURCES = term/usb_keyboard.c ## platform sources +nodist_usb_keyboard_module_SOURCES = ## platform nodist sources +usb_keyboard_module_LDADD = +usb_keyboard_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usb_keyboard_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usb_keyboard_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usb_keyboard_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usb_keyboard_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usb_keyboard_module_SOURCES) +CLEANFILES += $(nodist_usb_keyboard_module_SOURCES) +MOD_FILES += usb_keyboard.mod +MARKER_FILES += usb_keyboard.marker +CLEANFILES += usb_keyboard.marker + +usb_keyboard.marker: $(usb_keyboard_module_SOURCES) $(nodist_usb_keyboard_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usb_keyboard_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += usb_keyboard.module +MODULE_FILES += usb_keyboard.module$(EXEEXT) +usb_keyboard_module_SOURCES = term/usb_keyboard.c ## platform sources +nodist_usb_keyboard_module_SOURCES = ## platform nodist sources +usb_keyboard_module_LDADD = +usb_keyboard_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usb_keyboard_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usb_keyboard_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usb_keyboard_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usb_keyboard_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usb_keyboard_module_SOURCES) +CLEANFILES += $(nodist_usb_keyboard_module_SOURCES) +MOD_FILES += usb_keyboard.mod +MARKER_FILES += usb_keyboard.marker +CLEANFILES += usb_keyboard.marker + +usb_keyboard.marker: $(usb_keyboard_module_SOURCES) $(nodist_usb_keyboard_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usb_keyboard_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += usb_keyboard.module +MODULE_FILES += usb_keyboard.module$(EXEEXT) +usb_keyboard_module_SOURCES = term/usb_keyboard.c ## platform sources +nodist_usb_keyboard_module_SOURCES = ## platform nodist sources +usb_keyboard_module_LDADD = +usb_keyboard_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usb_keyboard_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usb_keyboard_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usb_keyboard_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usb_keyboard_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usb_keyboard_module_SOURCES) +CLEANFILES += $(nodist_usb_keyboard_module_SOURCES) +MOD_FILES += usb_keyboard.mod +MARKER_FILES += usb_keyboard.marker +CLEANFILES += usb_keyboard.marker + +usb_keyboard.marker: $(usb_keyboard_module_SOURCES) $(nodist_usb_keyboard_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usb_keyboard_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_loongson +platform_PROGRAMS += usb_keyboard.module +MODULE_FILES += usb_keyboard.module$(EXEEXT) +usb_keyboard_module_SOURCES = term/usb_keyboard.c ## platform sources +nodist_usb_keyboard_module_SOURCES = ## platform nodist sources +usb_keyboard_module_LDADD = +usb_keyboard_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usb_keyboard_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usb_keyboard_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usb_keyboard_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usb_keyboard_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usb_keyboard_module_SOURCES) +CLEANFILES += $(nodist_usb_keyboard_module_SOURCES) +MOD_FILES += usb_keyboard.mod +MARKER_FILES += usb_keyboard.marker +CLEANFILES += usb_keyboard.marker + +usb_keyboard.marker: $(usb_keyboard_module_SOURCES) $(nodist_usb_keyboard_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usb_keyboard_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_coreboot +platform_PROGRAMS += usb_keyboard.module +MODULE_FILES += usb_keyboard.module$(EXEEXT) +usb_keyboard_module_SOURCES = term/usb_keyboard.c ## platform sources +nodist_usb_keyboard_module_SOURCES = ## platform nodist sources +usb_keyboard_module_LDADD = +usb_keyboard_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +usb_keyboard_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +usb_keyboard_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +usb_keyboard_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +usb_keyboard_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_usb_keyboard_module_SOURCES) +CLEANFILES += $(nodist_usb_keyboard_module_SOURCES) +MOD_FILES += usb_keyboard.mod +MARKER_FILES += usb_keyboard.marker +CLEANFILES += usb_keyboard.marker + +usb_keyboard.marker: $(usb_keyboard_module_SOURCES) $(nodist_usb_keyboard_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(usb_keyboard_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += vga.module +MODULE_FILES += vga.module$(EXEEXT) +vga_module_SOURCES = video/i386/pc/vga.c ## platform sources +nodist_vga_module_SOURCES = ## platform nodist sources +vga_module_LDADD = +vga_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +vga_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +vga_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +vga_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +vga_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_vga_module_SOURCES) +CLEANFILES += $(nodist_vga_module_SOURCES) +MOD_FILES += vga.mod +MARKER_FILES += vga.marker +CLEANFILES += vga.marker + +vga.marker: $(vga_module_SOURCES) $(nodist_vga_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(vga_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += vga_text.module +MODULE_FILES += vga_text.module$(EXEEXT) +vga_text_module_SOURCES = term/i386/pc/vga_text.c ## platform sources +nodist_vga_text_module_SOURCES = ## platform nodist sources +vga_text_module_LDADD = +vga_text_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +vga_text_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +vga_text_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +vga_text_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +vga_text_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_vga_text_module_SOURCES) +CLEANFILES += $(nodist_vga_text_module_SOURCES) +MOD_FILES += vga_text.mod +MARKER_FILES += vga_text.marker +CLEANFILES += vga_text.marker + +vga_text.marker: $(vga_text_module_SOURCES) $(nodist_vga_text_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(vga_text_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += mda_text.module +MODULE_FILES += mda_text.module$(EXEEXT) +mda_text_module_SOURCES = term/i386/pc/mda_text.c ## platform sources +nodist_mda_text_module_SOURCES = ## platform nodist sources +mda_text_module_LDADD = +mda_text_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +mda_text_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +mda_text_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +mda_text_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +mda_text_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_mda_text_module_SOURCES) +CLEANFILES += $(nodist_mda_text_module_SOURCES) +MOD_FILES += mda_text.mod +MARKER_FILES += mda_text.marker +CLEANFILES += mda_text.marker + +mda_text.marker: $(mda_text_module_SOURCES) $(nodist_mda_text_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(mda_text_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += mda_text.module +MODULE_FILES += mda_text.module$(EXEEXT) +mda_text_module_SOURCES = term/i386/pc/mda_text.c ## platform sources +nodist_mda_text_module_SOURCES = ## platform nodist sources +mda_text_module_LDADD = +mda_text_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +mda_text_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +mda_text_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +mda_text_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +mda_text_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_mda_text_module_SOURCES) +CLEANFILES += $(nodist_mda_text_module_SOURCES) +MOD_FILES += mda_text.mod +MARKER_FILES += mda_text.marker +CLEANFILES += mda_text.marker + +mda_text.marker: $(mda_text_module_SOURCES) $(nodist_mda_text_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(mda_text_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += mda_text.module +MODULE_FILES += mda_text.module$(EXEEXT) +mda_text_module_SOURCES = term/i386/pc/mda_text.c ## platform sources +nodist_mda_text_module_SOURCES = ## platform nodist sources +mda_text_module_LDADD = +mda_text_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +mda_text_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +mda_text_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +mda_text_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +mda_text_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_mda_text_module_SOURCES) +CLEANFILES += $(nodist_mda_text_module_SOURCES) +MOD_FILES += mda_text.mod +MARKER_FILES += mda_text.marker +CLEANFILES += mda_text.marker + +mda_text.marker: $(mda_text_module_SOURCES) $(nodist_mda_text_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(mda_text_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += mda_text.module +MODULE_FILES += mda_text.module$(EXEEXT) +mda_text_module_SOURCES = term/i386/pc/mda_text.c ## platform sources +nodist_mda_text_module_SOURCES = ## platform nodist sources +mda_text_module_LDADD = +mda_text_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +mda_text_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +mda_text_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +mda_text_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +mda_text_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_mda_text_module_SOURCES) +CLEANFILES += $(nodist_mda_text_module_SOURCES) +MOD_FILES += mda_text.mod +MARKER_FILES += mda_text.marker +CLEANFILES += mda_text.marker + +mda_text.marker: $(mda_text_module_SOURCES) $(nodist_mda_text_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(mda_text_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += video_cirrus.module +MODULE_FILES += video_cirrus.module$(EXEEXT) +video_cirrus_module_SOURCES = video/cirrus.c ## platform sources +nodist_video_cirrus_module_SOURCES = ## platform nodist sources +video_cirrus_module_LDADD = +video_cirrus_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_cirrus_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_cirrus_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_cirrus_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_cirrus_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_cirrus_module_SOURCES) +CLEANFILES += $(nodist_video_cirrus_module_SOURCES) +MOD_FILES += video_cirrus.mod +MARKER_FILES += video_cirrus.marker +CLEANFILES += video_cirrus.marker + +video_cirrus.marker: $(video_cirrus_module_SOURCES) $(nodist_video_cirrus_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_cirrus_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += video_cirrus.module +MODULE_FILES += video_cirrus.module$(EXEEXT) +video_cirrus_module_SOURCES = video/cirrus.c ## platform sources +nodist_video_cirrus_module_SOURCES = ## platform nodist sources +video_cirrus_module_LDADD = +video_cirrus_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_cirrus_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_cirrus_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_cirrus_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_cirrus_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_cirrus_module_SOURCES) +CLEANFILES += $(nodist_video_cirrus_module_SOURCES) +MOD_FILES += video_cirrus.mod +MARKER_FILES += video_cirrus.marker +CLEANFILES += video_cirrus.marker + +video_cirrus.marker: $(video_cirrus_module_SOURCES) $(nodist_video_cirrus_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_cirrus_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += video_cirrus.module +MODULE_FILES += video_cirrus.module$(EXEEXT) +video_cirrus_module_SOURCES = video/cirrus.c ## platform sources +nodist_video_cirrus_module_SOURCES = ## platform nodist sources +video_cirrus_module_LDADD = +video_cirrus_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_cirrus_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_cirrus_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_cirrus_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_cirrus_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_cirrus_module_SOURCES) +CLEANFILES += $(nodist_video_cirrus_module_SOURCES) +MOD_FILES += video_cirrus.mod +MARKER_FILES += video_cirrus.marker +CLEANFILES += video_cirrus.marker + +video_cirrus.marker: $(video_cirrus_module_SOURCES) $(nodist_video_cirrus_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_cirrus_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += video_cirrus.module +MODULE_FILES += video_cirrus.module$(EXEEXT) +video_cirrus_module_SOURCES = video/cirrus.c ## platform sources +nodist_video_cirrus_module_SOURCES = ## platform nodist sources +video_cirrus_module_LDADD = +video_cirrus_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_cirrus_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_cirrus_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_cirrus_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_cirrus_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_cirrus_module_SOURCES) +CLEANFILES += $(nodist_video_cirrus_module_SOURCES) +MOD_FILES += video_cirrus.mod +MARKER_FILES += video_cirrus.marker +CLEANFILES += video_cirrus.marker + +video_cirrus.marker: $(video_cirrus_module_SOURCES) $(nodist_video_cirrus_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_cirrus_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += video_cirrus.module +MODULE_FILES += video_cirrus.module$(EXEEXT) +video_cirrus_module_SOURCES = video/cirrus.c ## platform sources +nodist_video_cirrus_module_SOURCES = ## platform nodist sources +video_cirrus_module_LDADD = +video_cirrus_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_cirrus_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_cirrus_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_cirrus_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_cirrus_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_cirrus_module_SOURCES) +CLEANFILES += $(nodist_video_cirrus_module_SOURCES) +MOD_FILES += video_cirrus.mod +MARKER_FILES += video_cirrus.marker +CLEANFILES += video_cirrus.marker + +video_cirrus.marker: $(video_cirrus_module_SOURCES) $(nodist_video_cirrus_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_cirrus_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += video_cirrus.module +MODULE_FILES += video_cirrus.module$(EXEEXT) +video_cirrus_module_SOURCES = video/cirrus.c ## platform sources +nodist_video_cirrus_module_SOURCES = ## platform nodist sources +video_cirrus_module_LDADD = +video_cirrus_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_cirrus_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_cirrus_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_cirrus_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_cirrus_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_cirrus_module_SOURCES) +CLEANFILES += $(nodist_video_cirrus_module_SOURCES) +MOD_FILES += video_cirrus.mod +MARKER_FILES += video_cirrus.marker +CLEANFILES += video_cirrus.marker + +video_cirrus.marker: $(video_cirrus_module_SOURCES) $(nodist_video_cirrus_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_cirrus_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += video_cirrus.module +MODULE_FILES += video_cirrus.module$(EXEEXT) +video_cirrus_module_SOURCES = video/cirrus.c ## platform sources +nodist_video_cirrus_module_SOURCES = ## platform nodist sources +video_cirrus_module_LDADD = +video_cirrus_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_cirrus_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_cirrus_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_cirrus_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_cirrus_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_cirrus_module_SOURCES) +CLEANFILES += $(nodist_video_cirrus_module_SOURCES) +MOD_FILES += video_cirrus.mod +MARKER_FILES += video_cirrus.marker +CLEANFILES += video_cirrus.marker + +video_cirrus.marker: $(video_cirrus_module_SOURCES) $(nodist_video_cirrus_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_cirrus_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += video_bochs.module +MODULE_FILES += video_bochs.module$(EXEEXT) +video_bochs_module_SOURCES = video/bochs.c ## platform sources +nodist_video_bochs_module_SOURCES = ## platform nodist sources +video_bochs_module_LDADD = +video_bochs_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_bochs_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_bochs_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_bochs_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_bochs_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_bochs_module_SOURCES) +CLEANFILES += $(nodist_video_bochs_module_SOURCES) +MOD_FILES += video_bochs.mod +MARKER_FILES += video_bochs.marker +CLEANFILES += video_bochs.marker + +video_bochs.marker: $(video_bochs_module_SOURCES) $(nodist_video_bochs_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_bochs_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += video_bochs.module +MODULE_FILES += video_bochs.module$(EXEEXT) +video_bochs_module_SOURCES = video/bochs.c ## platform sources +nodist_video_bochs_module_SOURCES = ## platform nodist sources +video_bochs_module_LDADD = +video_bochs_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_bochs_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_bochs_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_bochs_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_bochs_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_bochs_module_SOURCES) +CLEANFILES += $(nodist_video_bochs_module_SOURCES) +MOD_FILES += video_bochs.mod +MARKER_FILES += video_bochs.marker +CLEANFILES += video_bochs.marker + +video_bochs.marker: $(video_bochs_module_SOURCES) $(nodist_video_bochs_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_bochs_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += video_bochs.module +MODULE_FILES += video_bochs.module$(EXEEXT) +video_bochs_module_SOURCES = video/bochs.c ## platform sources +nodist_video_bochs_module_SOURCES = ## platform nodist sources +video_bochs_module_LDADD = +video_bochs_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_bochs_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_bochs_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_bochs_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_bochs_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_bochs_module_SOURCES) +CLEANFILES += $(nodist_video_bochs_module_SOURCES) +MOD_FILES += video_bochs.mod +MARKER_FILES += video_bochs.marker +CLEANFILES += video_bochs.marker + +video_bochs.marker: $(video_bochs_module_SOURCES) $(nodist_video_bochs_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_bochs_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += video_bochs.module +MODULE_FILES += video_bochs.module$(EXEEXT) +video_bochs_module_SOURCES = video/bochs.c ## platform sources +nodist_video_bochs_module_SOURCES = ## platform nodist sources +video_bochs_module_LDADD = +video_bochs_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_bochs_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_bochs_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_bochs_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_bochs_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_bochs_module_SOURCES) +CLEANFILES += $(nodist_video_bochs_module_SOURCES) +MOD_FILES += video_bochs.mod +MARKER_FILES += video_bochs.marker +CLEANFILES += video_bochs.marker + +video_bochs.marker: $(video_bochs_module_SOURCES) $(nodist_video_bochs_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_bochs_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += video_bochs.module +MODULE_FILES += video_bochs.module$(EXEEXT) +video_bochs_module_SOURCES = video/bochs.c ## platform sources +nodist_video_bochs_module_SOURCES = ## platform nodist sources +video_bochs_module_LDADD = +video_bochs_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_bochs_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_bochs_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_bochs_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_bochs_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_bochs_module_SOURCES) +CLEANFILES += $(nodist_video_bochs_module_SOURCES) +MOD_FILES += video_bochs.mod +MARKER_FILES += video_bochs.marker +CLEANFILES += video_bochs.marker + +video_bochs.marker: $(video_bochs_module_SOURCES) $(nodist_video_bochs_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_bochs_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += video_bochs.module +MODULE_FILES += video_bochs.module$(EXEEXT) +video_bochs_module_SOURCES = video/bochs.c ## platform sources +nodist_video_bochs_module_SOURCES = ## platform nodist sources +video_bochs_module_LDADD = +video_bochs_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_bochs_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_bochs_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_bochs_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_bochs_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_bochs_module_SOURCES) +CLEANFILES += $(nodist_video_bochs_module_SOURCES) +MOD_FILES += video_bochs.mod +MARKER_FILES += video_bochs.marker +CLEANFILES += video_bochs.marker + +video_bochs.marker: $(video_bochs_module_SOURCES) $(nodist_video_bochs_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_bochs_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += video_bochs.module +MODULE_FILES += video_bochs.module$(EXEEXT) +video_bochs_module_SOURCES = video/bochs.c ## platform sources +nodist_video_bochs_module_SOURCES = ## platform nodist sources +video_bochs_module_LDADD = +video_bochs_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_bochs_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_bochs_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_bochs_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_bochs_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_bochs_module_SOURCES) +CLEANFILES += $(nodist_video_bochs_module_SOURCES) +MOD_FILES += video_bochs.mod +MARKER_FILES += video_bochs.marker +CLEANFILES += video_bochs.marker + +video_bochs.marker: $(video_bochs_module_SOURCES) $(nodist_video_bochs_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_bochs_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif +platform_PROGRAMS += functional_test.module +MODULE_FILES += functional_test.module$(EXEEXT) +functional_test_module_SOURCES = tests/lib/functional_test.c tests/lib/test.c tests/checksums.h tests/video_checksum.c tests/fake_input.c video/capture.c ## platform sources +nodist_functional_test_module_SOURCES = ## platform nodist sources +functional_test_module_LDADD = +functional_test_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +functional_test_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +functional_test_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +functional_test_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +functional_test_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_functional_test_module_SOURCES) +CLEANFILES += $(nodist_functional_test_module_SOURCES) +MOD_FILES += functional_test.mod +MARKER_FILES += functional_test.marker +CLEANFILES += functional_test.marker + +functional_test.marker: $(functional_test_module_SOURCES) $(nodist_functional_test_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(functional_test_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += exfctest.module +MODULE_FILES += exfctest.module$(EXEEXT) +exfctest_module_SOURCES = tests/example_functional_test.c ## platform sources +nodist_exfctest_module_SOURCES = ## platform nodist sources +exfctest_module_LDADD = +exfctest_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +exfctest_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +exfctest_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +exfctest_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +exfctest_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_exfctest_module_SOURCES) +CLEANFILES += $(nodist_exfctest_module_SOURCES) +MOD_FILES += exfctest.mod +MARKER_FILES += exfctest.marker +CLEANFILES += exfctest.marker + +exfctest.marker: $(exfctest_module_SOURCES) $(nodist_exfctest_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(exfctest_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += strtoull_test.module +MODULE_FILES += strtoull_test.module$(EXEEXT) +strtoull_test_module_SOURCES = tests/strtoull_test.c ## platform sources +nodist_strtoull_test_module_SOURCES = ## platform nodist sources +strtoull_test_module_LDADD = +strtoull_test_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +strtoull_test_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +strtoull_test_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +strtoull_test_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +strtoull_test_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_strtoull_test_module_SOURCES) +CLEANFILES += $(nodist_strtoull_test_module_SOURCES) +MOD_FILES += strtoull_test.mod +MARKER_FILES += strtoull_test.marker +CLEANFILES += strtoull_test.marker + +strtoull_test.marker: $(strtoull_test_module_SOURCES) $(nodist_strtoull_test_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(strtoull_test_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += setjmp_test.module +MODULE_FILES += setjmp_test.module$(EXEEXT) +setjmp_test_module_SOURCES = tests/setjmp_test.c ## platform sources +nodist_setjmp_test_module_SOURCES = ## platform nodist sources +setjmp_test_module_LDADD = +setjmp_test_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +setjmp_test_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +setjmp_test_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +setjmp_test_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +setjmp_test_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_setjmp_test_module_SOURCES) +CLEANFILES += $(nodist_setjmp_test_module_SOURCES) +MOD_FILES += setjmp_test.mod +MARKER_FILES += setjmp_test.marker +CLEANFILES += setjmp_test.marker + +setjmp_test.marker: $(setjmp_test_module_SOURCES) $(nodist_setjmp_test_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(setjmp_test_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += signature_test.module +MODULE_FILES += signature_test.module$(EXEEXT) +signature_test_module_SOURCES = tests/signature_test.c tests/signatures.h ## platform sources +nodist_signature_test_module_SOURCES = ## platform nodist sources +signature_test_module_LDADD = +signature_test_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +signature_test_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +signature_test_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +signature_test_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +signature_test_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_signature_test_module_SOURCES) +CLEANFILES += $(nodist_signature_test_module_SOURCES) +MOD_FILES += signature_test.mod +MARKER_FILES += signature_test.marker +CLEANFILES += signature_test.marker + +signature_test.marker: $(signature_test_module_SOURCES) $(nodist_signature_test_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(signature_test_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += sleep_test.module +MODULE_FILES += sleep_test.module$(EXEEXT) +sleep_test_module_SOURCES = tests/sleep_test.c ## platform sources +nodist_sleep_test_module_SOURCES = ## platform nodist sources +sleep_test_module_LDADD = +sleep_test_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +sleep_test_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +sleep_test_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +sleep_test_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +sleep_test_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_sleep_test_module_SOURCES) +CLEANFILES += $(nodist_sleep_test_module_SOURCES) +MOD_FILES += sleep_test.mod +MARKER_FILES += sleep_test.marker +CLEANFILES += sleep_test.marker + +sleep_test.marker: $(sleep_test_module_SOURCES) $(nodist_sleep_test_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(sleep_test_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += xnu_uuid_test.module +MODULE_FILES += xnu_uuid_test.module$(EXEEXT) +xnu_uuid_test_module_SOURCES = tests/xnu_uuid_test.c ## platform sources +nodist_xnu_uuid_test_module_SOURCES = ## platform nodist sources +xnu_uuid_test_module_LDADD = +xnu_uuid_test_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +xnu_uuid_test_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +xnu_uuid_test_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +xnu_uuid_test_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +xnu_uuid_test_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_xnu_uuid_test_module_SOURCES) +CLEANFILES += $(nodist_xnu_uuid_test_module_SOURCES) +MOD_FILES += xnu_uuid_test.mod +MARKER_FILES += xnu_uuid_test.marker +CLEANFILES += xnu_uuid_test.marker + +xnu_uuid_test.marker: $(xnu_uuid_test_module_SOURCES) $(nodist_xnu_uuid_test_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xnu_uuid_test_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += pbkdf2_test.module +MODULE_FILES += pbkdf2_test.module$(EXEEXT) +pbkdf2_test_module_SOURCES = tests/pbkdf2_test.c ## platform sources +nodist_pbkdf2_test_module_SOURCES = ## platform nodist sources +pbkdf2_test_module_LDADD = +pbkdf2_test_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +pbkdf2_test_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +pbkdf2_test_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +pbkdf2_test_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +pbkdf2_test_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_pbkdf2_test_module_SOURCES) +CLEANFILES += $(nodist_pbkdf2_test_module_SOURCES) +MOD_FILES += pbkdf2_test.mod +MARKER_FILES += pbkdf2_test.marker +CLEANFILES += pbkdf2_test.marker + +pbkdf2_test.marker: $(pbkdf2_test_module_SOURCES) $(nodist_pbkdf2_test_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pbkdf2_test_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new + +if COND_emu +platform_PROGRAMS += legacy_password_test.module +MODULE_FILES += legacy_password_test.module$(EXEEXT) +legacy_password_test_module_SOURCES = tests/legacy_password_test.c ## platform sources +nodist_legacy_password_test_module_SOURCES = ## platform nodist sources +legacy_password_test_module_LDADD = +legacy_password_test_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +legacy_password_test_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +legacy_password_test_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +legacy_password_test_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +legacy_password_test_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_legacy_password_test_module_SOURCES) +CLEANFILES += $(nodist_legacy_password_test_module_SOURCES) +MOD_FILES += legacy_password_test.mod +MARKER_FILES += legacy_password_test.marker +CLEANFILES += legacy_password_test.marker + +legacy_password_test.marker: $(legacy_password_test_module_SOURCES) $(nodist_legacy_password_test_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(legacy_password_test_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += legacy_password_test.module +MODULE_FILES += legacy_password_test.module$(EXEEXT) +legacy_password_test_module_SOURCES = tests/legacy_password_test.c ## platform sources +nodist_legacy_password_test_module_SOURCES = ## platform nodist sources +legacy_password_test_module_LDADD = +legacy_password_test_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +legacy_password_test_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +legacy_password_test_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +legacy_password_test_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +legacy_password_test_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_legacy_password_test_module_SOURCES) +CLEANFILES += $(nodist_legacy_password_test_module_SOURCES) +MOD_FILES += legacy_password_test.mod +MARKER_FILES += legacy_password_test.marker +CLEANFILES += legacy_password_test.marker + +legacy_password_test.marker: $(legacy_password_test_module_SOURCES) $(nodist_legacy_password_test_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(legacy_password_test_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += legacy_password_test.module +MODULE_FILES += legacy_password_test.module$(EXEEXT) +legacy_password_test_module_SOURCES = tests/legacy_password_test.c ## platform sources +nodist_legacy_password_test_module_SOURCES = ## platform nodist sources +legacy_password_test_module_LDADD = +legacy_password_test_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +legacy_password_test_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +legacy_password_test_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +legacy_password_test_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +legacy_password_test_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_legacy_password_test_module_SOURCES) +CLEANFILES += $(nodist_legacy_password_test_module_SOURCES) +MOD_FILES += legacy_password_test.mod +MARKER_FILES += legacy_password_test.marker +CLEANFILES += legacy_password_test.marker + +legacy_password_test.marker: $(legacy_password_test_module_SOURCES) $(nodist_legacy_password_test_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(legacy_password_test_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += legacy_password_test.module +MODULE_FILES += legacy_password_test.module$(EXEEXT) +legacy_password_test_module_SOURCES = tests/legacy_password_test.c ## platform sources +nodist_legacy_password_test_module_SOURCES = ## platform nodist sources +legacy_password_test_module_LDADD = +legacy_password_test_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +legacy_password_test_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +legacy_password_test_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +legacy_password_test_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +legacy_password_test_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_legacy_password_test_module_SOURCES) +CLEANFILES += $(nodist_legacy_password_test_module_SOURCES) +MOD_FILES += legacy_password_test.mod +MARKER_FILES += legacy_password_test.marker +CLEANFILES += legacy_password_test.marker + +legacy_password_test.marker: $(legacy_password_test_module_SOURCES) $(nodist_legacy_password_test_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(legacy_password_test_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_xen +platform_PROGRAMS += legacy_password_test.module +MODULE_FILES += legacy_password_test.module$(EXEEXT) +legacy_password_test_module_SOURCES = tests/legacy_password_test.c ## platform sources +nodist_legacy_password_test_module_SOURCES = ## platform nodist sources +legacy_password_test_module_LDADD = +legacy_password_test_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +legacy_password_test_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +legacy_password_test_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +legacy_password_test_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +legacy_password_test_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_legacy_password_test_module_SOURCES) +CLEANFILES += $(nodist_legacy_password_test_module_SOURCES) +MOD_FILES += legacy_password_test.mod +MARKER_FILES += legacy_password_test.marker +CLEANFILES += legacy_password_test.marker + +legacy_password_test.marker: $(legacy_password_test_module_SOURCES) $(nodist_legacy_password_test_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(legacy_password_test_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_xen +platform_PROGRAMS += legacy_password_test.module +MODULE_FILES += legacy_password_test.module$(EXEEXT) +legacy_password_test_module_SOURCES = tests/legacy_password_test.c ## platform sources +nodist_legacy_password_test_module_SOURCES = ## platform nodist sources +legacy_password_test_module_LDADD = +legacy_password_test_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +legacy_password_test_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +legacy_password_test_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +legacy_password_test_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +legacy_password_test_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_legacy_password_test_module_SOURCES) +CLEANFILES += $(nodist_legacy_password_test_module_SOURCES) +MOD_FILES += legacy_password_test.mod +MARKER_FILES += legacy_password_test.marker +CLEANFILES += legacy_password_test.marker + +legacy_password_test.marker: $(legacy_password_test_module_SOURCES) $(nodist_legacy_password_test_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(legacy_password_test_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_xen_pvh +platform_PROGRAMS += legacy_password_test.module +MODULE_FILES += legacy_password_test.module$(EXEEXT) +legacy_password_test_module_SOURCES = tests/legacy_password_test.c ## platform sources +nodist_legacy_password_test_module_SOURCES = ## platform nodist sources +legacy_password_test_module_LDADD = +legacy_password_test_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +legacy_password_test_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +legacy_password_test_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +legacy_password_test_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +legacy_password_test_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_legacy_password_test_module_SOURCES) +CLEANFILES += $(nodist_legacy_password_test_module_SOURCES) +MOD_FILES += legacy_password_test.mod +MARKER_FILES += legacy_password_test.marker +CLEANFILES += legacy_password_test.marker + +legacy_password_test.marker: $(legacy_password_test_module_SOURCES) $(nodist_legacy_password_test_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(legacy_password_test_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_emu +platform_PROGRAMS += div.module +MODULE_FILES += div.module$(EXEEXT) +div_module_SOURCES = lib/division.c ## platform sources +nodist_div_module_SOURCES = ## platform nodist sources +div_module_LDADD = +div_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +div_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +div_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +div_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +div_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_div_module_SOURCES) +CLEANFILES += $(nodist_div_module_SOURCES) +MOD_FILES += div.mod +MARKER_FILES += div.marker +CLEANFILES += div.marker + +div.marker: $(div_module_SOURCES) $(nodist_div_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(div_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += div.module +MODULE_FILES += div.module$(EXEEXT) +div_module_SOURCES = lib/division.c ## platform sources +nodist_div_module_SOURCES = ## platform nodist sources +div_module_LDADD = +div_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +div_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +div_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +div_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +div_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_div_module_SOURCES) +CLEANFILES += $(nodist_div_module_SOURCES) +MOD_FILES += div.mod +MARKER_FILES += div.marker +CLEANFILES += div.marker + +div.marker: $(div_module_SOURCES) $(nodist_div_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(div_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += div.module +MODULE_FILES += div.module$(EXEEXT) +div_module_SOURCES = lib/division.c ## platform sources +nodist_div_module_SOURCES = ## platform nodist sources +div_module_LDADD = +div_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +div_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +div_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +div_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +div_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_div_module_SOURCES) +CLEANFILES += $(nodist_div_module_SOURCES) +MOD_FILES += div.mod +MARKER_FILES += div.marker +CLEANFILES += div.marker + +div.marker: $(div_module_SOURCES) $(nodist_div_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(div_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += div.module +MODULE_FILES += div.module$(EXEEXT) +div_module_SOURCES = lib/division.c ## platform sources +nodist_div_module_SOURCES = ## platform nodist sources +div_module_LDADD = +div_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +div_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +div_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +div_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +div_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_div_module_SOURCES) +CLEANFILES += $(nodist_div_module_SOURCES) +MOD_FILES += div.mod +MARKER_FILES += div.marker +CLEANFILES += div.marker + +div.marker: $(div_module_SOURCES) $(nodist_div_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(div_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += div.module +MODULE_FILES += div.module$(EXEEXT) +div_module_SOURCES = lib/division.c ## platform sources +nodist_div_module_SOURCES = ## platform nodist sources +div_module_LDADD = +div_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +div_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +div_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +div_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +div_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_div_module_SOURCES) +CLEANFILES += $(nodist_div_module_SOURCES) +MOD_FILES += div.mod +MARKER_FILES += div.marker +CLEANFILES += div.marker + +div.marker: $(div_module_SOURCES) $(nodist_div_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(div_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += div.module +MODULE_FILES += div.module$(EXEEXT) +div_module_SOURCES = lib/division.c ## platform sources +nodist_div_module_SOURCES = ## platform nodist sources +div_module_LDADD = +div_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +div_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +div_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +div_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +div_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_div_module_SOURCES) +CLEANFILES += $(nodist_div_module_SOURCES) +MOD_FILES += div.mod +MARKER_FILES += div.marker +CLEANFILES += div.marker + +div.marker: $(div_module_SOURCES) $(nodist_div_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(div_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += div.module +MODULE_FILES += div.module$(EXEEXT) +div_module_SOURCES = lib/division.c ## platform sources +nodist_div_module_SOURCES = ## platform nodist sources +div_module_LDADD = +div_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +div_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +div_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +div_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +div_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_div_module_SOURCES) +CLEANFILES += $(nodist_div_module_SOURCES) +MOD_FILES += div.mod +MARKER_FILES += div.marker +CLEANFILES += div.marker + +div.marker: $(div_module_SOURCES) $(nodist_div_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(div_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += div.module +MODULE_FILES += div.module$(EXEEXT) +div_module_SOURCES = lib/division.c ## platform sources +nodist_div_module_SOURCES = ## platform nodist sources +div_module_LDADD = +div_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +div_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +div_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +div_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +div_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_div_module_SOURCES) +CLEANFILES += $(nodist_div_module_SOURCES) +MOD_FILES += div.mod +MARKER_FILES += div.marker +CLEANFILES += div.marker + +div.marker: $(div_module_SOURCES) $(nodist_div_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(div_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_xen +platform_PROGRAMS += div.module +MODULE_FILES += div.module$(EXEEXT) +div_module_SOURCES = lib/division.c ## platform sources +nodist_div_module_SOURCES = ## platform nodist sources +div_module_LDADD = +div_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +div_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +div_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +div_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +div_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_div_module_SOURCES) +CLEANFILES += $(nodist_div_module_SOURCES) +MOD_FILES += div.mod +MARKER_FILES += div.marker +CLEANFILES += div.marker + +div.marker: $(div_module_SOURCES) $(nodist_div_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(div_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_xen +platform_PROGRAMS += div.module +MODULE_FILES += div.module$(EXEEXT) +div_module_SOURCES = lib/division.c ## platform sources +nodist_div_module_SOURCES = ## platform nodist sources +div_module_LDADD = +div_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +div_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +div_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +div_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +div_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_div_module_SOURCES) +CLEANFILES += $(nodist_div_module_SOURCES) +MOD_FILES += div.mod +MARKER_FILES += div.marker +CLEANFILES += div.marker + +div.marker: $(div_module_SOURCES) $(nodist_div_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(div_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_xen_pvh +platform_PROGRAMS += div.module +MODULE_FILES += div.module$(EXEEXT) +div_module_SOURCES = lib/division.c ## platform sources +nodist_div_module_SOURCES = ## platform nodist sources +div_module_LDADD = +div_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +div_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +div_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +div_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +div_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_div_module_SOURCES) +CLEANFILES += $(nodist_div_module_SOURCES) +MOD_FILES += div.mod +MARKER_FILES += div.marker +CLEANFILES += div.marker + +div.marker: $(div_module_SOURCES) $(nodist_div_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(div_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_loongson +platform_PROGRAMS += div.module +MODULE_FILES += div.module$(EXEEXT) +div_module_SOURCES = lib/division.c ## platform sources +nodist_div_module_SOURCES = ## platform nodist sources +div_module_LDADD = +div_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +div_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +div_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +div_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +div_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_div_module_SOURCES) +CLEANFILES += $(nodist_div_module_SOURCES) +MOD_FILES += div.mod +MARKER_FILES += div.marker +CLEANFILES += div.marker + +div.marker: $(div_module_SOURCES) $(nodist_div_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(div_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_sparc64_ieee1275 +platform_PROGRAMS += div.module +MODULE_FILES += div.module$(EXEEXT) +div_module_SOURCES = lib/division.c ## platform sources +nodist_div_module_SOURCES = ## platform nodist sources +div_module_LDADD = +div_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +div_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +div_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +div_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +div_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_div_module_SOURCES) +CLEANFILES += $(nodist_div_module_SOURCES) +MOD_FILES += div.mod +MARKER_FILES += div.marker +CLEANFILES += div.marker + +div.marker: $(div_module_SOURCES) $(nodist_div_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(div_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_powerpc_ieee1275 +platform_PROGRAMS += div.module +MODULE_FILES += div.module$(EXEEXT) +div_module_SOURCES = lib/division.c ## platform sources +nodist_div_module_SOURCES = ## platform nodist sources +div_module_LDADD = +div_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +div_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +div_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +div_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +div_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_div_module_SOURCES) +CLEANFILES += $(nodist_div_module_SOURCES) +MOD_FILES += div.mod +MARKER_FILES += div.marker +CLEANFILES += div.marker + +div.marker: $(div_module_SOURCES) $(nodist_div_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(div_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_arc +platform_PROGRAMS += div.module +MODULE_FILES += div.module$(EXEEXT) +div_module_SOURCES = lib/division.c ## platform sources +nodist_div_module_SOURCES = ## platform nodist sources +div_module_LDADD = +div_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +div_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +div_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +div_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +div_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_div_module_SOURCES) +CLEANFILES += $(nodist_div_module_SOURCES) +MOD_FILES += div.mod +MARKER_FILES += div.marker +CLEANFILES += div.marker + +div.marker: $(div_module_SOURCES) $(nodist_div_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(div_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_qemu_mips +platform_PROGRAMS += div.module +MODULE_FILES += div.module$(EXEEXT) +div_module_SOURCES = lib/division.c ## platform sources +nodist_div_module_SOURCES = ## platform nodist sources +div_module_LDADD = +div_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +div_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +div_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +div_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +div_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_div_module_SOURCES) +CLEANFILES += $(nodist_div_module_SOURCES) +MOD_FILES += div.mod +MARKER_FILES += div.marker +CLEANFILES += div.marker + +div.marker: $(div_module_SOURCES) $(nodist_div_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(div_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm64_efi +platform_PROGRAMS += div.module +MODULE_FILES += div.module$(EXEEXT) +div_module_SOURCES = lib/division.c ## platform sources +nodist_div_module_SOURCES = ## platform nodist sources +div_module_LDADD = +div_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +div_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +div_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +div_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +div_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_div_module_SOURCES) +CLEANFILES += $(nodist_div_module_SOURCES) +MOD_FILES += div.mod +MARKER_FILES += div.marker +CLEANFILES += div.marker + +div.marker: $(div_module_SOURCES) $(nodist_div_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(div_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv64_efi +platform_PROGRAMS += div.module +MODULE_FILES += div.module$(EXEEXT) +div_module_SOURCES = lib/division.c ## platform sources +nodist_div_module_SOURCES = ## platform nodist sources +div_module_LDADD = +div_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +div_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +div_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +div_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +div_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_div_module_SOURCES) +CLEANFILES += $(nodist_div_module_SOURCES) +MOD_FILES += div.mod +MARKER_FILES += div.marker +CLEANFILES += div.marker + +div.marker: $(div_module_SOURCES) $(nodist_div_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(div_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif +platform_PROGRAMS += div_test.module +MODULE_FILES += div_test.module$(EXEEXT) +div_test_module_SOURCES = tests/div_test.c ## platform sources +nodist_div_test_module_SOURCES = ## platform nodist sources +div_test_module_LDADD = +div_test_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +div_test_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +div_test_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +div_test_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +div_test_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_div_test_module_SOURCES) +CLEANFILES += $(nodist_div_test_module_SOURCES) +MOD_FILES += div_test.mod +MARKER_FILES += div_test.marker +CLEANFILES += div_test.marker + +div_test.marker: $(div_test_module_SOURCES) $(nodist_div_test_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(div_test_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += mul_test.module +MODULE_FILES += mul_test.module$(EXEEXT) +mul_test_module_SOURCES = tests/mul_test.c ## platform sources +nodist_mul_test_module_SOURCES = ## platform nodist sources +mul_test_module_LDADD = +mul_test_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +mul_test_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +mul_test_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +mul_test_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +mul_test_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_mul_test_module_SOURCES) +CLEANFILES += $(nodist_mul_test_module_SOURCES) +MOD_FILES += mul_test.mod +MARKER_FILES += mul_test.marker +CLEANFILES += mul_test.marker + +mul_test.marker: $(mul_test_module_SOURCES) $(nodist_mul_test_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(mul_test_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += shift_test.module +MODULE_FILES += shift_test.module$(EXEEXT) +shift_test_module_SOURCES = tests/shift_test.c ## platform sources +nodist_shift_test_module_SOURCES = ## platform nodist sources +shift_test_module_LDADD = +shift_test_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +shift_test_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +shift_test_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +shift_test_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +shift_test_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_shift_test_module_SOURCES) +CLEANFILES += $(nodist_shift_test_module_SOURCES) +MOD_FILES += shift_test.mod +MARKER_FILES += shift_test.marker +CLEANFILES += shift_test.marker + +shift_test.marker: $(shift_test_module_SOURCES) $(nodist_shift_test_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(shift_test_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += cmp_test.module +MODULE_FILES += cmp_test.module$(EXEEXT) +cmp_test_module_SOURCES = tests/cmp_test.c ## platform sources +nodist_cmp_test_module_SOURCES = ## platform nodist sources +cmp_test_module_LDADD = +cmp_test_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cmp_test_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cmp_test_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cmp_test_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cmp_test_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cmp_test_module_SOURCES) +CLEANFILES += $(nodist_cmp_test_module_SOURCES) +MOD_FILES += cmp_test.mod +MARKER_FILES += cmp_test.marker +CLEANFILES += cmp_test.marker + +cmp_test.marker: $(cmp_test_module_SOURCES) $(nodist_cmp_test_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cmp_test_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += ctz_test.module +MODULE_FILES += ctz_test.module$(EXEEXT) +ctz_test_module_SOURCES = tests/ctz_test.c ## platform sources +nodist_ctz_test_module_SOURCES = ## platform nodist sources +ctz_test_module_LDADD = +ctz_test_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +ctz_test_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +ctz_test_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +ctz_test_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +ctz_test_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_ctz_test_module_SOURCES) +CLEANFILES += $(nodist_ctz_test_module_SOURCES) +MOD_FILES += ctz_test.mod +MARKER_FILES += ctz_test.marker +CLEANFILES += ctz_test.marker + +ctz_test.marker: $(ctz_test_module_SOURCES) $(nodist_ctz_test_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ctz_test_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += bswap_test.module +MODULE_FILES += bswap_test.module$(EXEEXT) +bswap_test_module_SOURCES = tests/bswap_test.c ## platform sources +nodist_bswap_test_module_SOURCES = ## platform nodist sources +bswap_test_module_LDADD = +bswap_test_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +bswap_test_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +bswap_test_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +bswap_test_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +bswap_test_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_bswap_test_module_SOURCES) +CLEANFILES += $(nodist_bswap_test_module_SOURCES) +MOD_FILES += bswap_test.mod +MARKER_FILES += bswap_test.marker +CLEANFILES += bswap_test.marker + +bswap_test.marker: $(bswap_test_module_SOURCES) $(nodist_bswap_test_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bswap_test_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += videotest_checksum.module +MODULE_FILES += videotest_checksum.module$(EXEEXT) +videotest_checksum_module_SOURCES = tests/videotest_checksum.c ## platform sources +nodist_videotest_checksum_module_SOURCES = ## platform nodist sources +videotest_checksum_module_LDADD = +videotest_checksum_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +videotest_checksum_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +videotest_checksum_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +videotest_checksum_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +videotest_checksum_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_videotest_checksum_module_SOURCES) +CLEANFILES += $(nodist_videotest_checksum_module_SOURCES) +MOD_FILES += videotest_checksum.mod +MARKER_FILES += videotest_checksum.marker +CLEANFILES += videotest_checksum.marker + +videotest_checksum.marker: $(videotest_checksum_module_SOURCES) $(nodist_videotest_checksum_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(videotest_checksum_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += gfxterm_menu.module +MODULE_FILES += gfxterm_menu.module$(EXEEXT) +gfxterm_menu_module_SOURCES = tests/gfxterm_menu.c ## platform sources +nodist_gfxterm_menu_module_SOURCES = ## platform nodist sources +gfxterm_menu_module_LDADD = +gfxterm_menu_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +gfxterm_menu_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gfxterm_menu_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +gfxterm_menu_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gfxterm_menu_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gfxterm_menu_module_SOURCES) +CLEANFILES += $(nodist_gfxterm_menu_module_SOURCES) +MOD_FILES += gfxterm_menu.mod +MARKER_FILES += gfxterm_menu.marker +CLEANFILES += gfxterm_menu.marker + +gfxterm_menu.marker: $(gfxterm_menu_module_SOURCES) $(nodist_gfxterm_menu_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gfxterm_menu_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += cmdline_cat_test.module +MODULE_FILES += cmdline_cat_test.module$(EXEEXT) +cmdline_cat_test_module_SOURCES = tests/cmdline_cat_test.c ## platform sources +nodist_cmdline_cat_test_module_SOURCES = ## platform nodist sources +cmdline_cat_test_module_LDADD = +cmdline_cat_test_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cmdline_cat_test_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cmdline_cat_test_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cmdline_cat_test_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cmdline_cat_test_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cmdline_cat_test_module_SOURCES) +CLEANFILES += $(nodist_cmdline_cat_test_module_SOURCES) +MOD_FILES += cmdline_cat_test.mod +MARKER_FILES += cmdline_cat_test.marker +CLEANFILES += cmdline_cat_test.marker + +cmdline_cat_test.marker: $(cmdline_cat_test_module_SOURCES) $(nodist_cmdline_cat_test_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cmdline_cat_test_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += bitmap.module +MODULE_FILES += bitmap.module$(EXEEXT) +bitmap_module_SOURCES = video/bitmap.c ## platform sources +nodist_bitmap_module_SOURCES = ## platform nodist sources +bitmap_module_LDADD = +bitmap_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +bitmap_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +bitmap_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +bitmap_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +bitmap_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_bitmap_module_SOURCES) +CLEANFILES += $(nodist_bitmap_module_SOURCES) +MOD_FILES += bitmap.mod +MARKER_FILES += bitmap.marker +CLEANFILES += bitmap.marker + +bitmap.marker: $(bitmap_module_SOURCES) $(nodist_bitmap_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bitmap_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += bitmap_scale.module +MODULE_FILES += bitmap_scale.module$(EXEEXT) +bitmap_scale_module_SOURCES = video/bitmap_scale.c ## platform sources +nodist_bitmap_scale_module_SOURCES = ## platform nodist sources +bitmap_scale_module_LDADD = +bitmap_scale_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +bitmap_scale_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +bitmap_scale_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +bitmap_scale_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +bitmap_scale_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_bitmap_scale_module_SOURCES) +CLEANFILES += $(nodist_bitmap_scale_module_SOURCES) +MOD_FILES += bitmap_scale.mod +MARKER_FILES += bitmap_scale.marker +CLEANFILES += bitmap_scale.marker + +bitmap_scale.marker: $(bitmap_scale_module_SOURCES) $(nodist_bitmap_scale_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(bitmap_scale_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new + +if COND_i386_efi +platform_PROGRAMS += efi_gop.module +MODULE_FILES += efi_gop.module$(EXEEXT) +efi_gop_module_SOURCES = video/efi_gop.c ## platform sources +nodist_efi_gop_module_SOURCES = ## platform nodist sources +efi_gop_module_LDADD = +efi_gop_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +efi_gop_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +efi_gop_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +efi_gop_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +efi_gop_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_efi_gop_module_SOURCES) +CLEANFILES += $(nodist_efi_gop_module_SOURCES) +MOD_FILES += efi_gop.mod +MARKER_FILES += efi_gop.marker +CLEANFILES += efi_gop.marker + +efi_gop.marker: $(efi_gop_module_SOURCES) $(nodist_efi_gop_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(efi_gop_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += efi_gop.module +MODULE_FILES += efi_gop.module$(EXEEXT) +efi_gop_module_SOURCES = video/efi_gop.c ## platform sources +nodist_efi_gop_module_SOURCES = ## platform nodist sources +efi_gop_module_LDADD = +efi_gop_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +efi_gop_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +efi_gop_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +efi_gop_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +efi_gop_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_efi_gop_module_SOURCES) +CLEANFILES += $(nodist_efi_gop_module_SOURCES) +MOD_FILES += efi_gop.mod +MARKER_FILES += efi_gop.marker +CLEANFILES += efi_gop.marker + +efi_gop.marker: $(efi_gop_module_SOURCES) $(nodist_efi_gop_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(efi_gop_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_ia64_efi +platform_PROGRAMS += efi_gop.module +MODULE_FILES += efi_gop.module$(EXEEXT) +efi_gop_module_SOURCES = video/efi_gop.c ## platform sources +nodist_efi_gop_module_SOURCES = ## platform nodist sources +efi_gop_module_LDADD = +efi_gop_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +efi_gop_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +efi_gop_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +efi_gop_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +efi_gop_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_efi_gop_module_SOURCES) +CLEANFILES += $(nodist_efi_gop_module_SOURCES) +MOD_FILES += efi_gop.mod +MARKER_FILES += efi_gop.marker +CLEANFILES += efi_gop.marker + +efi_gop.marker: $(efi_gop_module_SOURCES) $(nodist_efi_gop_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(efi_gop_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_efi +platform_PROGRAMS += efi_gop.module +MODULE_FILES += efi_gop.module$(EXEEXT) +efi_gop_module_SOURCES = video/efi_gop.c ## platform sources +nodist_efi_gop_module_SOURCES = ## platform nodist sources +efi_gop_module_LDADD = +efi_gop_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +efi_gop_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +efi_gop_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +efi_gop_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +efi_gop_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_efi_gop_module_SOURCES) +CLEANFILES += $(nodist_efi_gop_module_SOURCES) +MOD_FILES += efi_gop.mod +MARKER_FILES += efi_gop.marker +CLEANFILES += efi_gop.marker + +efi_gop.marker: $(efi_gop_module_SOURCES) $(nodist_efi_gop_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(efi_gop_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm64_efi +platform_PROGRAMS += efi_gop.module +MODULE_FILES += efi_gop.module$(EXEEXT) +efi_gop_module_SOURCES = video/efi_gop.c ## platform sources +nodist_efi_gop_module_SOURCES = ## platform nodist sources +efi_gop_module_LDADD = +efi_gop_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +efi_gop_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +efi_gop_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +efi_gop_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +efi_gop_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_efi_gop_module_SOURCES) +CLEANFILES += $(nodist_efi_gop_module_SOURCES) +MOD_FILES += efi_gop.mod +MARKER_FILES += efi_gop.marker +CLEANFILES += efi_gop.marker + +efi_gop.marker: $(efi_gop_module_SOURCES) $(nodist_efi_gop_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(efi_gop_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv32_efi +platform_PROGRAMS += efi_gop.module +MODULE_FILES += efi_gop.module$(EXEEXT) +efi_gop_module_SOURCES = video/efi_gop.c ## platform sources +nodist_efi_gop_module_SOURCES = ## platform nodist sources +efi_gop_module_LDADD = +efi_gop_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +efi_gop_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +efi_gop_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +efi_gop_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +efi_gop_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_efi_gop_module_SOURCES) +CLEANFILES += $(nodist_efi_gop_module_SOURCES) +MOD_FILES += efi_gop.mod +MARKER_FILES += efi_gop.marker +CLEANFILES += efi_gop.marker + +efi_gop.marker: $(efi_gop_module_SOURCES) $(nodist_efi_gop_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(efi_gop_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv64_efi +platform_PROGRAMS += efi_gop.module +MODULE_FILES += efi_gop.module$(EXEEXT) +efi_gop_module_SOURCES = video/efi_gop.c ## platform sources +nodist_efi_gop_module_SOURCES = ## platform nodist sources +efi_gop_module_LDADD = +efi_gop_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +efi_gop_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +efi_gop_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +efi_gop_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +efi_gop_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_efi_gop_module_SOURCES) +CLEANFILES += $(nodist_efi_gop_module_SOURCES) +MOD_FILES += efi_gop.mod +MARKER_FILES += efi_gop.marker +CLEANFILES += efi_gop.marker + +efi_gop.marker: $(efi_gop_module_SOURCES) $(nodist_efi_gop_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(efi_gop_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += efi_uga.module +MODULE_FILES += efi_uga.module$(EXEEXT) +efi_uga_module_SOURCES = video/efi_uga.c ## platform sources +nodist_efi_uga_module_SOURCES = ## platform nodist sources +efi_uga_module_LDADD = +efi_uga_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +efi_uga_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +efi_uga_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +efi_uga_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +efi_uga_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_efi_uga_module_SOURCES) +CLEANFILES += $(nodist_efi_uga_module_SOURCES) +MOD_FILES += efi_uga.mod +MARKER_FILES += efi_uga.marker +CLEANFILES += efi_uga.marker + +efi_uga.marker: $(efi_uga_module_SOURCES) $(nodist_efi_uga_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(efi_uga_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += efi_uga.module +MODULE_FILES += efi_uga.module$(EXEEXT) +efi_uga_module_SOURCES = video/efi_uga.c ## platform sources +nodist_efi_uga_module_SOURCES = ## platform nodist sources +efi_uga_module_LDADD = +efi_uga_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +efi_uga_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +efi_uga_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +efi_uga_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +efi_uga_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_efi_uga_module_SOURCES) +CLEANFILES += $(nodist_efi_uga_module_SOURCES) +MOD_FILES += efi_uga.mod +MARKER_FILES += efi_uga.marker +CLEANFILES += efi_uga.marker + +efi_uga.marker: $(efi_uga_module_SOURCES) $(nodist_efi_uga_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(efi_uga_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif +platform_PROGRAMS += jpeg.module +MODULE_FILES += jpeg.module$(EXEEXT) +jpeg_module_SOURCES = video/readers/jpeg.c ## platform sources +nodist_jpeg_module_SOURCES = ## platform nodist sources +jpeg_module_LDADD = +jpeg_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +jpeg_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +jpeg_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +jpeg_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +jpeg_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_jpeg_module_SOURCES) +CLEANFILES += $(nodist_jpeg_module_SOURCES) +MOD_FILES += jpeg.mod +MARKER_FILES += jpeg.marker +CLEANFILES += jpeg.marker + +jpeg.marker: $(jpeg_module_SOURCES) $(nodist_jpeg_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(jpeg_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += png.module +MODULE_FILES += png.module$(EXEEXT) +png_module_SOURCES = video/readers/png.c ## platform sources +nodist_png_module_SOURCES = ## platform nodist sources +png_module_LDADD = +png_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +png_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +png_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +png_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +png_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_png_module_SOURCES) +CLEANFILES += $(nodist_png_module_SOURCES) +MOD_FILES += png.mod +MARKER_FILES += png.marker +CLEANFILES += png.marker + +png.marker: $(png_module_SOURCES) $(nodist_png_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(png_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += tga.module +MODULE_FILES += tga.module$(EXEEXT) +tga_module_SOURCES = video/readers/tga.c ## platform sources +nodist_tga_module_SOURCES = ## platform nodist sources +tga_module_LDADD = +tga_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +tga_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +tga_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +tga_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +tga_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_tga_module_SOURCES) +CLEANFILES += $(nodist_tga_module_SOURCES) +MOD_FILES += tga.mod +MARKER_FILES += tga.marker +CLEANFILES += tga.marker + +tga.marker: $(tga_module_SOURCES) $(nodist_tga_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tga_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new + +if COND_i386_pc +platform_PROGRAMS += vbe.module +MODULE_FILES += vbe.module$(EXEEXT) +vbe_module_SOURCES = video/i386/pc/vbe.c ## platform sources +nodist_vbe_module_SOURCES = ## platform nodist sources +vbe_module_LDADD = +vbe_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +vbe_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +vbe_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +vbe_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +vbe_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_vbe_module_SOURCES) +CLEANFILES += $(nodist_vbe_module_SOURCES) +MOD_FILES += vbe.mod +MARKER_FILES += vbe.marker +CLEANFILES += vbe.marker + +vbe.marker: $(vbe_module_SOURCES) $(nodist_vbe_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(vbe_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_emu +platform_PROGRAMS += video_fb.module +MODULE_FILES += video_fb.module$(EXEEXT) +video_fb_module_SOURCES = video/fb/video_fb.c video/fb/fbblit.c video/fb/fbfill.c video/fb/fbutil.c ## platform sources +nodist_video_fb_module_SOURCES = ## platform nodist sources +video_fb_module_LDADD = +video_fb_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_fb_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_fb_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_fb_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_fb_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_fb_module_SOURCES) +CLEANFILES += $(nodist_video_fb_module_SOURCES) +MOD_FILES += video_fb.mod +MARKER_FILES += video_fb.marker +CLEANFILES += video_fb.marker + +video_fb.marker: $(video_fb_module_SOURCES) $(nodist_video_fb_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_fb_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += video_fb.module +MODULE_FILES += video_fb.module$(EXEEXT) +video_fb_module_SOURCES = video/fb/video_fb.c video/fb/fbblit.c video/fb/fbfill.c video/fb/fbutil.c ## platform sources +nodist_video_fb_module_SOURCES = ## platform nodist sources +video_fb_module_LDADD = +video_fb_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_fb_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_fb_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_fb_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_fb_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_fb_module_SOURCES) +CLEANFILES += $(nodist_video_fb_module_SOURCES) +MOD_FILES += video_fb.mod +MARKER_FILES += video_fb.marker +CLEANFILES += video_fb.marker + +video_fb.marker: $(video_fb_module_SOURCES) $(nodist_video_fb_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_fb_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += video_fb.module +MODULE_FILES += video_fb.module$(EXEEXT) +video_fb_module_SOURCES = video/fb/video_fb.c video/fb/fbblit.c video/fb/fbfill.c video/fb/fbutil.c ## platform sources +nodist_video_fb_module_SOURCES = ## platform nodist sources +video_fb_module_LDADD = +video_fb_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_fb_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_fb_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_fb_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_fb_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_fb_module_SOURCES) +CLEANFILES += $(nodist_video_fb_module_SOURCES) +MOD_FILES += video_fb.mod +MARKER_FILES += video_fb.marker +CLEANFILES += video_fb.marker + +video_fb.marker: $(video_fb_module_SOURCES) $(nodist_video_fb_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_fb_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += video_fb.module +MODULE_FILES += video_fb.module$(EXEEXT) +video_fb_module_SOURCES = video/fb/video_fb.c video/fb/fbblit.c video/fb/fbfill.c video/fb/fbutil.c ## platform sources +nodist_video_fb_module_SOURCES = ## platform nodist sources +video_fb_module_LDADD = +video_fb_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_fb_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_fb_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_fb_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_fb_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_fb_module_SOURCES) +CLEANFILES += $(nodist_video_fb_module_SOURCES) +MOD_FILES += video_fb.mod +MARKER_FILES += video_fb.marker +CLEANFILES += video_fb.marker + +video_fb.marker: $(video_fb_module_SOURCES) $(nodist_video_fb_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_fb_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += video_fb.module +MODULE_FILES += video_fb.module$(EXEEXT) +video_fb_module_SOURCES = video/fb/video_fb.c video/fb/fbblit.c video/fb/fbfill.c video/fb/fbutil.c ## platform sources +nodist_video_fb_module_SOURCES = ## platform nodist sources +video_fb_module_LDADD = +video_fb_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_fb_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_fb_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_fb_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_fb_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_fb_module_SOURCES) +CLEANFILES += $(nodist_video_fb_module_SOURCES) +MOD_FILES += video_fb.mod +MARKER_FILES += video_fb.marker +CLEANFILES += video_fb.marker + +video_fb.marker: $(video_fb_module_SOURCES) $(nodist_video_fb_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_fb_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += video_fb.module +MODULE_FILES += video_fb.module$(EXEEXT) +video_fb_module_SOURCES = video/fb/video_fb.c video/fb/fbblit.c video/fb/fbfill.c video/fb/fbutil.c ## platform sources +nodist_video_fb_module_SOURCES = ## platform nodist sources +video_fb_module_LDADD = +video_fb_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_fb_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_fb_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_fb_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_fb_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_fb_module_SOURCES) +CLEANFILES += $(nodist_video_fb_module_SOURCES) +MOD_FILES += video_fb.mod +MARKER_FILES += video_fb.marker +CLEANFILES += video_fb.marker + +video_fb.marker: $(video_fb_module_SOURCES) $(nodist_video_fb_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_fb_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += video_fb.module +MODULE_FILES += video_fb.module$(EXEEXT) +video_fb_module_SOURCES = video/fb/video_fb.c video/fb/fbblit.c video/fb/fbfill.c video/fb/fbutil.c ## platform sources +nodist_video_fb_module_SOURCES = ## platform nodist sources +video_fb_module_LDADD = +video_fb_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_fb_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_fb_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_fb_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_fb_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_fb_module_SOURCES) +CLEANFILES += $(nodist_video_fb_module_SOURCES) +MOD_FILES += video_fb.mod +MARKER_FILES += video_fb.marker +CLEANFILES += video_fb.marker + +video_fb.marker: $(video_fb_module_SOURCES) $(nodist_video_fb_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_fb_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_xen +platform_PROGRAMS += video_fb.module +MODULE_FILES += video_fb.module$(EXEEXT) +video_fb_module_SOURCES = video/fb/video_fb.c video/fb/fbblit.c video/fb/fbfill.c video/fb/fbutil.c ## platform sources +nodist_video_fb_module_SOURCES = ## platform nodist sources +video_fb_module_LDADD = +video_fb_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_fb_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_fb_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_fb_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_fb_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_fb_module_SOURCES) +CLEANFILES += $(nodist_video_fb_module_SOURCES) +MOD_FILES += video_fb.mod +MARKER_FILES += video_fb.marker +CLEANFILES += video_fb.marker + +video_fb.marker: $(video_fb_module_SOURCES) $(nodist_video_fb_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_fb_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_xen +platform_PROGRAMS += video_fb.module +MODULE_FILES += video_fb.module$(EXEEXT) +video_fb_module_SOURCES = video/fb/video_fb.c video/fb/fbblit.c video/fb/fbfill.c video/fb/fbutil.c ## platform sources +nodist_video_fb_module_SOURCES = ## platform nodist sources +video_fb_module_LDADD = +video_fb_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_fb_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_fb_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_fb_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_fb_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_fb_module_SOURCES) +CLEANFILES += $(nodist_video_fb_module_SOURCES) +MOD_FILES += video_fb.mod +MARKER_FILES += video_fb.marker +CLEANFILES += video_fb.marker + +video_fb.marker: $(video_fb_module_SOURCES) $(nodist_video_fb_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_fb_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_xen_pvh +platform_PROGRAMS += video_fb.module +MODULE_FILES += video_fb.module$(EXEEXT) +video_fb_module_SOURCES = video/fb/video_fb.c video/fb/fbblit.c video/fb/fbfill.c video/fb/fbutil.c ## platform sources +nodist_video_fb_module_SOURCES = ## platform nodist sources +video_fb_module_LDADD = +video_fb_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_fb_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_fb_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_fb_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_fb_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_fb_module_SOURCES) +CLEANFILES += $(nodist_video_fb_module_SOURCES) +MOD_FILES += video_fb.mod +MARKER_FILES += video_fb.marker +CLEANFILES += video_fb.marker + +video_fb.marker: $(video_fb_module_SOURCES) $(nodist_video_fb_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_fb_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_sparc64_ieee1275 +platform_PROGRAMS += video_fb.module +MODULE_FILES += video_fb.module$(EXEEXT) +video_fb_module_SOURCES = video/fb/video_fb.c video/fb/fbblit.c video/fb/fbfill.c video/fb/fbutil.c ## platform sources +nodist_video_fb_module_SOURCES = ## platform nodist sources +video_fb_module_LDADD = +video_fb_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_fb_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_fb_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_fb_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_fb_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_fb_module_SOURCES) +CLEANFILES += $(nodist_video_fb_module_SOURCES) +MOD_FILES += video_fb.mod +MARKER_FILES += video_fb.marker +CLEANFILES += video_fb.marker + +video_fb.marker: $(video_fb_module_SOURCES) $(nodist_video_fb_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_fb_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_powerpc_ieee1275 +platform_PROGRAMS += video_fb.module +MODULE_FILES += video_fb.module$(EXEEXT) +video_fb_module_SOURCES = video/fb/video_fb.c video/fb/fbblit.c video/fb/fbfill.c video/fb/fbutil.c ## platform sources +nodist_video_fb_module_SOURCES = ## platform nodist sources +video_fb_module_LDADD = +video_fb_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_fb_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_fb_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_fb_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_fb_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_fb_module_SOURCES) +CLEANFILES += $(nodist_video_fb_module_SOURCES) +MOD_FILES += video_fb.mod +MARKER_FILES += video_fb.marker +CLEANFILES += video_fb.marker + +video_fb.marker: $(video_fb_module_SOURCES) $(nodist_video_fb_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_fb_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_arc +platform_PROGRAMS += video_fb.module +MODULE_FILES += video_fb.module$(EXEEXT) +video_fb_module_SOURCES = video/fb/video_fb.c video/fb/fbblit.c video/fb/fbfill.c video/fb/fbutil.c ## platform sources +nodist_video_fb_module_SOURCES = ## platform nodist sources +video_fb_module_LDADD = +video_fb_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_fb_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_fb_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_fb_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_fb_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_fb_module_SOURCES) +CLEANFILES += $(nodist_video_fb_module_SOURCES) +MOD_FILES += video_fb.mod +MARKER_FILES += video_fb.marker +CLEANFILES += video_fb.marker + +video_fb.marker: $(video_fb_module_SOURCES) $(nodist_video_fb_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_fb_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_ia64_efi +platform_PROGRAMS += video_fb.module +MODULE_FILES += video_fb.module$(EXEEXT) +video_fb_module_SOURCES = video/fb/video_fb.c video/fb/fbblit.c video/fb/fbfill.c video/fb/fbutil.c ## platform sources +nodist_video_fb_module_SOURCES = ## platform nodist sources +video_fb_module_LDADD = +video_fb_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_fb_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_fb_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_fb_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_fb_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_fb_module_SOURCES) +CLEANFILES += $(nodist_video_fb_module_SOURCES) +MOD_FILES += video_fb.mod +MARKER_FILES += video_fb.marker +CLEANFILES += video_fb.marker + +video_fb.marker: $(video_fb_module_SOURCES) $(nodist_video_fb_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_fb_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_qemu_mips +platform_PROGRAMS += video_fb.module +MODULE_FILES += video_fb.module$(EXEEXT) +video_fb_module_SOURCES = video/fb/video_fb.c video/fb/fbblit.c video/fb/fbfill.c video/fb/fbutil.c ## platform sources +nodist_video_fb_module_SOURCES = ## platform nodist sources +video_fb_module_LDADD = +video_fb_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_fb_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_fb_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_fb_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_fb_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_fb_module_SOURCES) +CLEANFILES += $(nodist_video_fb_module_SOURCES) +MOD_FILES += video_fb.mod +MARKER_FILES += video_fb.marker +CLEANFILES += video_fb.marker + +video_fb.marker: $(video_fb_module_SOURCES) $(nodist_video_fb_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_fb_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_uboot +platform_PROGRAMS += video_fb.module +MODULE_FILES += video_fb.module$(EXEEXT) +video_fb_module_SOURCES = video/fb/video_fb.c video/fb/fbblit.c video/fb/fbfill.c video/fb/fbutil.c ## platform sources +nodist_video_fb_module_SOURCES = ## platform nodist sources +video_fb_module_LDADD = +video_fb_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_fb_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_fb_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_fb_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_fb_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_fb_module_SOURCES) +CLEANFILES += $(nodist_video_fb_module_SOURCES) +MOD_FILES += video_fb.mod +MARKER_FILES += video_fb.marker +CLEANFILES += video_fb.marker + +video_fb.marker: $(video_fb_module_SOURCES) $(nodist_video_fb_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_fb_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_efi +platform_PROGRAMS += video_fb.module +MODULE_FILES += video_fb.module$(EXEEXT) +video_fb_module_SOURCES = video/fb/video_fb.c video/fb/fbblit.c video/fb/fbfill.c video/fb/fbutil.c ## platform sources +nodist_video_fb_module_SOURCES = ## platform nodist sources +video_fb_module_LDADD = +video_fb_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_fb_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_fb_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_fb_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_fb_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_fb_module_SOURCES) +CLEANFILES += $(nodist_video_fb_module_SOURCES) +MOD_FILES += video_fb.mod +MARKER_FILES += video_fb.marker +CLEANFILES += video_fb.marker + +video_fb.marker: $(video_fb_module_SOURCES) $(nodist_video_fb_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_fb_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm64_efi +platform_PROGRAMS += video_fb.module +MODULE_FILES += video_fb.module$(EXEEXT) +video_fb_module_SOURCES = video/fb/video_fb.c video/fb/fbblit.c video/fb/fbfill.c video/fb/fbutil.c ## platform sources +nodist_video_fb_module_SOURCES = ## platform nodist sources +video_fb_module_LDADD = +video_fb_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_fb_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_fb_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_fb_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_fb_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_fb_module_SOURCES) +CLEANFILES += $(nodist_video_fb_module_SOURCES) +MOD_FILES += video_fb.mod +MARKER_FILES += video_fb.marker +CLEANFILES += video_fb.marker + +video_fb.marker: $(video_fb_module_SOURCES) $(nodist_video_fb_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_fb_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv32_efi +platform_PROGRAMS += video_fb.module +MODULE_FILES += video_fb.module$(EXEEXT) +video_fb_module_SOURCES = video/fb/video_fb.c video/fb/fbblit.c video/fb/fbfill.c video/fb/fbutil.c ## platform sources +nodist_video_fb_module_SOURCES = ## platform nodist sources +video_fb_module_LDADD = +video_fb_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_fb_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_fb_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_fb_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_fb_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_fb_module_SOURCES) +CLEANFILES += $(nodist_video_fb_module_SOURCES) +MOD_FILES += video_fb.mod +MARKER_FILES += video_fb.marker +CLEANFILES += video_fb.marker + +video_fb.marker: $(video_fb_module_SOURCES) $(nodist_video_fb_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_fb_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv64_efi +platform_PROGRAMS += video_fb.module +MODULE_FILES += video_fb.module$(EXEEXT) +video_fb_module_SOURCES = video/fb/video_fb.c video/fb/fbblit.c video/fb/fbfill.c video/fb/fbutil.c ## platform sources +nodist_video_fb_module_SOURCES = ## platform nodist sources +video_fb_module_LDADD = +video_fb_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_fb_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_fb_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_fb_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_fb_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_fb_module_SOURCES) +CLEANFILES += $(nodist_video_fb_module_SOURCES) +MOD_FILES += video_fb.mod +MARKER_FILES += video_fb.marker +CLEANFILES += video_fb.marker + +video_fb.marker: $(video_fb_module_SOURCES) $(nodist_video_fb_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_fb_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_emu +platform_PROGRAMS += video.module +MODULE_FILES += video.module$(EXEEXT) +video_module_SOURCES = video/video.c ## platform sources +nodist_video_module_SOURCES = ## platform nodist sources +video_module_LDADD = +video_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_module_SOURCES) +CLEANFILES += $(nodist_video_module_SOURCES) +MOD_FILES += video.mod +MARKER_FILES += video.marker +CLEANFILES += video.marker + +video.marker: $(video_module_SOURCES) $(nodist_video_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += video.module +MODULE_FILES += video.module$(EXEEXT) +video_module_SOURCES = video/video.c ## platform sources +nodist_video_module_SOURCES = ## platform nodist sources +video_module_LDADD = +video_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_module_SOURCES) +CLEANFILES += $(nodist_video_module_SOURCES) +MOD_FILES += video.mod +MARKER_FILES += video.marker +CLEANFILES += video.marker + +video.marker: $(video_module_SOURCES) $(nodist_video_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += video.module +MODULE_FILES += video.module$(EXEEXT) +video_module_SOURCES = video/video.c ## platform sources +nodist_video_module_SOURCES = ## platform nodist sources +video_module_LDADD = +video_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_module_SOURCES) +CLEANFILES += $(nodist_video_module_SOURCES) +MOD_FILES += video.mod +MARKER_FILES += video.marker +CLEANFILES += video.marker + +video.marker: $(video_module_SOURCES) $(nodist_video_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += video.module +MODULE_FILES += video.module$(EXEEXT) +video_module_SOURCES = video/video.c ## platform sources +nodist_video_module_SOURCES = ## platform nodist sources +video_module_LDADD = +video_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_module_SOURCES) +CLEANFILES += $(nodist_video_module_SOURCES) +MOD_FILES += video.mod +MARKER_FILES += video.marker +CLEANFILES += video.marker + +video.marker: $(video_module_SOURCES) $(nodist_video_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += video.module +MODULE_FILES += video.module$(EXEEXT) +video_module_SOURCES = video/video.c ## platform sources +nodist_video_module_SOURCES = ## platform nodist sources +video_module_LDADD = +video_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_module_SOURCES) +CLEANFILES += $(nodist_video_module_SOURCES) +MOD_FILES += video.mod +MARKER_FILES += video.marker +CLEANFILES += video.marker + +video.marker: $(video_module_SOURCES) $(nodist_video_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += video.module +MODULE_FILES += video.module$(EXEEXT) +video_module_SOURCES = video/video.c ## platform sources +nodist_video_module_SOURCES = ## platform nodist sources +video_module_LDADD = +video_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_module_SOURCES) +CLEANFILES += $(nodist_video_module_SOURCES) +MOD_FILES += video.mod +MARKER_FILES += video.marker +CLEANFILES += video.marker + +video.marker: $(video_module_SOURCES) $(nodist_video_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += video.module +MODULE_FILES += video.module$(EXEEXT) +video_module_SOURCES = video/video.c ## platform sources +nodist_video_module_SOURCES = ## platform nodist sources +video_module_LDADD = +video_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_module_SOURCES) +CLEANFILES += $(nodist_video_module_SOURCES) +MOD_FILES += video.mod +MARKER_FILES += video.marker +CLEANFILES += video.marker + +video.marker: $(video_module_SOURCES) $(nodist_video_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_xen +platform_PROGRAMS += video.module +MODULE_FILES += video.module$(EXEEXT) +video_module_SOURCES = video/video.c ## platform sources +nodist_video_module_SOURCES = ## platform nodist sources +video_module_LDADD = +video_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_module_SOURCES) +CLEANFILES += $(nodist_video_module_SOURCES) +MOD_FILES += video.mod +MARKER_FILES += video.marker +CLEANFILES += video.marker + +video.marker: $(video_module_SOURCES) $(nodist_video_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_xen +platform_PROGRAMS += video.module +MODULE_FILES += video.module$(EXEEXT) +video_module_SOURCES = video/video.c ## platform sources +nodist_video_module_SOURCES = ## platform nodist sources +video_module_LDADD = +video_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_module_SOURCES) +CLEANFILES += $(nodist_video_module_SOURCES) +MOD_FILES += video.mod +MARKER_FILES += video.marker +CLEANFILES += video.marker + +video.marker: $(video_module_SOURCES) $(nodist_video_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_xen_pvh +platform_PROGRAMS += video.module +MODULE_FILES += video.module$(EXEEXT) +video_module_SOURCES = video/video.c ## platform sources +nodist_video_module_SOURCES = ## platform nodist sources +video_module_LDADD = +video_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_module_SOURCES) +CLEANFILES += $(nodist_video_module_SOURCES) +MOD_FILES += video.mod +MARKER_FILES += video.marker +CLEANFILES += video.marker + +video.marker: $(video_module_SOURCES) $(nodist_video_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_sparc64_ieee1275 +platform_PROGRAMS += video.module +MODULE_FILES += video.module$(EXEEXT) +video_module_SOURCES = video/video.c ## platform sources +nodist_video_module_SOURCES = ## platform nodist sources +video_module_LDADD = +video_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_module_SOURCES) +CLEANFILES += $(nodist_video_module_SOURCES) +MOD_FILES += video.mod +MARKER_FILES += video.marker +CLEANFILES += video.marker + +video.marker: $(video_module_SOURCES) $(nodist_video_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_powerpc_ieee1275 +platform_PROGRAMS += video.module +MODULE_FILES += video.module$(EXEEXT) +video_module_SOURCES = video/video.c ## platform sources +nodist_video_module_SOURCES = ## platform nodist sources +video_module_LDADD = +video_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_module_SOURCES) +CLEANFILES += $(nodist_video_module_SOURCES) +MOD_FILES += video.mod +MARKER_FILES += video.marker +CLEANFILES += video.marker + +video.marker: $(video_module_SOURCES) $(nodist_video_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_arc +platform_PROGRAMS += video.module +MODULE_FILES += video.module$(EXEEXT) +video_module_SOURCES = video/video.c ## platform sources +nodist_video_module_SOURCES = ## platform nodist sources +video_module_LDADD = +video_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_module_SOURCES) +CLEANFILES += $(nodist_video_module_SOURCES) +MOD_FILES += video.mod +MARKER_FILES += video.marker +CLEANFILES += video.marker + +video.marker: $(video_module_SOURCES) $(nodist_video_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_ia64_efi +platform_PROGRAMS += video.module +MODULE_FILES += video.module$(EXEEXT) +video_module_SOURCES = video/video.c ## platform sources +nodist_video_module_SOURCES = ## platform nodist sources +video_module_LDADD = +video_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_module_SOURCES) +CLEANFILES += $(nodist_video_module_SOURCES) +MOD_FILES += video.mod +MARKER_FILES += video.marker +CLEANFILES += video.marker + +video.marker: $(video_module_SOURCES) $(nodist_video_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_mips_qemu_mips +platform_PROGRAMS += video.module +MODULE_FILES += video.module$(EXEEXT) +video_module_SOURCES = video/video.c ## platform sources +nodist_video_module_SOURCES = ## platform nodist sources +video_module_LDADD = +video_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_module_SOURCES) +CLEANFILES += $(nodist_video_module_SOURCES) +MOD_FILES += video.mod +MARKER_FILES += video.marker +CLEANFILES += video.marker + +video.marker: $(video_module_SOURCES) $(nodist_video_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_uboot +platform_PROGRAMS += video.module +MODULE_FILES += video.module$(EXEEXT) +video_module_SOURCES = video/video.c ## platform sources +nodist_video_module_SOURCES = ## platform nodist sources +video_module_LDADD = +video_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_module_SOURCES) +CLEANFILES += $(nodist_video_module_SOURCES) +MOD_FILES += video.mod +MARKER_FILES += video.marker +CLEANFILES += video.marker + +video.marker: $(video_module_SOURCES) $(nodist_video_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_efi +platform_PROGRAMS += video.module +MODULE_FILES += video.module$(EXEEXT) +video_module_SOURCES = video/video.c ## platform sources +nodist_video_module_SOURCES = ## platform nodist sources +video_module_LDADD = +video_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_module_SOURCES) +CLEANFILES += $(nodist_video_module_SOURCES) +MOD_FILES += video.mod +MARKER_FILES += video.marker +CLEANFILES += video.marker + +video.marker: $(video_module_SOURCES) $(nodist_video_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm64_efi +platform_PROGRAMS += video.module +MODULE_FILES += video.module$(EXEEXT) +video_module_SOURCES = video/video.c ## platform sources +nodist_video_module_SOURCES = ## platform nodist sources +video_module_LDADD = +video_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_module_SOURCES) +CLEANFILES += $(nodist_video_module_SOURCES) +MOD_FILES += video.mod +MARKER_FILES += video.marker +CLEANFILES += video.marker + +video.marker: $(video_module_SOURCES) $(nodist_video_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv32_efi +platform_PROGRAMS += video.module +MODULE_FILES += video.module$(EXEEXT) +video_module_SOURCES = video/video.c ## platform sources +nodist_video_module_SOURCES = ## platform nodist sources +video_module_LDADD = +video_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_module_SOURCES) +CLEANFILES += $(nodist_video_module_SOURCES) +MOD_FILES += video.mod +MARKER_FILES += video.marker +CLEANFILES += video.marker + +video.marker: $(video_module_SOURCES) $(nodist_video_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv64_efi +platform_PROGRAMS += video.module +MODULE_FILES += video.module$(EXEEXT) +video_module_SOURCES = video/video.c ## platform sources +nodist_video_module_SOURCES = ## platform nodist sources +video_module_LDADD = +video_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_module_SOURCES) +CLEANFILES += $(nodist_video_module_SOURCES) +MOD_FILES += video.mod +MARKER_FILES += video.marker +CLEANFILES += video.marker + +video.marker: $(video_module_SOURCES) $(nodist_video_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif +platform_PROGRAMS += video_colors.module +MODULE_FILES += video_colors.module$(EXEEXT) +video_colors_module_SOURCES = video/colors.c ## platform sources +nodist_video_colors_module_SOURCES = ## platform nodist sources +video_colors_module_LDADD = +video_colors_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +video_colors_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +video_colors_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +video_colors_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +video_colors_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_video_colors_module_SOURCES) +CLEANFILES += $(nodist_video_colors_module_SOURCES) +MOD_FILES += video_colors.mod +MARKER_FILES += video_colors.marker +CLEANFILES += video_colors.marker + +video_colors.marker: $(video_colors_module_SOURCES) $(nodist_video_colors_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(video_colors_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new + +if COND_powerpc_ieee1275 +platform_PROGRAMS += ieee1275_fb.module +MODULE_FILES += ieee1275_fb.module$(EXEEXT) +ieee1275_fb_module_SOURCES = video/ieee1275.c ## platform sources +nodist_ieee1275_fb_module_SOURCES = ## platform nodist sources +ieee1275_fb_module_LDADD = +ieee1275_fb_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +ieee1275_fb_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +ieee1275_fb_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +ieee1275_fb_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +ieee1275_fb_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_ieee1275_fb_module_SOURCES) +CLEANFILES += $(nodist_ieee1275_fb_module_SOURCES) +MOD_FILES += ieee1275_fb.mod +MARKER_FILES += ieee1275_fb.marker +CLEANFILES += ieee1275_fb.marker + +ieee1275_fb.marker: $(ieee1275_fb_module_SOURCES) $(nodist_ieee1275_fb_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ieee1275_fb_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_emu +if COND_GRUB_EMU_SDL +platform_PROGRAMS += sdl.module +MODULE_FILES += sdl.module$(EXEEXT) +sdl_module_SOURCES = video/emu/sdl.c ## platform sources +nodist_sdl_module_SOURCES = ## platform nodist sources +sdl_module_LDADD = +sdl_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +sdl_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +sdl_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +sdl_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +sdl_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_sdl_module_SOURCES) +CLEANFILES += $(nodist_sdl_module_SOURCES) +MOD_FILES += sdl.mod +MARKER_FILES += sdl.marker +CLEANFILES += sdl.marker + +sdl.marker: $(sdl_module_SOURCES) $(nodist_sdl_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(sdl_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif COND_GRUB_EMU_SDL +endif +platform_PROGRAMS += datehook.module +MODULE_FILES += datehook.module$(EXEEXT) +datehook_module_SOURCES = hook/datehook.c ## platform sources +nodist_datehook_module_SOURCES = ## platform nodist sources +datehook_module_LDADD = +datehook_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +datehook_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +datehook_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +datehook_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +datehook_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_datehook_module_SOURCES) +CLEANFILES += $(nodist_datehook_module_SOURCES) +MOD_FILES += datehook.mod +MARKER_FILES += datehook.marker +CLEANFILES += datehook.marker + +datehook.marker: $(datehook_module_SOURCES) $(nodist_datehook_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(datehook_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += net.module +MODULE_FILES += net.module$(EXEEXT) +net_module_SOURCES = net/net.c net/dns.c net/bootp.c net/ip.c net/udp.c net/tcp.c net/icmp.c net/icmp6.c net/ethernet.c net/arp.c net/netbuff.c ## platform sources +nodist_net_module_SOURCES = ## platform nodist sources +net_module_LDADD = +net_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +net_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +net_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +net_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +net_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_net_module_SOURCES) +CLEANFILES += $(nodist_net_module_SOURCES) +MOD_FILES += net.mod +MARKER_FILES += net.marker +CLEANFILES += net.marker + +net.marker: $(net_module_SOURCES) $(nodist_net_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(net_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += tftp.module +MODULE_FILES += tftp.module$(EXEEXT) +tftp_module_SOURCES = net/tftp.c ## platform sources +nodist_tftp_module_SOURCES = ## platform nodist sources +tftp_module_LDADD = +tftp_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +tftp_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +tftp_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +tftp_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +tftp_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_tftp_module_SOURCES) +CLEANFILES += $(nodist_tftp_module_SOURCES) +MOD_FILES += tftp.mod +MARKER_FILES += tftp.marker +CLEANFILES += tftp.marker + +tftp.marker: $(tftp_module_SOURCES) $(nodist_tftp_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tftp_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += http.module +MODULE_FILES += http.module$(EXEEXT) +http_module_SOURCES = net/http.c ## platform sources +nodist_http_module_SOURCES = ## platform nodist sources +http_module_LDADD = +http_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +http_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +http_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +http_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +http_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_http_module_SOURCES) +CLEANFILES += $(nodist_http_module_SOURCES) +MOD_FILES += http.mod +MARKER_FILES += http.marker +CLEANFILES += http.marker + +http.marker: $(http_module_SOURCES) $(nodist_http_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(http_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new + +if COND_i386_ieee1275 +platform_PROGRAMS += ofnet.module +MODULE_FILES += ofnet.module$(EXEEXT) +ofnet_module_SOURCES = net/drivers/ieee1275/ofnet.c ## platform sources +nodist_ofnet_module_SOURCES = ## platform nodist sources +ofnet_module_LDADD = +ofnet_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +ofnet_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +ofnet_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +ofnet_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +ofnet_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_ofnet_module_SOURCES) +CLEANFILES += $(nodist_ofnet_module_SOURCES) +MOD_FILES += ofnet.mod +MARKER_FILES += ofnet.marker +CLEANFILES += ofnet.marker + +ofnet.marker: $(ofnet_module_SOURCES) $(nodist_ofnet_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ofnet_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_sparc64_ieee1275 +platform_PROGRAMS += ofnet.module +MODULE_FILES += ofnet.module$(EXEEXT) +ofnet_module_SOURCES = net/drivers/ieee1275/ofnet.c ## platform sources +nodist_ofnet_module_SOURCES = ## platform nodist sources +ofnet_module_LDADD = +ofnet_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +ofnet_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +ofnet_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +ofnet_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +ofnet_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_ofnet_module_SOURCES) +CLEANFILES += $(nodist_ofnet_module_SOURCES) +MOD_FILES += ofnet.mod +MARKER_FILES += ofnet.marker +CLEANFILES += ofnet.marker + +ofnet.marker: $(ofnet_module_SOURCES) $(nodist_ofnet_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ofnet_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_powerpc_ieee1275 +platform_PROGRAMS += ofnet.module +MODULE_FILES += ofnet.module$(EXEEXT) +ofnet_module_SOURCES = net/drivers/ieee1275/ofnet.c ## platform sources +nodist_ofnet_module_SOURCES = ## platform nodist sources +ofnet_module_LDADD = +ofnet_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +ofnet_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +ofnet_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +ofnet_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +ofnet_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_ofnet_module_SOURCES) +CLEANFILES += $(nodist_ofnet_module_SOURCES) +MOD_FILES += ofnet.mod +MARKER_FILES += ofnet.marker +CLEANFILES += ofnet.marker + +ofnet.marker: $(ofnet_module_SOURCES) $(nodist_ofnet_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ofnet_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_uboot +platform_PROGRAMS += ubootnet.module +MODULE_FILES += ubootnet.module$(EXEEXT) +ubootnet_module_SOURCES = net/drivers/uboot/ubootnet.c ## platform sources +nodist_ubootnet_module_SOURCES = ## platform nodist sources +ubootnet_module_LDADD = +ubootnet_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +ubootnet_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +ubootnet_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +ubootnet_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +ubootnet_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_ubootnet_module_SOURCES) +CLEANFILES += $(nodist_ubootnet_module_SOURCES) +MOD_FILES += ubootnet.mod +MARKER_FILES += ubootnet.marker +CLEANFILES += ubootnet.marker + +ubootnet.marker: $(ubootnet_module_SOURCES) $(nodist_ubootnet_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(ubootnet_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += efinet.module +MODULE_FILES += efinet.module$(EXEEXT) +efinet_module_SOURCES = net/drivers/efi/efinet.c ## platform sources +nodist_efinet_module_SOURCES = ## platform nodist sources +efinet_module_LDADD = +efinet_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +efinet_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +efinet_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +efinet_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +efinet_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_efinet_module_SOURCES) +CLEANFILES += $(nodist_efinet_module_SOURCES) +MOD_FILES += efinet.mod +MARKER_FILES += efinet.marker +CLEANFILES += efinet.marker + +efinet.marker: $(efinet_module_SOURCES) $(nodist_efinet_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(efinet_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += efinet.module +MODULE_FILES += efinet.module$(EXEEXT) +efinet_module_SOURCES = net/drivers/efi/efinet.c ## platform sources +nodist_efinet_module_SOURCES = ## platform nodist sources +efinet_module_LDADD = +efinet_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +efinet_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +efinet_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +efinet_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +efinet_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_efinet_module_SOURCES) +CLEANFILES += $(nodist_efinet_module_SOURCES) +MOD_FILES += efinet.mod +MARKER_FILES += efinet.marker +CLEANFILES += efinet.marker + +efinet.marker: $(efinet_module_SOURCES) $(nodist_efinet_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(efinet_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_ia64_efi +platform_PROGRAMS += efinet.module +MODULE_FILES += efinet.module$(EXEEXT) +efinet_module_SOURCES = net/drivers/efi/efinet.c ## platform sources +nodist_efinet_module_SOURCES = ## platform nodist sources +efinet_module_LDADD = +efinet_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +efinet_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +efinet_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +efinet_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +efinet_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_efinet_module_SOURCES) +CLEANFILES += $(nodist_efinet_module_SOURCES) +MOD_FILES += efinet.mod +MARKER_FILES += efinet.marker +CLEANFILES += efinet.marker + +efinet.marker: $(efinet_module_SOURCES) $(nodist_efinet_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(efinet_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_efi +platform_PROGRAMS += efinet.module +MODULE_FILES += efinet.module$(EXEEXT) +efinet_module_SOURCES = net/drivers/efi/efinet.c ## platform sources +nodist_efinet_module_SOURCES = ## platform nodist sources +efinet_module_LDADD = +efinet_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +efinet_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +efinet_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +efinet_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +efinet_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_efinet_module_SOURCES) +CLEANFILES += $(nodist_efinet_module_SOURCES) +MOD_FILES += efinet.mod +MARKER_FILES += efinet.marker +CLEANFILES += efinet.marker + +efinet.marker: $(efinet_module_SOURCES) $(nodist_efinet_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(efinet_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm64_efi +platform_PROGRAMS += efinet.module +MODULE_FILES += efinet.module$(EXEEXT) +efinet_module_SOURCES = net/drivers/efi/efinet.c ## platform sources +nodist_efinet_module_SOURCES = ## platform nodist sources +efinet_module_LDADD = +efinet_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +efinet_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +efinet_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +efinet_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +efinet_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_efinet_module_SOURCES) +CLEANFILES += $(nodist_efinet_module_SOURCES) +MOD_FILES += efinet.mod +MARKER_FILES += efinet.marker +CLEANFILES += efinet.marker + +efinet.marker: $(efinet_module_SOURCES) $(nodist_efinet_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(efinet_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv32_efi +platform_PROGRAMS += efinet.module +MODULE_FILES += efinet.module$(EXEEXT) +efinet_module_SOURCES = net/drivers/efi/efinet.c ## platform sources +nodist_efinet_module_SOURCES = ## platform nodist sources +efinet_module_LDADD = +efinet_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +efinet_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +efinet_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +efinet_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +efinet_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_efinet_module_SOURCES) +CLEANFILES += $(nodist_efinet_module_SOURCES) +MOD_FILES += efinet.mod +MARKER_FILES += efinet.marker +CLEANFILES += efinet.marker + +efinet.marker: $(efinet_module_SOURCES) $(nodist_efinet_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(efinet_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv64_efi +platform_PROGRAMS += efinet.module +MODULE_FILES += efinet.module$(EXEEXT) +efinet_module_SOURCES = net/drivers/efi/efinet.c ## platform sources +nodist_efinet_module_SOURCES = ## platform nodist sources +efinet_module_LDADD = +efinet_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +efinet_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +efinet_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +efinet_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +efinet_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_efinet_module_SOURCES) +CLEANFILES += $(nodist_efinet_module_SOURCES) +MOD_FILES += efinet.mod +MARKER_FILES += efinet.marker +CLEANFILES += efinet.marker + +efinet.marker: $(efinet_module_SOURCES) $(nodist_efinet_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(efinet_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_emu +platform_PROGRAMS += emunet.module +MODULE_FILES += emunet.module$(EXEEXT) +emunet_module_SOURCES = net/drivers/emu/emunet.c ## platform sources +nodist_emunet_module_SOURCES = ## platform nodist sources +emunet_module_LDADD = +emunet_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +emunet_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +emunet_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +emunet_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +emunet_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_emunet_module_SOURCES) +CLEANFILES += $(nodist_emunet_module_SOURCES) +MOD_FILES += emunet.mod +MARKER_FILES += emunet.marker +CLEANFILES += emunet.marker + +emunet.marker: $(emunet_module_SOURCES) $(nodist_emunet_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(emunet_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_emu +platform_PROGRAMS += legacycfg.module +MODULE_FILES += legacycfg.module$(EXEEXT) +legacycfg_module_SOURCES = lib/i386/pc/vesa_modes_table.c commands/legacycfg.c lib/legacy_parse.c ## platform sources +nodist_legacycfg_module_SOURCES = ## platform nodist sources +legacycfg_module_LDADD = +legacycfg_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +legacycfg_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +legacycfg_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +legacycfg_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +legacycfg_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_legacycfg_module_SOURCES) +CLEANFILES += $(nodist_legacycfg_module_SOURCES) +MOD_FILES += legacycfg.mod +MARKER_FILES += legacycfg.marker +CLEANFILES += legacycfg.marker + +legacycfg.marker: $(legacycfg_module_SOURCES) $(nodist_legacycfg_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(legacycfg_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += legacycfg.module +MODULE_FILES += legacycfg.module$(EXEEXT) +legacycfg_module_SOURCES = commands/legacycfg.c lib/legacy_parse.c ## platform sources +nodist_legacycfg_module_SOURCES = ## platform nodist sources +legacycfg_module_LDADD = +legacycfg_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +legacycfg_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +legacycfg_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +legacycfg_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +legacycfg_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_legacycfg_module_SOURCES) +CLEANFILES += $(nodist_legacycfg_module_SOURCES) +MOD_FILES += legacycfg.mod +MARKER_FILES += legacycfg.marker +CLEANFILES += legacycfg.marker + +legacycfg.marker: $(legacycfg_module_SOURCES) $(nodist_legacycfg_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(legacycfg_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += legacycfg.module +MODULE_FILES += legacycfg.module$(EXEEXT) +legacycfg_module_SOURCES = lib/i386/pc/vesa_modes_table.c commands/legacycfg.c lib/legacy_parse.c ## platform sources +nodist_legacycfg_module_SOURCES = ## platform nodist sources +legacycfg_module_LDADD = +legacycfg_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +legacycfg_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +legacycfg_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +legacycfg_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +legacycfg_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_legacycfg_module_SOURCES) +CLEANFILES += $(nodist_legacycfg_module_SOURCES) +MOD_FILES += legacycfg.mod +MARKER_FILES += legacycfg.marker +CLEANFILES += legacycfg.marker + +legacycfg.marker: $(legacycfg_module_SOURCES) $(nodist_legacycfg_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(legacycfg_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += legacycfg.module +MODULE_FILES += legacycfg.module$(EXEEXT) +legacycfg_module_SOURCES = lib/i386/pc/vesa_modes_table.c commands/legacycfg.c lib/legacy_parse.c ## platform sources +nodist_legacycfg_module_SOURCES = ## platform nodist sources +legacycfg_module_LDADD = +legacycfg_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +legacycfg_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +legacycfg_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +legacycfg_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +legacycfg_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_legacycfg_module_SOURCES) +CLEANFILES += $(nodist_legacycfg_module_SOURCES) +MOD_FILES += legacycfg.mod +MARKER_FILES += legacycfg.marker +CLEANFILES += legacycfg.marker + +legacycfg.marker: $(legacycfg_module_SOURCES) $(nodist_legacycfg_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(legacycfg_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_xen +platform_PROGRAMS += legacycfg.module +MODULE_FILES += legacycfg.module$(EXEEXT) +legacycfg_module_SOURCES = lib/i386/pc/vesa_modes_table.c commands/legacycfg.c lib/legacy_parse.c ## platform sources +nodist_legacycfg_module_SOURCES = ## platform nodist sources +legacycfg_module_LDADD = +legacycfg_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +legacycfg_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +legacycfg_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +legacycfg_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +legacycfg_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_legacycfg_module_SOURCES) +CLEANFILES += $(nodist_legacycfg_module_SOURCES) +MOD_FILES += legacycfg.mod +MARKER_FILES += legacycfg.marker +CLEANFILES += legacycfg.marker + +legacycfg.marker: $(legacycfg_module_SOURCES) $(nodist_legacycfg_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(legacycfg_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_xen +platform_PROGRAMS += legacycfg.module +MODULE_FILES += legacycfg.module$(EXEEXT) +legacycfg_module_SOURCES = lib/i386/pc/vesa_modes_table.c commands/legacycfg.c lib/legacy_parse.c ## platform sources +nodist_legacycfg_module_SOURCES = ## platform nodist sources +legacycfg_module_LDADD = +legacycfg_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +legacycfg_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +legacycfg_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +legacycfg_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +legacycfg_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_legacycfg_module_SOURCES) +CLEANFILES += $(nodist_legacycfg_module_SOURCES) +MOD_FILES += legacycfg.mod +MARKER_FILES += legacycfg.marker +CLEANFILES += legacycfg.marker + +legacycfg.marker: $(legacycfg_module_SOURCES) $(nodist_legacycfg_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(legacycfg_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_xen_pvh +platform_PROGRAMS += legacycfg.module +MODULE_FILES += legacycfg.module$(EXEEXT) +legacycfg_module_SOURCES = commands/legacycfg.c lib/legacy_parse.c ## platform sources +nodist_legacycfg_module_SOURCES = ## platform nodist sources +legacycfg_module_LDADD = +legacycfg_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +legacycfg_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +legacycfg_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +legacycfg_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +legacycfg_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_legacycfg_module_SOURCES) +CLEANFILES += $(nodist_legacycfg_module_SOURCES) +MOD_FILES += legacycfg.mod +MARKER_FILES += legacycfg.marker +CLEANFILES += legacycfg.marker + +legacycfg.marker: $(legacycfg_module_SOURCES) $(nodist_legacycfg_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(legacycfg_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif +platform_PROGRAMS += syslinuxcfg.module +MODULE_FILES += syslinuxcfg.module$(EXEEXT) +syslinuxcfg_module_SOURCES = lib/syslinux_parse.c commands/syslinuxcfg.c ## platform sources +nodist_syslinuxcfg_module_SOURCES = ## platform nodist sources +syslinuxcfg_module_LDADD = +syslinuxcfg_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +syslinuxcfg_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +syslinuxcfg_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +syslinuxcfg_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +syslinuxcfg_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_syslinuxcfg_module_SOURCES) +CLEANFILES += $(nodist_syslinuxcfg_module_SOURCES) +MOD_FILES += syslinuxcfg.mod +MARKER_FILES += syslinuxcfg.marker +CLEANFILES += syslinuxcfg.marker + +syslinuxcfg.marker: $(syslinuxcfg_module_SOURCES) $(nodist_syslinuxcfg_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(syslinuxcfg_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += test_blockarg.module +MODULE_FILES += test_blockarg.module$(EXEEXT) +test_blockarg_module_SOURCES = tests/test_blockarg.c ## platform sources +nodist_test_blockarg_module_SOURCES = ## platform nodist sources +test_blockarg_module_LDADD = +test_blockarg_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +test_blockarg_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +test_blockarg_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +test_blockarg_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +test_blockarg_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_test_blockarg_module_SOURCES) +CLEANFILES += $(nodist_test_blockarg_module_SOURCES) +MOD_FILES += test_blockarg.mod +MARKER_FILES += test_blockarg.marker +CLEANFILES += test_blockarg.marker + +test_blockarg.marker: $(test_blockarg_module_SOURCES) $(nodist_test_blockarg_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_blockarg_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += xzio.module +MODULE_FILES += xzio.module$(EXEEXT) +xzio_module_SOURCES = io/xzio.c lib/xzembed/xz_dec_bcj.c lib/xzembed/xz_dec_lzma2.c lib/xzembed/xz_dec_stream.c ## platform sources +nodist_xzio_module_SOURCES = ## platform nodist sources +xzio_module_LDADD = +xzio_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) -Wno-unreachable-code +xzio_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +xzio_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) -I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/xzembed +xzio_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +xzio_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_xzio_module_SOURCES) +CLEANFILES += $(nodist_xzio_module_SOURCES) +MOD_FILES += xzio.mod +MARKER_FILES += xzio.marker +CLEANFILES += xzio.marker + +xzio.marker: $(xzio_module_SOURCES) $(nodist_xzio_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xzio_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += lzopio.module +MODULE_FILES += lzopio.module$(EXEEXT) +lzopio_module_SOURCES = io/lzopio.c lib/minilzo/minilzo.c ## platform sources +nodist_lzopio_module_SOURCES = ## platform nodist sources +lzopio_module_LDADD = +lzopio_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) $(CFLAGS_POSIX) -Wno-undef -Wno-redundant-decls -Wno-error +lzopio_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lzopio_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) -I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/minilzo -DMINILZO_HAVE_CONFIG_H +lzopio_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lzopio_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lzopio_module_SOURCES) +CLEANFILES += $(nodist_lzopio_module_SOURCES) +MOD_FILES += lzopio.mod +MARKER_FILES += lzopio.marker +CLEANFILES += lzopio.marker + +lzopio.marker: $(lzopio_module_SOURCES) $(nodist_lzopio_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lzopio_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += testload.module +MODULE_FILES += testload.module$(EXEEXT) +testload_module_SOURCES = commands/testload.c ## platform sources +nodist_testload_module_SOURCES = ## platform nodist sources +testload_module_LDADD = +testload_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +testload_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +testload_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +testload_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +testload_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_testload_module_SOURCES) +CLEANFILES += $(nodist_testload_module_SOURCES) +MOD_FILES += testload.mod +MARKER_FILES += testload.marker +CLEANFILES += testload.marker + +testload.marker: $(testload_module_SOURCES) $(nodist_testload_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testload_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new + +if COND_i386_pc +platform_PROGRAMS += backtrace.module +MODULE_FILES += backtrace.module$(EXEEXT) +backtrace_module_SOURCES = lib/i386/backtrace.c lib/backtrace.c ## platform sources +nodist_backtrace_module_SOURCES = ## platform nodist sources +backtrace_module_LDADD = +backtrace_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +backtrace_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +backtrace_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +backtrace_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +backtrace_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_backtrace_module_SOURCES) +CLEANFILES += $(nodist_backtrace_module_SOURCES) +MOD_FILES += backtrace.mod +MARKER_FILES += backtrace.marker +CLEANFILES += backtrace.marker + +backtrace.marker: $(backtrace_module_SOURCES) $(nodist_backtrace_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(backtrace_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += backtrace.module +MODULE_FILES += backtrace.module$(EXEEXT) +backtrace_module_SOURCES = lib/i386/backtrace.c lib/backtrace.c ## platform sources +nodist_backtrace_module_SOURCES = ## platform nodist sources +backtrace_module_LDADD = +backtrace_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +backtrace_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +backtrace_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +backtrace_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +backtrace_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_backtrace_module_SOURCES) +CLEANFILES += $(nodist_backtrace_module_SOURCES) +MOD_FILES += backtrace.mod +MARKER_FILES += backtrace.marker +CLEANFILES += backtrace.marker + +backtrace.marker: $(backtrace_module_SOURCES) $(nodist_backtrace_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(backtrace_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += backtrace.module +MODULE_FILES += backtrace.module$(EXEEXT) +backtrace_module_SOURCES = lib/i386/backtrace.c lib/backtrace.c ## platform sources +nodist_backtrace_module_SOURCES = ## platform nodist sources +backtrace_module_LDADD = +backtrace_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +backtrace_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +backtrace_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +backtrace_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +backtrace_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_backtrace_module_SOURCES) +CLEANFILES += $(nodist_backtrace_module_SOURCES) +MOD_FILES += backtrace.mod +MARKER_FILES += backtrace.marker +CLEANFILES += backtrace.marker + +backtrace.marker: $(backtrace_module_SOURCES) $(nodist_backtrace_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(backtrace_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += backtrace.module +MODULE_FILES += backtrace.module$(EXEEXT) +backtrace_module_SOURCES = lib/i386/backtrace.c lib/backtrace.c ## platform sources +nodist_backtrace_module_SOURCES = ## platform nodist sources +backtrace_module_LDADD = +backtrace_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +backtrace_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +backtrace_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +backtrace_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +backtrace_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_backtrace_module_SOURCES) +CLEANFILES += $(nodist_backtrace_module_SOURCES) +MOD_FILES += backtrace.mod +MARKER_FILES += backtrace.marker +CLEANFILES += backtrace.marker + +backtrace.marker: $(backtrace_module_SOURCES) $(nodist_backtrace_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(backtrace_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += backtrace.module +MODULE_FILES += backtrace.module$(EXEEXT) +backtrace_module_SOURCES = lib/i386/backtrace.c lib/backtrace.c ## platform sources +nodist_backtrace_module_SOURCES = ## platform nodist sources +backtrace_module_LDADD = +backtrace_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +backtrace_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +backtrace_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +backtrace_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +backtrace_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_backtrace_module_SOURCES) +CLEANFILES += $(nodist_backtrace_module_SOURCES) +MOD_FILES += backtrace.mod +MARKER_FILES += backtrace.marker +CLEANFILES += backtrace.marker + +backtrace.marker: $(backtrace_module_SOURCES) $(nodist_backtrace_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(backtrace_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += backtrace.module +MODULE_FILES += backtrace.module$(EXEEXT) +backtrace_module_SOURCES = lib/i386/backtrace.c lib/backtrace.c ## platform sources +nodist_backtrace_module_SOURCES = ## platform nodist sources +backtrace_module_LDADD = +backtrace_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +backtrace_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +backtrace_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +backtrace_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +backtrace_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_backtrace_module_SOURCES) +CLEANFILES += $(nodist_backtrace_module_SOURCES) +MOD_FILES += backtrace.mod +MARKER_FILES += backtrace.marker +CLEANFILES += backtrace.marker + +backtrace.marker: $(backtrace_module_SOURCES) $(nodist_backtrace_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(backtrace_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += backtrace.module +MODULE_FILES += backtrace.module$(EXEEXT) +backtrace_module_SOURCES = lib/i386/backtrace.c lib/backtrace.c ## platform sources +nodist_backtrace_module_SOURCES = ## platform nodist sources +backtrace_module_LDADD = +backtrace_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +backtrace_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +backtrace_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +backtrace_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +backtrace_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_backtrace_module_SOURCES) +CLEANFILES += $(nodist_backtrace_module_SOURCES) +MOD_FILES += backtrace.mod +MARKER_FILES += backtrace.marker +CLEANFILES += backtrace.marker + +backtrace.marker: $(backtrace_module_SOURCES) $(nodist_backtrace_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(backtrace_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_xen +platform_PROGRAMS += backtrace.module +MODULE_FILES += backtrace.module$(EXEEXT) +backtrace_module_SOURCES = lib/i386/backtrace.c lib/backtrace.c ## platform sources +nodist_backtrace_module_SOURCES = ## platform nodist sources +backtrace_module_LDADD = +backtrace_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +backtrace_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +backtrace_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +backtrace_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +backtrace_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_backtrace_module_SOURCES) +CLEANFILES += $(nodist_backtrace_module_SOURCES) +MOD_FILES += backtrace.mod +MARKER_FILES += backtrace.marker +CLEANFILES += backtrace.marker + +backtrace.marker: $(backtrace_module_SOURCES) $(nodist_backtrace_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(backtrace_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_xen +platform_PROGRAMS += backtrace.module +MODULE_FILES += backtrace.module$(EXEEXT) +backtrace_module_SOURCES = lib/i386/backtrace.c lib/backtrace.c ## platform sources +nodist_backtrace_module_SOURCES = ## platform nodist sources +backtrace_module_LDADD = +backtrace_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +backtrace_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +backtrace_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +backtrace_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +backtrace_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_backtrace_module_SOURCES) +CLEANFILES += $(nodist_backtrace_module_SOURCES) +MOD_FILES += backtrace.mod +MARKER_FILES += backtrace.marker +CLEANFILES += backtrace.marker + +backtrace.marker: $(backtrace_module_SOURCES) $(nodist_backtrace_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(backtrace_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_xen_pvh +platform_PROGRAMS += backtrace.module +MODULE_FILES += backtrace.module$(EXEEXT) +backtrace_module_SOURCES = lib/i386/backtrace.c lib/backtrace.c ## platform sources +nodist_backtrace_module_SOURCES = ## platform nodist sources +backtrace_module_LDADD = +backtrace_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +backtrace_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +backtrace_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +backtrace_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +backtrace_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_backtrace_module_SOURCES) +CLEANFILES += $(nodist_backtrace_module_SOURCES) +MOD_FILES += backtrace.mod +MARKER_FILES += backtrace.marker +CLEANFILES += backtrace.marker + +backtrace.marker: $(backtrace_module_SOURCES) $(nodist_backtrace_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(backtrace_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += lsapm.module +MODULE_FILES += lsapm.module$(EXEEXT) +lsapm_module_SOURCES = commands/i386/pc/lsapm.c ## platform sources +nodist_lsapm_module_SOURCES = ## platform nodist sources +lsapm_module_LDADD = +lsapm_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +lsapm_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +lsapm_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +lsapm_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +lsapm_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lsapm_module_SOURCES) +CLEANFILES += $(nodist_lsapm_module_SOURCES) +MOD_FILES += lsapm.mod +MARKER_FILES += lsapm.marker +CLEANFILES += lsapm.marker + +lsapm.marker: $(lsapm_module_SOURCES) $(nodist_lsapm_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lsapm_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += keylayouts.module +MODULE_FILES += keylayouts.module$(EXEEXT) +keylayouts_module_SOURCES = commands/keylayouts.c ## platform sources +nodist_keylayouts_module_SOURCES = ## platform nodist sources +keylayouts_module_LDADD = +keylayouts_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +keylayouts_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +keylayouts_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +keylayouts_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +keylayouts_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_keylayouts_module_SOURCES) +CLEANFILES += $(nodist_keylayouts_module_SOURCES) +MOD_FILES += keylayouts.mod +MARKER_FILES += keylayouts.marker +CLEANFILES += keylayouts.marker + +keylayouts.marker: $(keylayouts_module_SOURCES) $(nodist_keylayouts_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(keylayouts_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += keylayouts.module +MODULE_FILES += keylayouts.module$(EXEEXT) +keylayouts_module_SOURCES = commands/keylayouts.c ## platform sources +nodist_keylayouts_module_SOURCES = ## platform nodist sources +keylayouts_module_LDADD = +keylayouts_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +keylayouts_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +keylayouts_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +keylayouts_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +keylayouts_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_keylayouts_module_SOURCES) +CLEANFILES += $(nodist_keylayouts_module_SOURCES) +MOD_FILES += keylayouts.mod +MARKER_FILES += keylayouts.marker +CLEANFILES += keylayouts.marker + +keylayouts.marker: $(keylayouts_module_SOURCES) $(nodist_keylayouts_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(keylayouts_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += keylayouts.module +MODULE_FILES += keylayouts.module$(EXEEXT) +keylayouts_module_SOURCES = commands/keylayouts.c ## platform sources +nodist_keylayouts_module_SOURCES = ## platform nodist sources +keylayouts_module_LDADD = +keylayouts_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +keylayouts_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +keylayouts_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +keylayouts_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +keylayouts_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_keylayouts_module_SOURCES) +CLEANFILES += $(nodist_keylayouts_module_SOURCES) +MOD_FILES += keylayouts.mod +MARKER_FILES += keylayouts.marker +CLEANFILES += keylayouts.marker + +keylayouts.marker: $(keylayouts_module_SOURCES) $(nodist_keylayouts_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(keylayouts_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += keylayouts.module +MODULE_FILES += keylayouts.module$(EXEEXT) +keylayouts_module_SOURCES = commands/keylayouts.c ## platform sources +nodist_keylayouts_module_SOURCES = ## platform nodist sources +keylayouts_module_LDADD = +keylayouts_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +keylayouts_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +keylayouts_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +keylayouts_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +keylayouts_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_keylayouts_module_SOURCES) +CLEANFILES += $(nodist_keylayouts_module_SOURCES) +MOD_FILES += keylayouts.mod +MARKER_FILES += keylayouts.marker +CLEANFILES += keylayouts.marker + +keylayouts.marker: $(keylayouts_module_SOURCES) $(nodist_keylayouts_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(keylayouts_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += keylayouts.module +MODULE_FILES += keylayouts.module$(EXEEXT) +keylayouts_module_SOURCES = commands/keylayouts.c ## platform sources +nodist_keylayouts_module_SOURCES = ## platform nodist sources +keylayouts_module_LDADD = +keylayouts_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +keylayouts_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +keylayouts_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +keylayouts_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +keylayouts_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_keylayouts_module_SOURCES) +CLEANFILES += $(nodist_keylayouts_module_SOURCES) +MOD_FILES += keylayouts.mod +MARKER_FILES += keylayouts.marker +CLEANFILES += keylayouts.marker + +keylayouts.marker: $(keylayouts_module_SOURCES) $(nodist_keylayouts_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(keylayouts_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += keylayouts.module +MODULE_FILES += keylayouts.module$(EXEEXT) +keylayouts_module_SOURCES = commands/keylayouts.c ## platform sources +nodist_keylayouts_module_SOURCES = ## platform nodist sources +keylayouts_module_LDADD = +keylayouts_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +keylayouts_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +keylayouts_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +keylayouts_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +keylayouts_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_keylayouts_module_SOURCES) +CLEANFILES += $(nodist_keylayouts_module_SOURCES) +MOD_FILES += keylayouts.mod +MARKER_FILES += keylayouts.marker +CLEANFILES += keylayouts.marker + +keylayouts.marker: $(keylayouts_module_SOURCES) $(nodist_keylayouts_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(keylayouts_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += keylayouts.module +MODULE_FILES += keylayouts.module$(EXEEXT) +keylayouts_module_SOURCES = commands/keylayouts.c ## platform sources +nodist_keylayouts_module_SOURCES = ## platform nodist sources +keylayouts_module_LDADD = +keylayouts_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +keylayouts_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +keylayouts_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +keylayouts_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +keylayouts_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_keylayouts_module_SOURCES) +CLEANFILES += $(nodist_keylayouts_module_SOURCES) +MOD_FILES += keylayouts.mod +MARKER_FILES += keylayouts.marker +CLEANFILES += keylayouts.marker + +keylayouts.marker: $(keylayouts_module_SOURCES) $(nodist_keylayouts_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(keylayouts_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif +platform_PROGRAMS += priority_queue.module +MODULE_FILES += priority_queue.module$(EXEEXT) +priority_queue_module_SOURCES = lib/priority_queue.c ## platform sources +nodist_priority_queue_module_SOURCES = ## platform nodist sources +priority_queue_module_LDADD = +priority_queue_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +priority_queue_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +priority_queue_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +priority_queue_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +priority_queue_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_priority_queue_module_SOURCES) +CLEANFILES += $(nodist_priority_queue_module_SOURCES) +MOD_FILES += priority_queue.mod +MARKER_FILES += priority_queue.marker +CLEANFILES += priority_queue.marker + +priority_queue.marker: $(priority_queue_module_SOURCES) $(nodist_priority_queue_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(priority_queue_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += time.module +MODULE_FILES += time.module$(EXEEXT) +time_module_SOURCES = commands/time.c ## platform sources +nodist_time_module_SOURCES = ## platform nodist sources +time_module_LDADD = +time_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +time_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +time_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +time_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +time_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_time_module_SOURCES) +CLEANFILES += $(nodist_time_module_SOURCES) +MOD_FILES += time.mod +MARKER_FILES += time.marker +CLEANFILES += time.marker + +time.marker: $(time_module_SOURCES) $(nodist_time_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(time_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +if COND_ENABLE_CACHE_STATS +platform_PROGRAMS += cacheinfo.module +MODULE_FILES += cacheinfo.module$(EXEEXT) +cacheinfo_module_SOURCES = commands/cacheinfo.c ## platform sources +nodist_cacheinfo_module_SOURCES = ## platform nodist sources +cacheinfo_module_LDADD = +cacheinfo_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +cacheinfo_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +cacheinfo_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +cacheinfo_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +cacheinfo_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cacheinfo_module_SOURCES) +CLEANFILES += $(nodist_cacheinfo_module_SOURCES) +MOD_FILES += cacheinfo.mod +MARKER_FILES += cacheinfo.marker +CLEANFILES += cacheinfo.marker + +cacheinfo.marker: $(cacheinfo_module_SOURCES) $(nodist_cacheinfo_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(cacheinfo_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif COND_ENABLE_CACHE_STATS +if COND_ENABLE_BOOT_TIME_STATS +platform_PROGRAMS += boottime.module +MODULE_FILES += boottime.module$(EXEEXT) +boottime_module_SOURCES = commands/boottime.c ## platform sources +nodist_boottime_module_SOURCES = ## platform nodist sources +boottime_module_LDADD = +boottime_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +boottime_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +boottime_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +boottime_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +boottime_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_boottime_module_SOURCES) +CLEANFILES += $(nodist_boottime_module_SOURCES) +MOD_FILES += boottime.mod +MARKER_FILES += boottime.marker +CLEANFILES += boottime.marker + +boottime.marker: $(boottime_module_SOURCES) $(nodist_boottime_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(boottime_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif COND_ENABLE_BOOT_TIME_STATS +platform_PROGRAMS += adler32.module +MODULE_FILES += adler32.module$(EXEEXT) +adler32_module_SOURCES = lib/adler32.c ## platform sources +nodist_adler32_module_SOURCES = ## platform nodist sources +adler32_module_LDADD = +adler32_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +adler32_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +adler32_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +adler32_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +adler32_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_adler32_module_SOURCES) +CLEANFILES += $(nodist_adler32_module_SOURCES) +MOD_FILES += adler32.mod +MARKER_FILES += adler32.marker +CLEANFILES += adler32.marker + +adler32.marker: $(adler32_module_SOURCES) $(nodist_adler32_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(adler32_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += crc64.module +MODULE_FILES += crc64.module$(EXEEXT) +crc64_module_SOURCES = lib/crc64.c ## platform sources +nodist_crc64_module_SOURCES = ## platform nodist sources +crc64_module_LDADD = +crc64_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +crc64_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +crc64_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +crc64_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +crc64_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_crc64_module_SOURCES) +CLEANFILES += $(nodist_crc64_module_SOURCES) +MOD_FILES += crc64.mod +MARKER_FILES += crc64.marker +CLEANFILES += crc64.marker + +crc64.marker: $(crc64_module_SOURCES) $(nodist_crc64_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(crc64_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += mpi.module +MODULE_FILES += mpi.module$(EXEEXT) +mpi_module_SOURCES = lib/libgcrypt-grub/mpi/mpiutil.c lib/libgcrypt-grub/mpi/mpi-bit.c lib/libgcrypt-grub/mpi/mpi-add.c lib/libgcrypt-grub/mpi/mpi-mul.c lib/libgcrypt-grub/mpi/mpi-mod.c lib/libgcrypt-grub/mpi/mpi-gcd.c lib/libgcrypt-grub/mpi/mpi-div.c lib/libgcrypt-grub/mpi/mpi-cmp.c lib/libgcrypt-grub/mpi/mpi-inv.c lib/libgcrypt-grub/mpi/mpi-pow.c lib/libgcrypt-grub/mpi/mpi-mpow.c lib/libgcrypt-grub/mpi/mpih-lshift.c lib/libgcrypt-grub/mpi/mpih-mul.c lib/libgcrypt-grub/mpi/mpih-mul1.c lib/libgcrypt-grub/mpi/mpih-mul2.c lib/libgcrypt-grub/mpi/mpih-mul3.c lib/libgcrypt-grub/mpi/mpih-add1.c lib/libgcrypt-grub/mpi/mpih-sub1.c lib/libgcrypt-grub/mpi/mpih-div.c lib/libgcrypt-grub/mpi/mpicoder.c lib/libgcrypt-grub/mpi/mpih-rshift.c lib/libgcrypt-grub/mpi/mpi-inline.c lib/libgcrypt_wrap/mem.c ## platform sources +nodist_mpi_module_SOURCES = ## platform nodist sources +mpi_module_LDADD = +mpi_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) $(CFLAGS_GCRY) -Wno-redundant-decls -Wno-sign-compare +mpi_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +mpi_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) $(CPPFLAGS_GCRY) +mpi_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +mpi_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_mpi_module_SOURCES) +CLEANFILES += $(nodist_mpi_module_SOURCES) +MOD_FILES += mpi.mod +MARKER_FILES += mpi.marker +CLEANFILES += mpi.marker + +mpi.marker: $(mpi_module_SOURCES) $(nodist_mpi_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(mpi_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += all_video.module +MODULE_FILES += all_video.module$(EXEEXT) +all_video_module_SOURCES = lib/fake_module.c ## platform sources +nodist_all_video_module_SOURCES = ## platform nodist sources +all_video_module_LDADD = +all_video_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +all_video_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +all_video_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +all_video_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +all_video_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_all_video_module_SOURCES) +CLEANFILES += $(nodist_all_video_module_SOURCES) +MOD_FILES += all_video.mod +MARKER_FILES += all_video.marker +CLEANFILES += all_video.marker + +all_video.marker: $(all_video_module_SOURCES) $(nodist_all_video_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(all_video_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new + +if COND_i386_pc +platform_PROGRAMS += gdb.module +MODULE_FILES += gdb.module$(EXEEXT) +gdb_module_SOURCES = gdb/i386/idt.c gdb/i386/machdep.S gdb/i386/signal.c gdb/cstub.c gdb/gdb.c ## platform sources +nodist_gdb_module_SOURCES = ## platform nodist sources +gdb_module_LDADD = +gdb_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +gdb_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gdb_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +gdb_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gdb_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gdb_module_SOURCES) +CLEANFILES += $(nodist_gdb_module_SOURCES) +MOD_FILES += gdb.mod +MARKER_FILES += gdb.marker +CLEANFILES += gdb.marker + +gdb.marker: $(gdb_module_SOURCES) $(nodist_gdb_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gdb_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += gdb.module +MODULE_FILES += gdb.module$(EXEEXT) +gdb_module_SOURCES = gdb/i386/idt.c gdb/i386/machdep.S gdb/i386/signal.c gdb/cstub.c gdb/gdb.c ## platform sources +nodist_gdb_module_SOURCES = ## platform nodist sources +gdb_module_LDADD = +gdb_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +gdb_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gdb_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +gdb_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gdb_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gdb_module_SOURCES) +CLEANFILES += $(nodist_gdb_module_SOURCES) +MOD_FILES += gdb.mod +MARKER_FILES += gdb.marker +CLEANFILES += gdb.marker + +gdb.marker: $(gdb_module_SOURCES) $(nodist_gdb_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gdb_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += gdb.module +MODULE_FILES += gdb.module$(EXEEXT) +gdb_module_SOURCES = gdb/i386/idt.c gdb/i386/machdep.S gdb/i386/signal.c gdb/cstub.c gdb/gdb.c ## platform sources +nodist_gdb_module_SOURCES = ## platform nodist sources +gdb_module_LDADD = +gdb_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +gdb_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gdb_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +gdb_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gdb_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gdb_module_SOURCES) +CLEANFILES += $(nodist_gdb_module_SOURCES) +MOD_FILES += gdb.mod +MARKER_FILES += gdb.marker +CLEANFILES += gdb.marker + +gdb.marker: $(gdb_module_SOURCES) $(nodist_gdb_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gdb_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += gdb.module +MODULE_FILES += gdb.module$(EXEEXT) +gdb_module_SOURCES = gdb/i386/idt.c gdb/i386/machdep.S gdb/i386/signal.c gdb/cstub.c gdb/gdb.c ## platform sources +nodist_gdb_module_SOURCES = ## platform nodist sources +gdb_module_LDADD = +gdb_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +gdb_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gdb_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +gdb_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gdb_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gdb_module_SOURCES) +CLEANFILES += $(nodist_gdb_module_SOURCES) +MOD_FILES += gdb.mod +MARKER_FILES += gdb.marker +CLEANFILES += gdb.marker + +gdb.marker: $(gdb_module_SOURCES) $(nodist_gdb_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gdb_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += gdb.module +MODULE_FILES += gdb.module$(EXEEXT) +gdb_module_SOURCES = gdb/i386/idt.c gdb/i386/machdep.S gdb/i386/signal.c gdb/cstub.c gdb/gdb.c ## platform sources +nodist_gdb_module_SOURCES = ## platform nodist sources +gdb_module_LDADD = +gdb_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +gdb_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gdb_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +gdb_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gdb_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gdb_module_SOURCES) +CLEANFILES += $(nodist_gdb_module_SOURCES) +MOD_FILES += gdb.mod +MARKER_FILES += gdb.marker +CLEANFILES += gdb.marker + +gdb.marker: $(gdb_module_SOURCES) $(nodist_gdb_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gdb_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += gdb.module +MODULE_FILES += gdb.module$(EXEEXT) +gdb_module_SOURCES = gdb/i386/idt.c gdb/i386/machdep.S gdb/i386/signal.c gdb/cstub.c gdb/gdb.c ## platform sources +nodist_gdb_module_SOURCES = ## platform nodist sources +gdb_module_LDADD = +gdb_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +gdb_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gdb_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +gdb_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gdb_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gdb_module_SOURCES) +CLEANFILES += $(nodist_gdb_module_SOURCES) +MOD_FILES += gdb.mod +MARKER_FILES += gdb.marker +CLEANFILES += gdb.marker + +gdb.marker: $(gdb_module_SOURCES) $(nodist_gdb_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gdb_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif +platform_PROGRAMS += testspeed.module +MODULE_FILES += testspeed.module$(EXEEXT) +testspeed_module_SOURCES = commands/testspeed.c ## platform sources +nodist_testspeed_module_SOURCES = ## platform nodist sources +testspeed_module_LDADD = +testspeed_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +testspeed_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +testspeed_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +testspeed_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +testspeed_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_testspeed_module_SOURCES) +CLEANFILES += $(nodist_testspeed_module_SOURCES) +MOD_FILES += testspeed.mod +MARKER_FILES += testspeed.marker +CLEANFILES += testspeed.marker + +testspeed.marker: $(testspeed_module_SOURCES) $(nodist_testspeed_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testspeed_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new + +if COND_i386_efi +platform_PROGRAMS += tpm.module +MODULE_FILES += tpm.module$(EXEEXT) +tpm_module_SOURCES = commands/efi/tpm.c commands/tpm.c ## platform sources +nodist_tpm_module_SOURCES = ## platform nodist sources +tpm_module_LDADD = +tpm_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +tpm_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +tpm_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +tpm_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +tpm_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_tpm_module_SOURCES) +CLEANFILES += $(nodist_tpm_module_SOURCES) +MOD_FILES += tpm.mod +MARKER_FILES += tpm.marker +CLEANFILES += tpm.marker + +tpm.marker: $(tpm_module_SOURCES) $(nodist_tpm_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tpm_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += tpm.module +MODULE_FILES += tpm.module$(EXEEXT) +tpm_module_SOURCES = commands/efi/tpm.c commands/tpm.c ## platform sources +nodist_tpm_module_SOURCES = ## platform nodist sources +tpm_module_LDADD = +tpm_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +tpm_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +tpm_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +tpm_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +tpm_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_tpm_module_SOURCES) +CLEANFILES += $(nodist_tpm_module_SOURCES) +MOD_FILES += tpm.mod +MARKER_FILES += tpm.marker +CLEANFILES += tpm.marker + +tpm.marker: $(tpm_module_SOURCES) $(nodist_tpm_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tpm_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_ia64_efi +platform_PROGRAMS += tpm.module +MODULE_FILES += tpm.module$(EXEEXT) +tpm_module_SOURCES = commands/efi/tpm.c commands/tpm.c ## platform sources +nodist_tpm_module_SOURCES = ## platform nodist sources +tpm_module_LDADD = +tpm_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +tpm_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +tpm_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +tpm_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +tpm_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_tpm_module_SOURCES) +CLEANFILES += $(nodist_tpm_module_SOURCES) +MOD_FILES += tpm.mod +MARKER_FILES += tpm.marker +CLEANFILES += tpm.marker + +tpm.marker: $(tpm_module_SOURCES) $(nodist_tpm_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tpm_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm_efi +platform_PROGRAMS += tpm.module +MODULE_FILES += tpm.module$(EXEEXT) +tpm_module_SOURCES = commands/efi/tpm.c commands/tpm.c ## platform sources +nodist_tpm_module_SOURCES = ## platform nodist sources +tpm_module_LDADD = +tpm_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +tpm_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +tpm_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +tpm_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +tpm_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_tpm_module_SOURCES) +CLEANFILES += $(nodist_tpm_module_SOURCES) +MOD_FILES += tpm.mod +MARKER_FILES += tpm.marker +CLEANFILES += tpm.marker + +tpm.marker: $(tpm_module_SOURCES) $(nodist_tpm_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tpm_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_arm64_efi +platform_PROGRAMS += tpm.module +MODULE_FILES += tpm.module$(EXEEXT) +tpm_module_SOURCES = commands/efi/tpm.c commands/tpm.c ## platform sources +nodist_tpm_module_SOURCES = ## platform nodist sources +tpm_module_LDADD = +tpm_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +tpm_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +tpm_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +tpm_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +tpm_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_tpm_module_SOURCES) +CLEANFILES += $(nodist_tpm_module_SOURCES) +MOD_FILES += tpm.mod +MARKER_FILES += tpm.marker +CLEANFILES += tpm.marker + +tpm.marker: $(tpm_module_SOURCES) $(nodist_tpm_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tpm_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv32_efi +platform_PROGRAMS += tpm.module +MODULE_FILES += tpm.module$(EXEEXT) +tpm_module_SOURCES = commands/efi/tpm.c commands/tpm.c ## platform sources +nodist_tpm_module_SOURCES = ## platform nodist sources +tpm_module_LDADD = +tpm_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +tpm_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +tpm_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +tpm_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +tpm_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_tpm_module_SOURCES) +CLEANFILES += $(nodist_tpm_module_SOURCES) +MOD_FILES += tpm.mod +MARKER_FILES += tpm.marker +CLEANFILES += tpm.marker + +tpm.marker: $(tpm_module_SOURCES) $(nodist_tpm_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tpm_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_riscv64_efi +platform_PROGRAMS += tpm.module +MODULE_FILES += tpm.module$(EXEEXT) +tpm_module_SOURCES = commands/efi/tpm.c commands/tpm.c ## platform sources +nodist_tpm_module_SOURCES = ## platform nodist sources +tpm_module_LDADD = +tpm_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +tpm_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +tpm_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +tpm_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +tpm_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_tpm_module_SOURCES) +CLEANFILES += $(nodist_tpm_module_SOURCES) +MOD_FILES += tpm.mod +MARKER_FILES += tpm.marker +CLEANFILES += tpm.marker + +tpm.marker: $(tpm_module_SOURCES) $(nodist_tpm_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tpm_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif +platform_PROGRAMS += tr.module +MODULE_FILES += tr.module$(EXEEXT) +tr_module_SOURCES = commands/tr.c ## platform sources +nodist_tr_module_SOURCES = ## platform nodist sources +tr_module_LDADD = +tr_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +tr_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +tr_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +tr_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +tr_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_tr_module_SOURCES) +CLEANFILES += $(nodist_tr_module_SOURCES) +MOD_FILES += tr.mod +MARKER_FILES += tr.marker +CLEANFILES += tr.marker + +tr.marker: $(tr_module_SOURCES) $(nodist_tr_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tr_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += progress.module +MODULE_FILES += progress.module$(EXEEXT) +progress_module_SOURCES = lib/progress.c ## platform sources +nodist_progress_module_SOURCES = ## platform nodist sources +progress_module_LDADD = +progress_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +progress_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +progress_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +progress_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +progress_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_progress_module_SOURCES) +CLEANFILES += $(nodist_progress_module_SOURCES) +MOD_FILES += progress.mod +MARKER_FILES += progress.marker +CLEANFILES += progress.marker + +progress.marker: $(progress_module_SOURCES) $(nodist_progress_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(progress_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += file.module +MODULE_FILES += file.module$(EXEEXT) +file_module_SOURCES = commands/file.c commands/file32.c commands/file64.c loader/i386/xen_file.c loader/i386/xen_file32.c loader/i386/xen_file64.c ## platform sources +nodist_file_module_SOURCES = ## platform nodist sources +file_module_LDADD = +file_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +file_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +file_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +file_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +file_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += commands/fileXX.c loader/i386/xen_fileXX.c +BUILT_SOURCES += $(nodist_file_module_SOURCES) +CLEANFILES += $(nodist_file_module_SOURCES) +MOD_FILES += file.mod +MARKER_FILES += file.marker +CLEANFILES += file.marker + +file.marker: $(file_module_SOURCES) $(nodist_file_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(file_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new + +if COND_i386_pc +platform_PROGRAMS += rdmsr.module +MODULE_FILES += rdmsr.module$(EXEEXT) +rdmsr_module_SOURCES = commands/i386/rdmsr.c ## platform sources +nodist_rdmsr_module_SOURCES = ## platform nodist sources +rdmsr_module_LDADD = +rdmsr_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +rdmsr_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +rdmsr_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +rdmsr_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +rdmsr_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_rdmsr_module_SOURCES) +CLEANFILES += $(nodist_rdmsr_module_SOURCES) +MOD_FILES += rdmsr.mod +MARKER_FILES += rdmsr.marker +CLEANFILES += rdmsr.marker + +rdmsr.marker: $(rdmsr_module_SOURCES) $(nodist_rdmsr_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(rdmsr_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += rdmsr.module +MODULE_FILES += rdmsr.module$(EXEEXT) +rdmsr_module_SOURCES = commands/i386/rdmsr.c ## platform sources +nodist_rdmsr_module_SOURCES = ## platform nodist sources +rdmsr_module_LDADD = +rdmsr_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +rdmsr_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +rdmsr_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +rdmsr_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +rdmsr_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_rdmsr_module_SOURCES) +CLEANFILES += $(nodist_rdmsr_module_SOURCES) +MOD_FILES += rdmsr.mod +MARKER_FILES += rdmsr.marker +CLEANFILES += rdmsr.marker + +rdmsr.marker: $(rdmsr_module_SOURCES) $(nodist_rdmsr_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(rdmsr_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += rdmsr.module +MODULE_FILES += rdmsr.module$(EXEEXT) +rdmsr_module_SOURCES = commands/i386/rdmsr.c ## platform sources +nodist_rdmsr_module_SOURCES = ## platform nodist sources +rdmsr_module_LDADD = +rdmsr_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +rdmsr_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +rdmsr_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +rdmsr_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +rdmsr_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_rdmsr_module_SOURCES) +CLEANFILES += $(nodist_rdmsr_module_SOURCES) +MOD_FILES += rdmsr.mod +MARKER_FILES += rdmsr.marker +CLEANFILES += rdmsr.marker + +rdmsr.marker: $(rdmsr_module_SOURCES) $(nodist_rdmsr_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(rdmsr_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += rdmsr.module +MODULE_FILES += rdmsr.module$(EXEEXT) +rdmsr_module_SOURCES = commands/i386/rdmsr.c ## platform sources +nodist_rdmsr_module_SOURCES = ## platform nodist sources +rdmsr_module_LDADD = +rdmsr_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +rdmsr_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +rdmsr_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +rdmsr_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +rdmsr_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_rdmsr_module_SOURCES) +CLEANFILES += $(nodist_rdmsr_module_SOURCES) +MOD_FILES += rdmsr.mod +MARKER_FILES += rdmsr.marker +CLEANFILES += rdmsr.marker + +rdmsr.marker: $(rdmsr_module_SOURCES) $(nodist_rdmsr_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(rdmsr_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += rdmsr.module +MODULE_FILES += rdmsr.module$(EXEEXT) +rdmsr_module_SOURCES = commands/i386/rdmsr.c ## platform sources +nodist_rdmsr_module_SOURCES = ## platform nodist sources +rdmsr_module_LDADD = +rdmsr_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +rdmsr_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +rdmsr_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +rdmsr_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +rdmsr_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_rdmsr_module_SOURCES) +CLEANFILES += $(nodist_rdmsr_module_SOURCES) +MOD_FILES += rdmsr.mod +MARKER_FILES += rdmsr.marker +CLEANFILES += rdmsr.marker + +rdmsr.marker: $(rdmsr_module_SOURCES) $(nodist_rdmsr_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(rdmsr_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += rdmsr.module +MODULE_FILES += rdmsr.module$(EXEEXT) +rdmsr_module_SOURCES = commands/i386/rdmsr.c ## platform sources +nodist_rdmsr_module_SOURCES = ## platform nodist sources +rdmsr_module_LDADD = +rdmsr_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +rdmsr_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +rdmsr_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +rdmsr_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +rdmsr_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_rdmsr_module_SOURCES) +CLEANFILES += $(nodist_rdmsr_module_SOURCES) +MOD_FILES += rdmsr.mod +MARKER_FILES += rdmsr.marker +CLEANFILES += rdmsr.marker + +rdmsr.marker: $(rdmsr_module_SOURCES) $(nodist_rdmsr_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(rdmsr_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += rdmsr.module +MODULE_FILES += rdmsr.module$(EXEEXT) +rdmsr_module_SOURCES = commands/i386/rdmsr.c ## platform sources +nodist_rdmsr_module_SOURCES = ## platform nodist sources +rdmsr_module_LDADD = +rdmsr_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +rdmsr_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +rdmsr_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +rdmsr_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +rdmsr_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_rdmsr_module_SOURCES) +CLEANFILES += $(nodist_rdmsr_module_SOURCES) +MOD_FILES += rdmsr.mod +MARKER_FILES += rdmsr.marker +CLEANFILES += rdmsr.marker + +rdmsr.marker: $(rdmsr_module_SOURCES) $(nodist_rdmsr_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(rdmsr_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_pc +platform_PROGRAMS += wrmsr.module +MODULE_FILES += wrmsr.module$(EXEEXT) +wrmsr_module_SOURCES = commands/i386/wrmsr.c ## platform sources +nodist_wrmsr_module_SOURCES = ## platform nodist sources +wrmsr_module_LDADD = +wrmsr_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +wrmsr_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +wrmsr_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +wrmsr_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +wrmsr_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_wrmsr_module_SOURCES) +CLEANFILES += $(nodist_wrmsr_module_SOURCES) +MOD_FILES += wrmsr.mod +MARKER_FILES += wrmsr.marker +CLEANFILES += wrmsr.marker + +wrmsr.marker: $(wrmsr_module_SOURCES) $(nodist_wrmsr_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(wrmsr_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_efi +platform_PROGRAMS += wrmsr.module +MODULE_FILES += wrmsr.module$(EXEEXT) +wrmsr_module_SOURCES = commands/i386/wrmsr.c ## platform sources +nodist_wrmsr_module_SOURCES = ## platform nodist sources +wrmsr_module_LDADD = +wrmsr_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +wrmsr_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +wrmsr_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +wrmsr_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +wrmsr_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_wrmsr_module_SOURCES) +CLEANFILES += $(nodist_wrmsr_module_SOURCES) +MOD_FILES += wrmsr.mod +MARKER_FILES += wrmsr.marker +CLEANFILES += wrmsr.marker + +wrmsr.marker: $(wrmsr_module_SOURCES) $(nodist_wrmsr_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(wrmsr_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_qemu +platform_PROGRAMS += wrmsr.module +MODULE_FILES += wrmsr.module$(EXEEXT) +wrmsr_module_SOURCES = commands/i386/wrmsr.c ## platform sources +nodist_wrmsr_module_SOURCES = ## platform nodist sources +wrmsr_module_LDADD = +wrmsr_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +wrmsr_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +wrmsr_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +wrmsr_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +wrmsr_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_wrmsr_module_SOURCES) +CLEANFILES += $(nodist_wrmsr_module_SOURCES) +MOD_FILES += wrmsr.mod +MARKER_FILES += wrmsr.marker +CLEANFILES += wrmsr.marker + +wrmsr.marker: $(wrmsr_module_SOURCES) $(nodist_wrmsr_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(wrmsr_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_coreboot +platform_PROGRAMS += wrmsr.module +MODULE_FILES += wrmsr.module$(EXEEXT) +wrmsr_module_SOURCES = commands/i386/wrmsr.c ## platform sources +nodist_wrmsr_module_SOURCES = ## platform nodist sources +wrmsr_module_LDADD = +wrmsr_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +wrmsr_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +wrmsr_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +wrmsr_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +wrmsr_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_wrmsr_module_SOURCES) +CLEANFILES += $(nodist_wrmsr_module_SOURCES) +MOD_FILES += wrmsr.mod +MARKER_FILES += wrmsr.marker +CLEANFILES += wrmsr.marker + +wrmsr.marker: $(wrmsr_module_SOURCES) $(nodist_wrmsr_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(wrmsr_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_multiboot +platform_PROGRAMS += wrmsr.module +MODULE_FILES += wrmsr.module$(EXEEXT) +wrmsr_module_SOURCES = commands/i386/wrmsr.c ## platform sources +nodist_wrmsr_module_SOURCES = ## platform nodist sources +wrmsr_module_LDADD = +wrmsr_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +wrmsr_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +wrmsr_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +wrmsr_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +wrmsr_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_wrmsr_module_SOURCES) +CLEANFILES += $(nodist_wrmsr_module_SOURCES) +MOD_FILES += wrmsr.mod +MARKER_FILES += wrmsr.marker +CLEANFILES += wrmsr.marker + +wrmsr.marker: $(wrmsr_module_SOURCES) $(nodist_wrmsr_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(wrmsr_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += wrmsr.module +MODULE_FILES += wrmsr.module$(EXEEXT) +wrmsr_module_SOURCES = commands/i386/wrmsr.c ## platform sources +nodist_wrmsr_module_SOURCES = ## platform nodist sources +wrmsr_module_LDADD = +wrmsr_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +wrmsr_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +wrmsr_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +wrmsr_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +wrmsr_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_wrmsr_module_SOURCES) +CLEANFILES += $(nodist_wrmsr_module_SOURCES) +MOD_FILES += wrmsr.mod +MARKER_FILES += wrmsr.marker +CLEANFILES += wrmsr.marker + +wrmsr.marker: $(wrmsr_module_SOURCES) $(nodist_wrmsr_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(wrmsr_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif + +if COND_x86_64_efi +platform_PROGRAMS += wrmsr.module +MODULE_FILES += wrmsr.module$(EXEEXT) +wrmsr_module_SOURCES = commands/i386/wrmsr.c ## platform sources +nodist_wrmsr_module_SOURCES = ## platform nodist sources +wrmsr_module_LDADD = +wrmsr_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) +wrmsr_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +wrmsr_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) +wrmsr_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +wrmsr_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_wrmsr_module_SOURCES) +CLEANFILES += $(nodist_wrmsr_module_SOURCES) +MOD_FILES += wrmsr.mod +MARKER_FILES += wrmsr.marker +CLEANFILES += wrmsr.marker + +wrmsr.marker: $(wrmsr_module_SOURCES) $(nodist_wrmsr_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(wrmsr_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +endif +platform_PROGRAMS += gcry_arcfour.module +MODULE_FILES += gcry_arcfour.module$(EXEEXT) +gcry_arcfour_module_SOURCES = lib/libgcrypt-grub/cipher/arcfour.c ## platform sources +nodist_gcry_arcfour_module_SOURCES = ## platform nodist sources +gcry_arcfour_module_LDADD = +gcry_arcfour_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) $(CFLAGS_GCRY) +gcry_arcfour_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gcry_arcfour_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) $(CPPFLAGS_GCRY) +gcry_arcfour_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gcry_arcfour_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gcry_arcfour_module_SOURCES) +CLEANFILES += $(nodist_gcry_arcfour_module_SOURCES) +MOD_FILES += gcry_arcfour.mod +MARKER_FILES += gcry_arcfour.marker +CLEANFILES += gcry_arcfour.marker + +gcry_arcfour.marker: $(gcry_arcfour_module_SOURCES) $(nodist_gcry_arcfour_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gcry_arcfour_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += gcry_blowfish.module +MODULE_FILES += gcry_blowfish.module$(EXEEXT) +gcry_blowfish_module_SOURCES = lib/libgcrypt-grub/cipher/blowfish.c ## platform sources +nodist_gcry_blowfish_module_SOURCES = ## platform nodist sources +gcry_blowfish_module_LDADD = +gcry_blowfish_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) $(CFLAGS_GCRY) +gcry_blowfish_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gcry_blowfish_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) $(CPPFLAGS_GCRY) +gcry_blowfish_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gcry_blowfish_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gcry_blowfish_module_SOURCES) +CLEANFILES += $(nodist_gcry_blowfish_module_SOURCES) +MOD_FILES += gcry_blowfish.mod +MARKER_FILES += gcry_blowfish.marker +CLEANFILES += gcry_blowfish.marker + +gcry_blowfish.marker: $(gcry_blowfish_module_SOURCES) $(nodist_gcry_blowfish_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gcry_blowfish_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += gcry_camellia.module +MODULE_FILES += gcry_camellia.module$(EXEEXT) +gcry_camellia_module_SOURCES = lib/libgcrypt-grub/cipher/camellia-glue.c lib/libgcrypt-grub/cipher/camellia.c ## platform sources +nodist_gcry_camellia_module_SOURCES = ## platform nodist sources +gcry_camellia_module_LDADD = +gcry_camellia_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) $(CFLAGS_GCRY) +gcry_camellia_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gcry_camellia_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) $(CPPFLAGS_GCRY) +gcry_camellia_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gcry_camellia_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gcry_camellia_module_SOURCES) +CLEANFILES += $(nodist_gcry_camellia_module_SOURCES) +MOD_FILES += gcry_camellia.mod +MARKER_FILES += gcry_camellia.marker +CLEANFILES += gcry_camellia.marker + +gcry_camellia.marker: $(gcry_camellia_module_SOURCES) $(nodist_gcry_camellia_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gcry_camellia_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += gcry_cast5.module +MODULE_FILES += gcry_cast5.module$(EXEEXT) +gcry_cast5_module_SOURCES = lib/libgcrypt-grub/cipher/cast5.c ## platform sources +nodist_gcry_cast5_module_SOURCES = ## platform nodist sources +gcry_cast5_module_LDADD = +gcry_cast5_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) $(CFLAGS_GCRY) +gcry_cast5_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gcry_cast5_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) $(CPPFLAGS_GCRY) +gcry_cast5_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gcry_cast5_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gcry_cast5_module_SOURCES) +CLEANFILES += $(nodist_gcry_cast5_module_SOURCES) +MOD_FILES += gcry_cast5.mod +MARKER_FILES += gcry_cast5.marker +CLEANFILES += gcry_cast5.marker + +gcry_cast5.marker: $(gcry_cast5_module_SOURCES) $(nodist_gcry_cast5_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gcry_cast5_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += gcry_crc.module +MODULE_FILES += gcry_crc.module$(EXEEXT) +gcry_crc_module_SOURCES = lib/libgcrypt-grub/cipher/crc.c ## platform sources +nodist_gcry_crc_module_SOURCES = ## platform nodist sources +gcry_crc_module_LDADD = +gcry_crc_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) $(CFLAGS_GCRY) +gcry_crc_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gcry_crc_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) $(CPPFLAGS_GCRY) +gcry_crc_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gcry_crc_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gcry_crc_module_SOURCES) +CLEANFILES += $(nodist_gcry_crc_module_SOURCES) +MOD_FILES += gcry_crc.mod +MARKER_FILES += gcry_crc.marker +CLEANFILES += gcry_crc.marker + +gcry_crc.marker: $(gcry_crc_module_SOURCES) $(nodist_gcry_crc_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gcry_crc_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += gcry_des.module +MODULE_FILES += gcry_des.module$(EXEEXT) +gcry_des_module_SOURCES = lib/libgcrypt-grub/cipher/des.c ## platform sources +nodist_gcry_des_module_SOURCES = ## platform nodist sources +gcry_des_module_LDADD = +gcry_des_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) $(CFLAGS_GCRY) +gcry_des_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gcry_des_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) $(CPPFLAGS_GCRY) +gcry_des_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gcry_des_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gcry_des_module_SOURCES) +CLEANFILES += $(nodist_gcry_des_module_SOURCES) +MOD_FILES += gcry_des.mod +MARKER_FILES += gcry_des.marker +CLEANFILES += gcry_des.marker + +gcry_des.marker: $(gcry_des_module_SOURCES) $(nodist_gcry_des_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gcry_des_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += gcry_dsa.module +MODULE_FILES += gcry_dsa.module$(EXEEXT) +gcry_dsa_module_SOURCES = lib/libgcrypt-grub/cipher/dsa.c ## platform sources +nodist_gcry_dsa_module_SOURCES = ## platform nodist sources +gcry_dsa_module_LDADD = +gcry_dsa_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) $(CFLAGS_GCRY) +gcry_dsa_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gcry_dsa_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) $(CPPFLAGS_GCRY) +gcry_dsa_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gcry_dsa_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gcry_dsa_module_SOURCES) +CLEANFILES += $(nodist_gcry_dsa_module_SOURCES) +MOD_FILES += gcry_dsa.mod +MARKER_FILES += gcry_dsa.marker +CLEANFILES += gcry_dsa.marker + +gcry_dsa.marker: $(gcry_dsa_module_SOURCES) $(nodist_gcry_dsa_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gcry_dsa_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += gcry_idea.module +MODULE_FILES += gcry_idea.module$(EXEEXT) +gcry_idea_module_SOURCES = lib/libgcrypt-grub/cipher/idea.c ## platform sources +nodist_gcry_idea_module_SOURCES = ## platform nodist sources +gcry_idea_module_LDADD = +gcry_idea_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) $(CFLAGS_GCRY) +gcry_idea_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gcry_idea_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) $(CPPFLAGS_GCRY) +gcry_idea_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gcry_idea_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gcry_idea_module_SOURCES) +CLEANFILES += $(nodist_gcry_idea_module_SOURCES) +MOD_FILES += gcry_idea.mod +MARKER_FILES += gcry_idea.marker +CLEANFILES += gcry_idea.marker + +gcry_idea.marker: $(gcry_idea_module_SOURCES) $(nodist_gcry_idea_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gcry_idea_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += gcry_md4.module +MODULE_FILES += gcry_md4.module$(EXEEXT) +gcry_md4_module_SOURCES = lib/libgcrypt-grub/cipher/md4.c ## platform sources +nodist_gcry_md4_module_SOURCES = ## platform nodist sources +gcry_md4_module_LDADD = +gcry_md4_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) $(CFLAGS_GCRY) -Wno-cast-align +gcry_md4_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gcry_md4_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) $(CPPFLAGS_GCRY) +gcry_md4_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gcry_md4_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gcry_md4_module_SOURCES) +CLEANFILES += $(nodist_gcry_md4_module_SOURCES) +MOD_FILES += gcry_md4.mod +MARKER_FILES += gcry_md4.marker +CLEANFILES += gcry_md4.marker + +gcry_md4.marker: $(gcry_md4_module_SOURCES) $(nodist_gcry_md4_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gcry_md4_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += gcry_md5.module +MODULE_FILES += gcry_md5.module$(EXEEXT) +gcry_md5_module_SOURCES = lib/libgcrypt-grub/cipher/md5.c ## platform sources +nodist_gcry_md5_module_SOURCES = ## platform nodist sources +gcry_md5_module_LDADD = +gcry_md5_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) $(CFLAGS_GCRY) -Wno-cast-align +gcry_md5_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gcry_md5_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) $(CPPFLAGS_GCRY) +gcry_md5_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gcry_md5_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gcry_md5_module_SOURCES) +CLEANFILES += $(nodist_gcry_md5_module_SOURCES) +MOD_FILES += gcry_md5.mod +MARKER_FILES += gcry_md5.marker +CLEANFILES += gcry_md5.marker + +gcry_md5.marker: $(gcry_md5_module_SOURCES) $(nodist_gcry_md5_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gcry_md5_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += gcry_rfc2268.module +MODULE_FILES += gcry_rfc2268.module$(EXEEXT) +gcry_rfc2268_module_SOURCES = lib/libgcrypt-grub/cipher/rfc2268.c ## platform sources +nodist_gcry_rfc2268_module_SOURCES = ## platform nodist sources +gcry_rfc2268_module_LDADD = +gcry_rfc2268_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) $(CFLAGS_GCRY) +gcry_rfc2268_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gcry_rfc2268_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) $(CPPFLAGS_GCRY) +gcry_rfc2268_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gcry_rfc2268_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gcry_rfc2268_module_SOURCES) +CLEANFILES += $(nodist_gcry_rfc2268_module_SOURCES) +MOD_FILES += gcry_rfc2268.mod +MARKER_FILES += gcry_rfc2268.marker +CLEANFILES += gcry_rfc2268.marker + +gcry_rfc2268.marker: $(gcry_rfc2268_module_SOURCES) $(nodist_gcry_rfc2268_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gcry_rfc2268_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += gcry_rijndael.module +MODULE_FILES += gcry_rijndael.module$(EXEEXT) +gcry_rijndael_module_SOURCES = lib/libgcrypt-grub/cipher/rijndael.c ## platform sources +nodist_gcry_rijndael_module_SOURCES = ## platform nodist sources +gcry_rijndael_module_LDADD = +gcry_rijndael_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) $(CFLAGS_GCRY) -Wno-cast-align +gcry_rijndael_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gcry_rijndael_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) $(CPPFLAGS_GCRY) +gcry_rijndael_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gcry_rijndael_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gcry_rijndael_module_SOURCES) +CLEANFILES += $(nodist_gcry_rijndael_module_SOURCES) +MOD_FILES += gcry_rijndael.mod +MARKER_FILES += gcry_rijndael.marker +CLEANFILES += gcry_rijndael.marker + +gcry_rijndael.marker: $(gcry_rijndael_module_SOURCES) $(nodist_gcry_rijndael_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gcry_rijndael_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += gcry_rmd160.module +MODULE_FILES += gcry_rmd160.module$(EXEEXT) +gcry_rmd160_module_SOURCES = lib/libgcrypt-grub/cipher/rmd160.c ## platform sources +nodist_gcry_rmd160_module_SOURCES = ## platform nodist sources +gcry_rmd160_module_LDADD = +gcry_rmd160_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) $(CFLAGS_GCRY) -Wno-cast-align +gcry_rmd160_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gcry_rmd160_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) $(CPPFLAGS_GCRY) +gcry_rmd160_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gcry_rmd160_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gcry_rmd160_module_SOURCES) +CLEANFILES += $(nodist_gcry_rmd160_module_SOURCES) +MOD_FILES += gcry_rmd160.mod +MARKER_FILES += gcry_rmd160.marker +CLEANFILES += gcry_rmd160.marker + +gcry_rmd160.marker: $(gcry_rmd160_module_SOURCES) $(nodist_gcry_rmd160_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gcry_rmd160_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += gcry_rsa.module +MODULE_FILES += gcry_rsa.module$(EXEEXT) +gcry_rsa_module_SOURCES = lib/libgcrypt-grub/cipher/rsa.c ## platform sources +nodist_gcry_rsa_module_SOURCES = ## platform nodist sources +gcry_rsa_module_LDADD = +gcry_rsa_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) $(CFLAGS_GCRY) +gcry_rsa_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gcry_rsa_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) $(CPPFLAGS_GCRY) +gcry_rsa_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gcry_rsa_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gcry_rsa_module_SOURCES) +CLEANFILES += $(nodist_gcry_rsa_module_SOURCES) +MOD_FILES += gcry_rsa.mod +MARKER_FILES += gcry_rsa.marker +CLEANFILES += gcry_rsa.marker + +gcry_rsa.marker: $(gcry_rsa_module_SOURCES) $(nodist_gcry_rsa_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gcry_rsa_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += gcry_seed.module +MODULE_FILES += gcry_seed.module$(EXEEXT) +gcry_seed_module_SOURCES = lib/libgcrypt-grub/cipher/seed.c ## platform sources +nodist_gcry_seed_module_SOURCES = ## platform nodist sources +gcry_seed_module_LDADD = +gcry_seed_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) $(CFLAGS_GCRY) +gcry_seed_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gcry_seed_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) $(CPPFLAGS_GCRY) +gcry_seed_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gcry_seed_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gcry_seed_module_SOURCES) +CLEANFILES += $(nodist_gcry_seed_module_SOURCES) +MOD_FILES += gcry_seed.mod +MARKER_FILES += gcry_seed.marker +CLEANFILES += gcry_seed.marker + +gcry_seed.marker: $(gcry_seed_module_SOURCES) $(nodist_gcry_seed_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gcry_seed_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += gcry_serpent.module +MODULE_FILES += gcry_serpent.module$(EXEEXT) +gcry_serpent_module_SOURCES = lib/libgcrypt-grub/cipher/serpent.c ## platform sources +nodist_gcry_serpent_module_SOURCES = ## platform nodist sources +gcry_serpent_module_LDADD = +gcry_serpent_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) $(CFLAGS_GCRY) +gcry_serpent_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gcry_serpent_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) $(CPPFLAGS_GCRY) +gcry_serpent_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gcry_serpent_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gcry_serpent_module_SOURCES) +CLEANFILES += $(nodist_gcry_serpent_module_SOURCES) +MOD_FILES += gcry_serpent.mod +MARKER_FILES += gcry_serpent.marker +CLEANFILES += gcry_serpent.marker + +gcry_serpent.marker: $(gcry_serpent_module_SOURCES) $(nodist_gcry_serpent_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gcry_serpent_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += gcry_sha1.module +MODULE_FILES += gcry_sha1.module$(EXEEXT) +gcry_sha1_module_SOURCES = lib/libgcrypt-grub/cipher/sha1.c ## platform sources +nodist_gcry_sha1_module_SOURCES = ## platform nodist sources +gcry_sha1_module_LDADD = +gcry_sha1_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) $(CFLAGS_GCRY) -Wno-cast-align +gcry_sha1_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gcry_sha1_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) $(CPPFLAGS_GCRY) +gcry_sha1_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gcry_sha1_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gcry_sha1_module_SOURCES) +CLEANFILES += $(nodist_gcry_sha1_module_SOURCES) +MOD_FILES += gcry_sha1.mod +MARKER_FILES += gcry_sha1.marker +CLEANFILES += gcry_sha1.marker + +gcry_sha1.marker: $(gcry_sha1_module_SOURCES) $(nodist_gcry_sha1_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gcry_sha1_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += gcry_sha256.module +MODULE_FILES += gcry_sha256.module$(EXEEXT) +gcry_sha256_module_SOURCES = lib/libgcrypt-grub/cipher/sha256.c ## platform sources +nodist_gcry_sha256_module_SOURCES = ## platform nodist sources +gcry_sha256_module_LDADD = +gcry_sha256_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) $(CFLAGS_GCRY) -Wno-cast-align +gcry_sha256_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gcry_sha256_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) $(CPPFLAGS_GCRY) +gcry_sha256_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gcry_sha256_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gcry_sha256_module_SOURCES) +CLEANFILES += $(nodist_gcry_sha256_module_SOURCES) +MOD_FILES += gcry_sha256.mod +MARKER_FILES += gcry_sha256.marker +CLEANFILES += gcry_sha256.marker + +gcry_sha256.marker: $(gcry_sha256_module_SOURCES) $(nodist_gcry_sha256_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gcry_sha256_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += gcry_sha512.module +MODULE_FILES += gcry_sha512.module$(EXEEXT) +gcry_sha512_module_SOURCES = lib/libgcrypt-grub/cipher/sha512.c ## platform sources +nodist_gcry_sha512_module_SOURCES = ## platform nodist sources +gcry_sha512_module_LDADD = +gcry_sha512_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) $(CFLAGS_GCRY) -Wno-cast-align +gcry_sha512_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gcry_sha512_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) $(CPPFLAGS_GCRY) +gcry_sha512_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gcry_sha512_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gcry_sha512_module_SOURCES) +CLEANFILES += $(nodist_gcry_sha512_module_SOURCES) +MOD_FILES += gcry_sha512.mod +MARKER_FILES += gcry_sha512.marker +CLEANFILES += gcry_sha512.marker + +gcry_sha512.marker: $(gcry_sha512_module_SOURCES) $(nodist_gcry_sha512_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gcry_sha512_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += gcry_tiger.module +MODULE_FILES += gcry_tiger.module$(EXEEXT) +gcry_tiger_module_SOURCES = lib/libgcrypt-grub/cipher/tiger.c ## platform sources +nodist_gcry_tiger_module_SOURCES = ## platform nodist sources +gcry_tiger_module_LDADD = +gcry_tiger_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) $(CFLAGS_GCRY) -Wno-cast-align +gcry_tiger_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gcry_tiger_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) $(CPPFLAGS_GCRY) +gcry_tiger_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gcry_tiger_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gcry_tiger_module_SOURCES) +CLEANFILES += $(nodist_gcry_tiger_module_SOURCES) +MOD_FILES += gcry_tiger.mod +MARKER_FILES += gcry_tiger.marker +CLEANFILES += gcry_tiger.marker + +gcry_tiger.marker: $(gcry_tiger_module_SOURCES) $(nodist_gcry_tiger_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gcry_tiger_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += gcry_twofish.module +MODULE_FILES += gcry_twofish.module$(EXEEXT) +gcry_twofish_module_SOURCES = lib/libgcrypt-grub/cipher/twofish.c ## platform sources +nodist_gcry_twofish_module_SOURCES = ## platform nodist sources +gcry_twofish_module_LDADD = +gcry_twofish_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) $(CFLAGS_GCRY) +gcry_twofish_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gcry_twofish_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) $(CPPFLAGS_GCRY) +gcry_twofish_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gcry_twofish_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gcry_twofish_module_SOURCES) +CLEANFILES += $(nodist_gcry_twofish_module_SOURCES) +MOD_FILES += gcry_twofish.mod +MARKER_FILES += gcry_twofish.marker +CLEANFILES += gcry_twofish.marker + +gcry_twofish.marker: $(gcry_twofish_module_SOURCES) $(nodist_gcry_twofish_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gcry_twofish_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new +platform_PROGRAMS += gcry_whirlpool.module +MODULE_FILES += gcry_whirlpool.module$(EXEEXT) +gcry_whirlpool_module_SOURCES = lib/libgcrypt-grub/cipher/whirlpool.c ## platform sources +nodist_gcry_whirlpool_module_SOURCES = ## platform nodist sources +gcry_whirlpool_module_LDADD = +gcry_whirlpool_module_CFLAGS = $(AM_CFLAGS) $(CFLAGS_MODULE) $(CFLAGS_GCRY) +gcry_whirlpool_module_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_MODULE) +gcry_whirlpool_module_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_MODULE) $(CPPFLAGS_GCRY) +gcry_whirlpool_module_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_MODULE) +gcry_whirlpool_module_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_gcry_whirlpool_module_SOURCES) +CLEANFILES += $(nodist_gcry_whirlpool_module_SOURCES) +MOD_FILES += gcry_whirlpool.mod +MARKER_FILES += gcry_whirlpool.marker +CLEANFILES += gcry_whirlpool.marker + +gcry_whirlpool.marker: $(gcry_whirlpool_module_SOURCES) $(nodist_gcry_whirlpool_module_SOURCES) + $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gcry_whirlpool_module_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1) + grep 'MARKER' $@.new > $@; rm -f $@.new + +if COND_emu +platform_PROGRAMS += kernel.exec +kernel_exec_SOURCES = +kernel_exec_SOURCES += disk/host.c kern/emu/cache_s.S kern/emu/hostdisk.c osdep/unix/hostdisk.c osdep/exec.c osdep/devmapper/hostdisk.c osdep/hostdisk.c kern/emu/hostfs.c kern/emu/main.c kern/emu/argp_common.c kern/emu/misc.c kern/emu/mm.c kern/emu/time.c kern/emu/cache.c osdep/emuconsole.c osdep/dl.c osdep/sleep.c osdep/init.c osdep/emunet.c osdep/cputime.c term/terminfo.c term/tparm.c commands/extcmd.c lib/arg.c kern/buffer.c kern/command.c kern/corecmd.c kern/device.c kern/disk.c kern/dl.c kern/env.c kern/err.c kern/file.c kern/fs.c kern/list.c kern/main.c kern/misc.c kern/parser.c kern/partition.c kern/rescue_parser.c kern/rescue_reader.c kern/term.c kern/verifiers.c +nodist_kernel_exec_SOURCES = ## platform nodist sources +kernel_exec_LDADD = +kernel_exec_CFLAGS = $(AM_CFLAGS) $(CFLAGS_KERNEL) $(CFLAGS_GNULIB) +kernel_exec_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_KERNEL) -Wl,-r,-d +kernel_exec_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_KERNEL) $(CPPFLAGS_GNULIB) +kernel_exec_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_KERNEL) +kernel_exec_STRIPFLAGS = $(AM_STRIPFLAGS) $(STRIPFLAGS_KERNEL) +kernel_exec_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += video/sm712_init.c video/sis315_init.c kern/arm/cache.S osdep/unix/exec.c osdep/unix/emuconsole.c osdep/windows/emuconsole.c osdep/unix/dl.c osdep/windows/dl.c osdep/linux/emunet.c osdep/basic/emunet.c osdep/unix/cputime.c osdep/windows/cputime.c kern/i386/int.S kern/i386/realmode.S boot/i386/pc/lzma_decode.S kern/mips/cache_flush.S +BUILT_SOURCES += $(nodist_kernel_exec_SOURCES) +CLEANFILES += $(nodist_kernel_exec_SOURCES) +platform_DATA += kernel.img +CLEANFILES += kernel.img + +kernel.img: kernel.exec$(EXEEXT) + if test x$(TARGET_APPLE_LINKER) = x1; then $(TARGET_OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -ed2022 -wd1106 -nu -nd $< $@; elif test ! -z '$(TARGET_OBJ2ELF)'; then $(TARGET_OBJ2ELF) $< $@ || (rm -f $@; exit 1); else cp $< $@; fi +endif + +if COND_i386_pc +platform_PROGRAMS += kernel.exec +kernel_exec_SOURCES = kern/i386/pc/startup.S +kernel_exec_SOURCES += kern/i386/pc/init.c kern/i386/pc/mmap.c term/i386/pc/console.c kern/i386/dl.c kern/i386/tsc.c kern/i386/tsc_pit.c kern/compiler-rt.c kern/mm.c kern/time.c kern/generic/millisleep.c kern/buffer.c kern/command.c kern/corecmd.c kern/device.c kern/disk.c kern/dl.c kern/env.c kern/err.c kern/file.c kern/fs.c kern/list.c kern/main.c kern/misc.c kern/parser.c kern/partition.c kern/rescue_parser.c kern/rescue_reader.c kern/term.c kern/verifiers.c +nodist_kernel_exec_SOURCES = symlist.c ## platform nodist sources +kernel_exec_LDADD = +kernel_exec_CFLAGS = $(AM_CFLAGS) $(CFLAGS_KERNEL) +kernel_exec_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_KERNEL) $(TARGET_IMG_LDFLAGS) $(TARGET_IMG_BASE_LDOPT),0x9000 +kernel_exec_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_KERNEL) +kernel_exec_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_KERNEL) +kernel_exec_STRIPFLAGS = $(AM_STRIPFLAGS) $(STRIPFLAGS_KERNEL) +kernel_exec_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += video/sm712_init.c video/sis315_init.c kern/arm/cache.S osdep/unix/exec.c osdep/unix/emuconsole.c osdep/windows/emuconsole.c osdep/unix/dl.c osdep/windows/dl.c osdep/linux/emunet.c osdep/basic/emunet.c osdep/unix/cputime.c osdep/windows/cputime.c kern/i386/int.S kern/i386/realmode.S boot/i386/pc/lzma_decode.S kern/mips/cache_flush.S +BUILT_SOURCES += $(nodist_kernel_exec_SOURCES) +CLEANFILES += $(nodist_kernel_exec_SOURCES) +platform_DATA += kernel.img +CLEANFILES += kernel.img + +kernel.img: kernel.exec$(EXEEXT) + if test x$(TARGET_APPLE_LINKER) = x1; then $(TARGET_STRIP) -S -x $(kernel_exec) -o $@.bin $<; $(TARGET_OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -ed2022 -ed2016 -wd1106 -nu -nd $@.bin $@; rm -f $@.bin; elif test ! -z '$(TARGET_OBJ2ELF)'; then $(TARGET_STRIP) $(kernel_exec_STRIPFLAGS) -o $@.bin $< && $(TARGET_OBJ2ELF) $@.bin $@ || (rm -f $@; rm -f $@.bin; exit 1); rm -f $@.bin; else $(TARGET_STRIP) $(kernel_exec_STRIPFLAGS) -o $@ $<; fi +endif + +if COND_i386_efi +platform_PROGRAMS += kernel.exec +kernel_exec_SOURCES = kern/i386/efi/startup.S +kernel_exec_SOURCES += kern/i386/efi/tsc.c kern/i386/tsc_pmtimer.c kern/i386/efi/init.c bus/pci.c kern/i386/dl.c kern/i386/tsc.c kern/i386/tsc_pit.c disk/efi/efidisk.c kern/efi/efi.c kern/efi/init.c kern/efi/mm.c term/efi/console.c kern/acpi.c kern/efi/acpi.c kern/efi/sb.c kern/lockdown.c kern/compiler-rt.c kern/mm.c kern/time.c kern/generic/millisleep.c kern/buffer.c kern/command.c kern/corecmd.c kern/device.c kern/disk.c kern/dl.c kern/env.c kern/err.c kern/file.c kern/fs.c kern/list.c kern/main.c kern/misc.c kern/parser.c kern/partition.c kern/rescue_parser.c kern/rescue_reader.c kern/term.c kern/verifiers.c +nodist_kernel_exec_SOURCES = symlist.c ## platform nodist sources +kernel_exec_LDADD = +kernel_exec_CFLAGS = $(AM_CFLAGS) $(CFLAGS_KERNEL) +kernel_exec_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_KERNEL) -Wl,-r,-d +kernel_exec_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_KERNEL) +kernel_exec_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_KERNEL) +kernel_exec_STRIPFLAGS = $(AM_STRIPFLAGS) $(STRIPFLAGS_KERNEL) --strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version +kernel_exec_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += video/sm712_init.c video/sis315_init.c kern/arm/cache.S osdep/unix/exec.c osdep/unix/emuconsole.c osdep/windows/emuconsole.c osdep/unix/dl.c osdep/windows/dl.c osdep/linux/emunet.c osdep/basic/emunet.c osdep/unix/cputime.c osdep/windows/cputime.c kern/i386/int.S kern/i386/realmode.S boot/i386/pc/lzma_decode.S kern/mips/cache_flush.S +BUILT_SOURCES += $(nodist_kernel_exec_SOURCES) +CLEANFILES += $(nodist_kernel_exec_SOURCES) +platform_DATA += kernel.img +CLEANFILES += kernel.img + +kernel.img: kernel.exec$(EXEEXT) + if test x$(TARGET_APPLE_LINKER) = x1; then $(TARGET_STRIP) -S -x $(kernel_exec) -o $@.bin $<; $(TARGET_OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -ed2022 -ed2016 -wd1106 -nu -nd $@.bin $@; rm -f $@.bin; elif test ! -z '$(TARGET_OBJ2ELF)'; then $(TARGET_STRIP) $(kernel_exec_STRIPFLAGS) -o $@.bin $< && $(TARGET_OBJ2ELF) $@.bin $@ || (rm -f $@; rm -f $@.bin; exit 1); rm -f $@.bin; else $(TARGET_STRIP) $(kernel_exec_STRIPFLAGS) -o $@ $<; fi +endif + +if COND_i386_qemu +platform_PROGRAMS += kernel.exec +kernel_exec_SOURCES = kern/i386/qemu/startup.S +kernel_exec_SOURCES += kern/i386/qemu/init.c bus/pci.c kern/vga_init.c kern/i386/qemu/mmap.c term/i386/pc/vga_text.c kern/i386/dl.c kern/i386/tsc.c kern/i386/tsc_pit.c kern/compiler-rt.c kern/mm.c kern/time.c kern/generic/millisleep.c kern/buffer.c kern/command.c kern/corecmd.c kern/device.c kern/disk.c kern/dl.c kern/env.c kern/err.c kern/file.c kern/fs.c kern/list.c kern/main.c kern/misc.c kern/parser.c kern/partition.c kern/rescue_parser.c kern/rescue_reader.c kern/term.c kern/verifiers.c +nodist_kernel_exec_SOURCES = symlist.c ## platform nodist sources +kernel_exec_LDADD = +kernel_exec_CFLAGS = $(AM_CFLAGS) $(CFLAGS_KERNEL) +kernel_exec_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_KERNEL) $(TARGET_IMG_LDFLAGS) $(TARGET_IMG_BASE_LDOPT),0x9000 +kernel_exec_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_KERNEL) -DGRUB_BOOT_MACHINE_LINK_ADDR=$(GRUB_BOOT_MACHINE_LINK_ADDR) +kernel_exec_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_KERNEL) +kernel_exec_STRIPFLAGS = $(AM_STRIPFLAGS) $(STRIPFLAGS_KERNEL) +kernel_exec_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += video/sm712_init.c video/sis315_init.c kern/arm/cache.S osdep/unix/exec.c osdep/unix/emuconsole.c osdep/windows/emuconsole.c osdep/unix/dl.c osdep/windows/dl.c osdep/linux/emunet.c osdep/basic/emunet.c osdep/unix/cputime.c osdep/windows/cputime.c kern/i386/int.S kern/i386/realmode.S boot/i386/pc/lzma_decode.S kern/mips/cache_flush.S +BUILT_SOURCES += $(nodist_kernel_exec_SOURCES) +CLEANFILES += $(nodist_kernel_exec_SOURCES) +platform_DATA += kernel.img +CLEANFILES += kernel.img + +kernel.img: kernel.exec$(EXEEXT) + if test x$(TARGET_APPLE_LINKER) = x1; then $(TARGET_STRIP) -S -x $(kernel_exec) -o $@.bin $<; $(TARGET_OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -ed2022 -ed2016 -wd1106 -nu -nd $@.bin $@; rm -f $@.bin; elif test ! -z '$(TARGET_OBJ2ELF)'; then $(TARGET_STRIP) $(kernel_exec_STRIPFLAGS) -o $@.bin $< && $(TARGET_OBJ2ELF) $@.bin $@ || (rm -f $@; rm -f $@.bin; exit 1); rm -f $@.bin; else $(TARGET_STRIP) $(kernel_exec_STRIPFLAGS) -o $@ $<; fi +endif + +if COND_i386_coreboot +platform_PROGRAMS += kernel.exec +kernel_exec_SOURCES = kern/i386/coreboot/startup.S +kernel_exec_SOURCES += kern/i386/coreboot/init.c kern/i386/pc/acpi.c kern/acpi.c kern/i386/tsc_pmtimer.c kern/i386/coreboot/cbtable.c video/coreboot/cbfb.c kern/coreboot/mmap.c kern/coreboot/cbtable.c term/gfxterm.c font/font.c font/font_cmd.c io/bufio.c video/fb/fbblit.c video/fb/fbfill.c video/fb/fbutil.c video/fb/video_fb.c video/video.c term/i386/pc/vga_text.c kern/i386/dl.c kern/i386/tsc.c kern/i386/tsc_pit.c kern/compiler-rt.c kern/mm.c kern/time.c kern/generic/millisleep.c kern/buffer.c kern/command.c kern/corecmd.c kern/device.c kern/disk.c kern/dl.c kern/env.c kern/err.c kern/file.c kern/fs.c kern/list.c kern/main.c kern/misc.c kern/parser.c kern/partition.c kern/rescue_parser.c kern/rescue_reader.c kern/term.c kern/verifiers.c +nodist_kernel_exec_SOURCES = symlist.c ## platform nodist sources +kernel_exec_LDADD = +kernel_exec_CFLAGS = $(AM_CFLAGS) $(CFLAGS_KERNEL) +kernel_exec_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_KERNEL) $(TARGET_IMG_LDFLAGS) $(TARGET_IMG_BASE_LDOPT),0x9000 +kernel_exec_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_KERNEL) +kernel_exec_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_KERNEL) +kernel_exec_STRIPFLAGS = $(AM_STRIPFLAGS) $(STRIPFLAGS_KERNEL) +kernel_exec_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += video/sm712_init.c video/sis315_init.c kern/arm/cache.S osdep/unix/exec.c osdep/unix/emuconsole.c osdep/windows/emuconsole.c osdep/unix/dl.c osdep/windows/dl.c osdep/linux/emunet.c osdep/basic/emunet.c osdep/unix/cputime.c osdep/windows/cputime.c kern/i386/int.S kern/i386/realmode.S boot/i386/pc/lzma_decode.S kern/mips/cache_flush.S +BUILT_SOURCES += $(nodist_kernel_exec_SOURCES) +CLEANFILES += $(nodist_kernel_exec_SOURCES) +platform_DATA += kernel.img +CLEANFILES += kernel.img + +kernel.img: kernel.exec$(EXEEXT) + if test x$(TARGET_APPLE_LINKER) = x1; then $(TARGET_STRIP) -S -x $(kernel_exec) -o $@.bin $<; $(TARGET_OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -ed2022 -ed2016 -wd1106 -nu -nd $@.bin $@; rm -f $@.bin; elif test ! -z '$(TARGET_OBJ2ELF)'; then $(TARGET_STRIP) $(kernel_exec_STRIPFLAGS) -o $@.bin $< && $(TARGET_OBJ2ELF) $@.bin $@ || (rm -f $@; rm -f $@.bin; exit 1); rm -f $@.bin; else $(TARGET_STRIP) $(kernel_exec_STRIPFLAGS) -o $@ $<; fi +endif + +if COND_i386_multiboot +platform_PROGRAMS += kernel.exec +kernel_exec_SOURCES = kern/i386/coreboot/startup.S +kernel_exec_SOURCES += kern/i386/coreboot/init.c kern/i386/pc/acpi.c kern/acpi.c kern/i386/multiboot_mmap.c term/i386/pc/vga_text.c kern/i386/dl.c kern/i386/tsc.c kern/i386/tsc_pit.c kern/compiler-rt.c kern/mm.c kern/time.c kern/generic/millisleep.c kern/buffer.c kern/command.c kern/corecmd.c kern/device.c kern/disk.c kern/dl.c kern/env.c kern/err.c kern/file.c kern/fs.c kern/list.c kern/main.c kern/misc.c kern/parser.c kern/partition.c kern/rescue_parser.c kern/rescue_reader.c kern/term.c kern/verifiers.c +nodist_kernel_exec_SOURCES = symlist.c ## platform nodist sources +kernel_exec_LDADD = +kernel_exec_CFLAGS = $(AM_CFLAGS) $(CFLAGS_KERNEL) +kernel_exec_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_KERNEL) $(TARGET_IMG_LDFLAGS) $(TARGET_IMG_BASE_LDOPT),0x9000 +kernel_exec_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_KERNEL) +kernel_exec_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_KERNEL) +kernel_exec_STRIPFLAGS = $(AM_STRIPFLAGS) $(STRIPFLAGS_KERNEL) +kernel_exec_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += video/sm712_init.c video/sis315_init.c kern/arm/cache.S osdep/unix/exec.c osdep/unix/emuconsole.c osdep/windows/emuconsole.c osdep/unix/dl.c osdep/windows/dl.c osdep/linux/emunet.c osdep/basic/emunet.c osdep/unix/cputime.c osdep/windows/cputime.c kern/i386/int.S kern/i386/realmode.S boot/i386/pc/lzma_decode.S kern/mips/cache_flush.S +BUILT_SOURCES += $(nodist_kernel_exec_SOURCES) +CLEANFILES += $(nodist_kernel_exec_SOURCES) +platform_DATA += kernel.img +CLEANFILES += kernel.img + +kernel.img: kernel.exec$(EXEEXT) + if test x$(TARGET_APPLE_LINKER) = x1; then $(TARGET_STRIP) -S -x $(kernel_exec) -o $@.bin $<; $(TARGET_OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -ed2022 -ed2016 -wd1106 -nu -nd $@.bin $@; rm -f $@.bin; elif test ! -z '$(TARGET_OBJ2ELF)'; then $(TARGET_STRIP) $(kernel_exec_STRIPFLAGS) -o $@.bin $< && $(TARGET_OBJ2ELF) $@.bin $@ || (rm -f $@; rm -f $@.bin; exit 1); rm -f $@.bin; else $(TARGET_STRIP) $(kernel_exec_STRIPFLAGS) -o $@ $<; fi +endif + +if COND_i386_ieee1275 +platform_PROGRAMS += kernel.exec +kernel_exec_SOURCES = kern/i386/ieee1275/startup.S +kernel_exec_SOURCES += disk/ieee1275/ofdisk.c kern/ieee1275/cmain.c kern/ieee1275/ieee1275.c kern/ieee1275/mmap.c kern/ieee1275/openfw.c term/ieee1275/console.c kern/ieee1275/init.c kern/i386/dl.c kern/i386/tsc.c kern/i386/tsc_pit.c term/terminfo.c term/tparm.c commands/extcmd.c lib/arg.c kern/compiler-rt.c kern/mm.c kern/time.c kern/generic/millisleep.c kern/buffer.c kern/command.c kern/corecmd.c kern/device.c kern/disk.c kern/dl.c kern/env.c kern/err.c kern/file.c kern/fs.c kern/list.c kern/main.c kern/misc.c kern/parser.c kern/partition.c kern/rescue_parser.c kern/rescue_reader.c kern/term.c kern/verifiers.c +nodist_kernel_exec_SOURCES = symlist.c ## platform nodist sources +kernel_exec_LDADD = +kernel_exec_CFLAGS = $(AM_CFLAGS) $(CFLAGS_KERNEL) +kernel_exec_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_KERNEL) $(TARGET_IMG_LDFLAGS) $(TARGET_IMG_BASE_LDOPT),0x10000 +kernel_exec_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_KERNEL) +kernel_exec_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_KERNEL) +kernel_exec_STRIPFLAGS = $(AM_STRIPFLAGS) $(STRIPFLAGS_KERNEL) +kernel_exec_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += video/sm712_init.c video/sis315_init.c kern/arm/cache.S osdep/unix/exec.c osdep/unix/emuconsole.c osdep/windows/emuconsole.c osdep/unix/dl.c osdep/windows/dl.c osdep/linux/emunet.c osdep/basic/emunet.c osdep/unix/cputime.c osdep/windows/cputime.c kern/i386/int.S kern/i386/realmode.S boot/i386/pc/lzma_decode.S kern/mips/cache_flush.S +BUILT_SOURCES += $(nodist_kernel_exec_SOURCES) +CLEANFILES += $(nodist_kernel_exec_SOURCES) +platform_DATA += kernel.img +CLEANFILES += kernel.img + +kernel.img: kernel.exec$(EXEEXT) + if test x$(TARGET_APPLE_LINKER) = x1; then $(TARGET_STRIP) -S -x $(kernel_exec) -o $@.bin $<; $(TARGET_OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -ed2022 -ed2016 -wd1106 -nu -nd $@.bin $@; rm -f $@.bin; elif test ! -z '$(TARGET_OBJ2ELF)'; then $(TARGET_STRIP) $(kernel_exec_STRIPFLAGS) -o $@.bin $< && $(TARGET_OBJ2ELF) $@.bin $@ || (rm -f $@; rm -f $@.bin; exit 1); rm -f $@.bin; else $(TARGET_STRIP) $(kernel_exec_STRIPFLAGS) -o $@ $<; fi +endif + +if COND_x86_64_efi +platform_PROGRAMS += kernel.exec +kernel_exec_SOURCES = kern/x86_64/efi/startup.S +kernel_exec_SOURCES += kern/i386/efi/tsc.c kern/i386/tsc_pmtimer.c kern/x86_64/efi/callwrap.S kern/i386/efi/init.c bus/pci.c kern/x86_64/dl.c kern/i386/tsc.c kern/i386/tsc_pit.c disk/efi/efidisk.c kern/efi/efi.c kern/efi/init.c kern/efi/mm.c term/efi/console.c kern/acpi.c kern/efi/acpi.c kern/efi/sb.c kern/lockdown.c kern/compiler-rt.c kern/mm.c kern/time.c kern/generic/millisleep.c kern/buffer.c kern/command.c kern/corecmd.c kern/device.c kern/disk.c kern/dl.c kern/env.c kern/err.c kern/file.c kern/fs.c kern/list.c kern/main.c kern/misc.c kern/parser.c kern/partition.c kern/rescue_parser.c kern/rescue_reader.c kern/term.c kern/verifiers.c +nodist_kernel_exec_SOURCES = symlist.c ## platform nodist sources +kernel_exec_LDADD = +kernel_exec_CFLAGS = $(AM_CFLAGS) $(CFLAGS_KERNEL) +kernel_exec_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_KERNEL) -Wl,-r,-d +kernel_exec_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_KERNEL) +kernel_exec_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_KERNEL) +kernel_exec_STRIPFLAGS = $(AM_STRIPFLAGS) $(STRIPFLAGS_KERNEL) --strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version +kernel_exec_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += video/sm712_init.c video/sis315_init.c kern/arm/cache.S osdep/unix/exec.c osdep/unix/emuconsole.c osdep/windows/emuconsole.c osdep/unix/dl.c osdep/windows/dl.c osdep/linux/emunet.c osdep/basic/emunet.c osdep/unix/cputime.c osdep/windows/cputime.c kern/i386/int.S kern/i386/realmode.S boot/i386/pc/lzma_decode.S kern/mips/cache_flush.S +BUILT_SOURCES += $(nodist_kernel_exec_SOURCES) +CLEANFILES += $(nodist_kernel_exec_SOURCES) +platform_DATA += kernel.img +CLEANFILES += kernel.img + +kernel.img: kernel.exec$(EXEEXT) + if test x$(TARGET_APPLE_LINKER) = x1; then $(TARGET_STRIP) -S -x $(kernel_exec) -o $@.bin $<; $(TARGET_OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -ed2022 -ed2016 -wd1106 -nu -nd $@.bin $@; rm -f $@.bin; elif test ! -z '$(TARGET_OBJ2ELF)'; then $(TARGET_STRIP) $(kernel_exec_STRIPFLAGS) -o $@.bin $< && $(TARGET_OBJ2ELF) $@.bin $@ || (rm -f $@; rm -f $@.bin; exit 1); rm -f $@.bin; else $(TARGET_STRIP) $(kernel_exec_STRIPFLAGS) -o $@ $<; fi +endif + +if COND_i386_xen +platform_PROGRAMS += kernel.exec +kernel_exec_SOURCES = kern/i386/xen/startup.S +kernel_exec_SOURCES += kern/i386/dl.c kern/i386/xen/hypercall.S kern/i386/tsc.c kern/i386/xen/tsc.c kern/xen/init.c term/xen/console.c disk/xen/xendisk.c commands/boot.c term/terminfo.c term/tparm.c commands/extcmd.c lib/arg.c kern/compiler-rt.c kern/mm.c kern/time.c kern/generic/millisleep.c kern/buffer.c kern/command.c kern/corecmd.c kern/device.c kern/disk.c kern/dl.c kern/env.c kern/err.c kern/file.c kern/fs.c kern/list.c kern/main.c kern/misc.c kern/parser.c kern/partition.c kern/rescue_parser.c kern/rescue_reader.c kern/term.c kern/verifiers.c +nodist_kernel_exec_SOURCES = symlist.c ## platform nodist sources +kernel_exec_LDADD = +kernel_exec_CFLAGS = $(AM_CFLAGS) $(CFLAGS_KERNEL) +kernel_exec_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_KERNEL) $(TARGET_IMG_LDFLAGS) $(TARGET_IMG_BASE_LDOPT),0 +kernel_exec_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_KERNEL) +kernel_exec_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_KERNEL) +kernel_exec_STRIPFLAGS = $(AM_STRIPFLAGS) $(STRIPFLAGS_KERNEL) +kernel_exec_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += video/sm712_init.c video/sis315_init.c kern/arm/cache.S osdep/unix/exec.c osdep/unix/emuconsole.c osdep/windows/emuconsole.c osdep/unix/dl.c osdep/windows/dl.c osdep/linux/emunet.c osdep/basic/emunet.c osdep/unix/cputime.c osdep/windows/cputime.c kern/i386/int.S kern/i386/realmode.S boot/i386/pc/lzma_decode.S kern/mips/cache_flush.S +BUILT_SOURCES += $(nodist_kernel_exec_SOURCES) +CLEANFILES += $(nodist_kernel_exec_SOURCES) +platform_DATA += kernel.img +CLEANFILES += kernel.img + +kernel.img: kernel.exec$(EXEEXT) + if test x$(TARGET_APPLE_LINKER) = x1; then $(TARGET_STRIP) -S -x $(kernel_exec) -o $@.bin $<; $(TARGET_OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -ed2022 -ed2016 -wd1106 -nu -nd $@.bin $@; rm -f $@.bin; elif test ! -z '$(TARGET_OBJ2ELF)'; then $(TARGET_STRIP) $(kernel_exec_STRIPFLAGS) -o $@.bin $< && $(TARGET_OBJ2ELF) $@.bin $@ || (rm -f $@; rm -f $@.bin; exit 1); rm -f $@.bin; else $(TARGET_STRIP) $(kernel_exec_STRIPFLAGS) -o $@ $<; fi +endif + +if COND_x86_64_xen +platform_PROGRAMS += kernel.exec +kernel_exec_SOURCES = kern/x86_64/xen/startup.S +kernel_exec_SOURCES += kern/x86_64/dl.c kern/x86_64/xen/hypercall.S kern/i386/tsc.c kern/i386/xen/tsc.c kern/xen/init.c term/xen/console.c disk/xen/xendisk.c commands/boot.c term/terminfo.c term/tparm.c commands/extcmd.c lib/arg.c kern/compiler-rt.c kern/mm.c kern/time.c kern/generic/millisleep.c kern/buffer.c kern/command.c kern/corecmd.c kern/device.c kern/disk.c kern/dl.c kern/env.c kern/err.c kern/file.c kern/fs.c kern/list.c kern/main.c kern/misc.c kern/parser.c kern/partition.c kern/rescue_parser.c kern/rescue_reader.c kern/term.c kern/verifiers.c +nodist_kernel_exec_SOURCES = symlist.c ## platform nodist sources +kernel_exec_LDADD = +kernel_exec_CFLAGS = $(AM_CFLAGS) $(CFLAGS_KERNEL) +kernel_exec_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_KERNEL) $(TARGET_IMG_LDFLAGS) $(TARGET_IMG_BASE_LDOPT),0 +kernel_exec_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_KERNEL) +kernel_exec_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_KERNEL) +kernel_exec_STRIPFLAGS = $(AM_STRIPFLAGS) $(STRIPFLAGS_KERNEL) +kernel_exec_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += video/sm712_init.c video/sis315_init.c kern/arm/cache.S osdep/unix/exec.c osdep/unix/emuconsole.c osdep/windows/emuconsole.c osdep/unix/dl.c osdep/windows/dl.c osdep/linux/emunet.c osdep/basic/emunet.c osdep/unix/cputime.c osdep/windows/cputime.c kern/i386/int.S kern/i386/realmode.S boot/i386/pc/lzma_decode.S kern/mips/cache_flush.S +BUILT_SOURCES += $(nodist_kernel_exec_SOURCES) +CLEANFILES += $(nodist_kernel_exec_SOURCES) +platform_DATA += kernel.img +CLEANFILES += kernel.img + +kernel.img: kernel.exec$(EXEEXT) + if test x$(TARGET_APPLE_LINKER) = x1; then $(TARGET_STRIP) -S -x $(kernel_exec) -o $@.bin $<; $(TARGET_OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -ed2022 -ed2016 -wd1106 -nu -nd $@.bin $@; rm -f $@.bin; elif test ! -z '$(TARGET_OBJ2ELF)'; then $(TARGET_STRIP) $(kernel_exec_STRIPFLAGS) -o $@.bin $< && $(TARGET_OBJ2ELF) $@.bin $@ || (rm -f $@; rm -f $@.bin; exit 1); rm -f $@.bin; else $(TARGET_STRIP) $(kernel_exec_STRIPFLAGS) -o $@ $<; fi +endif + +if COND_i386_xen_pvh +platform_PROGRAMS += kernel.exec +kernel_exec_SOURCES = kern/i386/xen/startup_pvh.S +kernel_exec_SOURCES += kern/i386/dl.c commands/boot.c disk/xen/xendisk.c kern/i386/tsc.c kern/i386/xen/tsc.c kern/i386/xen/pvh.c kern/xen/init.c term/xen/console.c term/terminfo.c term/tparm.c commands/extcmd.c lib/arg.c kern/compiler-rt.c kern/mm.c kern/time.c kern/generic/millisleep.c kern/buffer.c kern/command.c kern/corecmd.c kern/device.c kern/disk.c kern/dl.c kern/env.c kern/err.c kern/file.c kern/fs.c kern/list.c kern/main.c kern/misc.c kern/parser.c kern/partition.c kern/rescue_parser.c kern/rescue_reader.c kern/term.c kern/verifiers.c +nodist_kernel_exec_SOURCES = symlist.c ## platform nodist sources +kernel_exec_LDADD = +kernel_exec_CFLAGS = $(AM_CFLAGS) $(CFLAGS_KERNEL) +kernel_exec_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_KERNEL) $(TARGET_IMG_LDFLAGS) $(TARGET_IMG_BASE_LDOPT),0x100000 +kernel_exec_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_KERNEL) +kernel_exec_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_KERNEL) +kernel_exec_STRIPFLAGS = $(AM_STRIPFLAGS) $(STRIPFLAGS_KERNEL) +kernel_exec_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += video/sm712_init.c video/sis315_init.c kern/arm/cache.S osdep/unix/exec.c osdep/unix/emuconsole.c osdep/windows/emuconsole.c osdep/unix/dl.c osdep/windows/dl.c osdep/linux/emunet.c osdep/basic/emunet.c osdep/unix/cputime.c osdep/windows/cputime.c kern/i386/int.S kern/i386/realmode.S boot/i386/pc/lzma_decode.S kern/mips/cache_flush.S +BUILT_SOURCES += $(nodist_kernel_exec_SOURCES) +CLEANFILES += $(nodist_kernel_exec_SOURCES) +platform_DATA += kernel.img +CLEANFILES += kernel.img + +kernel.img: kernel.exec$(EXEEXT) + if test x$(TARGET_APPLE_LINKER) = x1; then $(TARGET_STRIP) -S -x $(kernel_exec) -o $@.bin $<; $(TARGET_OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -ed2022 -ed2016 -wd1106 -nu -nd $@.bin $@; rm -f $@.bin; elif test ! -z '$(TARGET_OBJ2ELF)'; then $(TARGET_STRIP) $(kernel_exec_STRIPFLAGS) -o $@.bin $< && $(TARGET_OBJ2ELF) $@.bin $@ || (rm -f $@; rm -f $@.bin; exit 1); rm -f $@.bin; else $(TARGET_STRIP) $(kernel_exec_STRIPFLAGS) -o $@ $<; fi +endif + +if COND_mips_loongson +platform_PROGRAMS += kernel.exec +kernel_exec_SOURCES = kern/mips/startup.S +kernel_exec_SOURCES += term/ns8250.c bus/bonito.c bus/cs5536.c bus/pci.c kern/mips/loongson/init.c term/at_keyboard.c term/ps2.c commands/boot.c term/serial.c video/sm712.c video/sis315pro.c video/radeon_fuloong2e.c video/radeon_yeeloong3a.c commands/keylayouts.c term/gfxterm.c font/font.c font/font_cmd.c io/bufio.c video/fb/fbblit.c video/fb/fbfill.c video/fb/fbutil.c video/fb/video_fb.c video/video.c kern/generic/rtc_get_time_ms.c kern/mips/cache.S kern/mips/dl.c kern/mips/init.c term/terminfo.c term/tparm.c commands/extcmd.c lib/arg.c kern/compiler-rt.c kern/mm.c kern/time.c kern/generic/millisleep.c kern/buffer.c kern/command.c kern/corecmd.c kern/device.c kern/disk.c kern/dl.c kern/env.c kern/err.c kern/file.c kern/fs.c kern/list.c kern/main.c kern/misc.c kern/parser.c kern/partition.c kern/rescue_parser.c kern/rescue_reader.c kern/term.c kern/verifiers.c +nodist_kernel_exec_SOURCES = symlist.c ## platform nodist sources +kernel_exec_LDADD = +kernel_exec_CFLAGS = $(AM_CFLAGS) $(CFLAGS_KERNEL) +kernel_exec_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_KERNEL) -Wl,-Ttext,0x80200000 +kernel_exec_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_KERNEL) +kernel_exec_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_KERNEL) +kernel_exec_STRIPFLAGS = $(AM_STRIPFLAGS) $(STRIPFLAGS_KERNEL) +kernel_exec_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += video/sm712_init.c video/sis315_init.c kern/arm/cache.S osdep/unix/exec.c osdep/unix/emuconsole.c osdep/windows/emuconsole.c osdep/unix/dl.c osdep/windows/dl.c osdep/linux/emunet.c osdep/basic/emunet.c osdep/unix/cputime.c osdep/windows/cputime.c kern/i386/int.S kern/i386/realmode.S boot/i386/pc/lzma_decode.S kern/mips/cache_flush.S +BUILT_SOURCES += $(nodist_kernel_exec_SOURCES) +CLEANFILES += $(nodist_kernel_exec_SOURCES) +platform_DATA += kernel.img +CLEANFILES += kernel.img + +kernel.img: kernel.exec$(EXEEXT) + if test x$(TARGET_APPLE_LINKER) = x1; then $(TARGET_STRIP) -S -x $(kernel_exec) -o $@.bin $<; $(TARGET_OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -ed2022 -ed2016 -wd1106 -nu -nd $@.bin $@; rm -f $@.bin; elif test ! -z '$(TARGET_OBJ2ELF)'; then $(TARGET_STRIP) $(kernel_exec_STRIPFLAGS) -o $@.bin $< && $(TARGET_OBJ2ELF) $@.bin $@ || (rm -f $@; rm -f $@.bin; exit 1); rm -f $@.bin; else $(TARGET_STRIP) $(kernel_exec_STRIPFLAGS) -o $@ $<; fi +endif + +if COND_sparc64_ieee1275 +platform_PROGRAMS += kernel.exec +kernel_exec_SOURCES = kern/sparc64/ieee1275/crt0.S +kernel_exec_SOURCES += kern/sparc64/cache.S kern/sparc64/dl.c kern/sparc64/ieee1275/ieee1275.c disk/ieee1275/obdisk.c disk/ieee1275/ofdisk.c kern/ieee1275/cmain.c kern/ieee1275/ieee1275.c kern/ieee1275/mmap.c kern/ieee1275/openfw.c term/ieee1275/console.c kern/ieee1275/init.c term/terminfo.c term/tparm.c commands/extcmd.c lib/arg.c kern/compiler-rt.c kern/mm.c kern/time.c kern/generic/millisleep.c kern/buffer.c kern/command.c kern/corecmd.c kern/device.c kern/disk.c kern/dl.c kern/env.c kern/err.c kern/file.c kern/fs.c kern/list.c kern/main.c kern/misc.c kern/parser.c kern/partition.c kern/rescue_parser.c kern/rescue_reader.c kern/term.c kern/verifiers.c +nodist_kernel_exec_SOURCES = symlist.c ## platform nodist sources +kernel_exec_LDADD = +kernel_exec_CFLAGS = $(AM_CFLAGS) $(CFLAGS_KERNEL) +kernel_exec_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_KERNEL) -Wl,-Ttext,0x4400 +kernel_exec_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_KERNEL) +kernel_exec_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_KERNEL) +kernel_exec_STRIPFLAGS = $(AM_STRIPFLAGS) $(STRIPFLAGS_KERNEL) +kernel_exec_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += video/sm712_init.c video/sis315_init.c kern/arm/cache.S osdep/unix/exec.c osdep/unix/emuconsole.c osdep/windows/emuconsole.c osdep/unix/dl.c osdep/windows/dl.c osdep/linux/emunet.c osdep/basic/emunet.c osdep/unix/cputime.c osdep/windows/cputime.c kern/i386/int.S kern/i386/realmode.S boot/i386/pc/lzma_decode.S kern/mips/cache_flush.S +BUILT_SOURCES += $(nodist_kernel_exec_SOURCES) +CLEANFILES += $(nodist_kernel_exec_SOURCES) +platform_DATA += kernel.img +CLEANFILES += kernel.img + +kernel.img: kernel.exec$(EXEEXT) + if test x$(TARGET_APPLE_LINKER) = x1; then $(TARGET_STRIP) -S -x $(kernel_exec) -o $@.bin $<; $(TARGET_OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -ed2022 -ed2016 -wd1106 -nu -nd $@.bin $@; rm -f $@.bin; elif test ! -z '$(TARGET_OBJ2ELF)'; then $(TARGET_STRIP) $(kernel_exec_STRIPFLAGS) -o $@.bin $< && $(TARGET_OBJ2ELF) $@.bin $@ || (rm -f $@; rm -f $@.bin; exit 1); rm -f $@.bin; else $(TARGET_STRIP) $(kernel_exec_STRIPFLAGS) -o $@ $<; fi +endif + +if COND_powerpc_ieee1275 +platform_PROGRAMS += kernel.exec +kernel_exec_SOURCES = kern/powerpc/ieee1275/startup.S +kernel_exec_SOURCES += kern/powerpc/cache.S kern/powerpc/dl.c kern/powerpc/compiler-rt.S disk/ieee1275/ofdisk.c kern/ieee1275/cmain.c kern/ieee1275/ieee1275.c kern/ieee1275/mmap.c kern/ieee1275/openfw.c term/ieee1275/console.c kern/ieee1275/init.c term/terminfo.c term/tparm.c commands/extcmd.c lib/arg.c kern/compiler-rt.c kern/mm.c kern/time.c kern/generic/millisleep.c kern/buffer.c kern/command.c kern/corecmd.c kern/device.c kern/disk.c kern/dl.c kern/env.c kern/err.c kern/file.c kern/fs.c kern/list.c kern/main.c kern/misc.c kern/parser.c kern/partition.c kern/rescue_parser.c kern/rescue_reader.c kern/term.c kern/verifiers.c +nodist_kernel_exec_SOURCES = symlist.c ## platform nodist sources +kernel_exec_LDADD = +kernel_exec_CFLAGS = $(AM_CFLAGS) $(CFLAGS_KERNEL) +kernel_exec_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_KERNEL) -Wl,-Ttext,0x200000 +kernel_exec_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_KERNEL) +kernel_exec_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_KERNEL) +kernel_exec_STRIPFLAGS = $(AM_STRIPFLAGS) $(STRIPFLAGS_KERNEL) +kernel_exec_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += video/sm712_init.c video/sis315_init.c kern/arm/cache.S osdep/unix/exec.c osdep/unix/emuconsole.c osdep/windows/emuconsole.c osdep/unix/dl.c osdep/windows/dl.c osdep/linux/emunet.c osdep/basic/emunet.c osdep/unix/cputime.c osdep/windows/cputime.c kern/i386/int.S kern/i386/realmode.S boot/i386/pc/lzma_decode.S kern/mips/cache_flush.S +BUILT_SOURCES += $(nodist_kernel_exec_SOURCES) +CLEANFILES += $(nodist_kernel_exec_SOURCES) +platform_DATA += kernel.img +CLEANFILES += kernel.img + +kernel.img: kernel.exec$(EXEEXT) + if test x$(TARGET_APPLE_LINKER) = x1; then $(TARGET_STRIP) -S -x $(kernel_exec) -o $@.bin $<; $(TARGET_OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -ed2022 -ed2016 -wd1106 -nu -nd $@.bin $@; rm -f $@.bin; elif test ! -z '$(TARGET_OBJ2ELF)'; then $(TARGET_STRIP) $(kernel_exec_STRIPFLAGS) -o $@.bin $< && $(TARGET_OBJ2ELF) $@.bin $@ || (rm -f $@; rm -f $@.bin; exit 1); rm -f $@.bin; else $(TARGET_STRIP) $(kernel_exec_STRIPFLAGS) -o $@ $<; fi +endif + +if COND_mips_arc +platform_PROGRAMS += kernel.exec +kernel_exec_SOURCES = kern/mips/startup.S +kernel_exec_SOURCES += kern/mips/arc/init.c term/arc/console.c disk/arc/arcdisk.c kern/generic/rtc_get_time_ms.c kern/mips/cache.S kern/mips/dl.c kern/mips/init.c term/terminfo.c term/tparm.c commands/extcmd.c lib/arg.c kern/compiler-rt.c kern/mm.c kern/time.c kern/generic/millisleep.c kern/buffer.c kern/command.c kern/corecmd.c kern/device.c kern/disk.c kern/dl.c kern/env.c kern/err.c kern/file.c kern/fs.c kern/list.c kern/main.c kern/misc.c kern/parser.c kern/partition.c kern/rescue_parser.c kern/rescue_reader.c kern/term.c kern/verifiers.c +nodist_kernel_exec_SOURCES = symlist.c ## platform nodist sources +kernel_exec_LDADD = +kernel_exec_CFLAGS = $(AM_CFLAGS) $(CFLAGS_KERNEL) +kernel_exec_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_KERNEL) -Wl,-Ttext,$(TARGET_LINK_ADDR) +kernel_exec_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_KERNEL) -DGRUB_DECOMPRESSOR_LINK_ADDR=$(TARGET_DECOMPRESSOR_LINK_ADDR) +kernel_exec_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_KERNEL) +kernel_exec_STRIPFLAGS = $(AM_STRIPFLAGS) $(STRIPFLAGS_KERNEL) +kernel_exec_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += video/sm712_init.c video/sis315_init.c kern/arm/cache.S osdep/unix/exec.c osdep/unix/emuconsole.c osdep/windows/emuconsole.c osdep/unix/dl.c osdep/windows/dl.c osdep/linux/emunet.c osdep/basic/emunet.c osdep/unix/cputime.c osdep/windows/cputime.c kern/i386/int.S kern/i386/realmode.S boot/i386/pc/lzma_decode.S kern/mips/cache_flush.S +BUILT_SOURCES += $(nodist_kernel_exec_SOURCES) +CLEANFILES += $(nodist_kernel_exec_SOURCES) +platform_DATA += kernel.img +CLEANFILES += kernel.img + +kernel.img: kernel.exec$(EXEEXT) + if test x$(TARGET_APPLE_LINKER) = x1; then $(TARGET_STRIP) -S -x $(kernel_exec) -o $@.bin $<; $(TARGET_OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -ed2022 -ed2016 -wd1106 -nu -nd $@.bin $@; rm -f $@.bin; elif test ! -z '$(TARGET_OBJ2ELF)'; then $(TARGET_STRIP) $(kernel_exec_STRIPFLAGS) -o $@.bin $< && $(TARGET_OBJ2ELF) $@.bin $@ || (rm -f $@; rm -f $@.bin; exit 1); rm -f $@.bin; else $(TARGET_STRIP) $(kernel_exec_STRIPFLAGS) -o $@ $<; fi +endif + +if COND_ia64_efi +platform_PROGRAMS += kernel.exec +kernel_exec_SOURCES = +kernel_exec_SOURCES += kern/ia64/efi/startup.S kern/ia64/efi/init.c kern/ia64/dl.c kern/ia64/dl_helper.c kern/ia64/cache.c lib/division.c disk/efi/efidisk.c kern/efi/efi.c kern/efi/init.c kern/efi/mm.c term/efi/console.c kern/acpi.c kern/efi/acpi.c kern/efi/sb.c kern/lockdown.c kern/compiler-rt.c kern/mm.c kern/time.c kern/generic/millisleep.c kern/buffer.c kern/command.c kern/corecmd.c kern/device.c kern/disk.c kern/dl.c kern/env.c kern/err.c kern/file.c kern/fs.c kern/list.c kern/main.c kern/misc.c kern/parser.c kern/partition.c kern/rescue_parser.c kern/rescue_reader.c kern/term.c kern/verifiers.c +nodist_kernel_exec_SOURCES = symlist.c ## platform nodist sources +kernel_exec_LDADD = +kernel_exec_CFLAGS = $(AM_CFLAGS) $(CFLAGS_KERNEL) -fno-builtin -fpic -minline-int-divide-max-throughput +kernel_exec_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_KERNEL) -Wl,-r,-d +kernel_exec_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_KERNEL) +kernel_exec_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_KERNEL) +kernel_exec_STRIPFLAGS = $(AM_STRIPFLAGS) $(STRIPFLAGS_KERNEL) --strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version +kernel_exec_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += video/sm712_init.c video/sis315_init.c kern/arm/cache.S osdep/unix/exec.c osdep/unix/emuconsole.c osdep/windows/emuconsole.c osdep/unix/dl.c osdep/windows/dl.c osdep/linux/emunet.c osdep/basic/emunet.c osdep/unix/cputime.c osdep/windows/cputime.c kern/i386/int.S kern/i386/realmode.S boot/i386/pc/lzma_decode.S kern/mips/cache_flush.S +BUILT_SOURCES += $(nodist_kernel_exec_SOURCES) +CLEANFILES += $(nodist_kernel_exec_SOURCES) +platform_DATA += kernel.img +CLEANFILES += kernel.img + +kernel.img: kernel.exec$(EXEEXT) + if test x$(TARGET_APPLE_LINKER) = x1; then $(TARGET_STRIP) -S -x $(kernel_exec) -o $@.bin $<; $(TARGET_OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -ed2022 -ed2016 -wd1106 -nu -nd $@.bin $@; rm -f $@.bin; elif test ! -z '$(TARGET_OBJ2ELF)'; then $(TARGET_STRIP) $(kernel_exec_STRIPFLAGS) -o $@.bin $< && $(TARGET_OBJ2ELF) $@.bin $@ || (rm -f $@; rm -f $@.bin; exit 1); rm -f $@.bin; else $(TARGET_STRIP) $(kernel_exec_STRIPFLAGS) -o $@ $<; fi +endif + +if COND_mips_qemu_mips +platform_PROGRAMS += kernel.exec +kernel_exec_SOURCES = kern/mips/startup.S +kernel_exec_SOURCES += kern/mips/qemu_mips/init.c term/ns8250.c term/serial.c term/at_keyboard.c term/ps2.c commands/boot.c commands/keylayouts.c term/i386/pc/vga_text.c kern/vga_init.c kern/generic/rtc_get_time_ms.c kern/mips/cache.S kern/mips/dl.c kern/mips/init.c term/terminfo.c term/tparm.c commands/extcmd.c lib/arg.c kern/compiler-rt.c kern/mm.c kern/time.c kern/generic/millisleep.c kern/buffer.c kern/command.c kern/corecmd.c kern/device.c kern/disk.c kern/dl.c kern/env.c kern/err.c kern/file.c kern/fs.c kern/list.c kern/main.c kern/misc.c kern/parser.c kern/partition.c kern/rescue_parser.c kern/rescue_reader.c kern/term.c kern/verifiers.c +nodist_kernel_exec_SOURCES = symlist.c ## platform nodist sources +kernel_exec_LDADD = +kernel_exec_CFLAGS = $(AM_CFLAGS) $(CFLAGS_KERNEL) +kernel_exec_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_KERNEL) -Wl,-Ttext,0x80200000 +kernel_exec_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_KERNEL) +kernel_exec_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_KERNEL) +kernel_exec_STRIPFLAGS = $(AM_STRIPFLAGS) $(STRIPFLAGS_KERNEL) +kernel_exec_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += video/sm712_init.c video/sis315_init.c kern/arm/cache.S osdep/unix/exec.c osdep/unix/emuconsole.c osdep/windows/emuconsole.c osdep/unix/dl.c osdep/windows/dl.c osdep/linux/emunet.c osdep/basic/emunet.c osdep/unix/cputime.c osdep/windows/cputime.c kern/i386/int.S kern/i386/realmode.S boot/i386/pc/lzma_decode.S kern/mips/cache_flush.S +BUILT_SOURCES += $(nodist_kernel_exec_SOURCES) +CLEANFILES += $(nodist_kernel_exec_SOURCES) +platform_DATA += kernel.img +CLEANFILES += kernel.img + +kernel.img: kernel.exec$(EXEEXT) + if test x$(TARGET_APPLE_LINKER) = x1; then $(TARGET_STRIP) -S -x $(kernel_exec) -o $@.bin $<; $(TARGET_OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -ed2022 -ed2016 -wd1106 -nu -nd $@.bin $@; rm -f $@.bin; elif test ! -z '$(TARGET_OBJ2ELF)'; then $(TARGET_STRIP) $(kernel_exec_STRIPFLAGS) -o $@.bin $< && $(TARGET_OBJ2ELF) $@.bin $@ || (rm -f $@; rm -f $@.bin; exit 1); rm -f $@.bin; else $(TARGET_STRIP) $(kernel_exec_STRIPFLAGS) -o $@ $<; fi +endif + +if COND_arm_uboot +platform_PROGRAMS += kernel.exec +kernel_exec_SOURCES = kern/arm/startup.S +kernel_exec_SOURCES += kern/arm/uboot/init.c kern/arm/uboot/uboot.S disk/uboot/ubootdisk.c kern/uboot/uboot.c kern/uboot/init.c kern/uboot/hw.c term/uboot/console.c kern/arm/dl.c kern/arm/dl_helper.c kern/arm/cache_armv6.S kern/arm/cache_armv7.S kern/arm/cache.c kern/arm/compiler-rt.S lib/division.c term/terminfo.c term/tparm.c commands/extcmd.c lib/arg.c kern/compiler-rt.c kern/mm.c kern/time.c kern/generic/millisleep.c kern/buffer.c kern/command.c kern/corecmd.c kern/device.c kern/disk.c kern/dl.c kern/env.c kern/err.c kern/file.c kern/fs.c kern/list.c kern/main.c kern/misc.c kern/parser.c kern/partition.c kern/rescue_parser.c kern/rescue_reader.c kern/term.c kern/verifiers.c +nodist_kernel_exec_SOURCES = symlist.c ## platform nodist sources +kernel_exec_LDADD = +kernel_exec_CFLAGS = $(AM_CFLAGS) $(CFLAGS_KERNEL) +kernel_exec_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_KERNEL) -Wl,-r,-d +kernel_exec_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_KERNEL) +kernel_exec_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_KERNEL) +kernel_exec_STRIPFLAGS = $(AM_STRIPFLAGS) $(STRIPFLAGS_KERNEL) --strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version +kernel_exec_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += video/sm712_init.c video/sis315_init.c kern/arm/cache.S osdep/unix/exec.c osdep/unix/emuconsole.c osdep/windows/emuconsole.c osdep/unix/dl.c osdep/windows/dl.c osdep/linux/emunet.c osdep/basic/emunet.c osdep/unix/cputime.c osdep/windows/cputime.c kern/i386/int.S kern/i386/realmode.S boot/i386/pc/lzma_decode.S kern/mips/cache_flush.S +BUILT_SOURCES += $(nodist_kernel_exec_SOURCES) +CLEANFILES += $(nodist_kernel_exec_SOURCES) +platform_DATA += kernel.img +CLEANFILES += kernel.img + +kernel.img: kernel.exec$(EXEEXT) + if test x$(TARGET_APPLE_LINKER) = x1; then $(TARGET_STRIP) -S -x $(kernel_exec) -o $@.bin $<; $(TARGET_OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -ed2022 -ed2016 -wd1106 -nu -nd $@.bin $@; rm -f $@.bin; elif test ! -z '$(TARGET_OBJ2ELF)'; then $(TARGET_STRIP) $(kernel_exec_STRIPFLAGS) -o $@.bin $< && $(TARGET_OBJ2ELF) $@.bin $@ || (rm -f $@; rm -f $@.bin; exit 1); rm -f $@.bin; else $(TARGET_STRIP) $(kernel_exec_STRIPFLAGS) -o $@ $<; fi +endif + +if COND_arm_efi +platform_PROGRAMS += kernel.exec +kernel_exec_SOURCES = kern/arm/efi/startup.S +kernel_exec_SOURCES += kern/arm/efi/init.c kern/efi/fdt.c kern/arm/dl.c kern/arm/dl_helper.c kern/arm/cache_armv6.S kern/arm/cache_armv7.S kern/arm/cache.c kern/arm/compiler-rt.S lib/division.c disk/efi/efidisk.c kern/efi/efi.c kern/efi/init.c kern/efi/mm.c term/efi/console.c kern/acpi.c kern/efi/acpi.c kern/efi/sb.c kern/lockdown.c kern/compiler-rt.c kern/mm.c kern/time.c kern/generic/millisleep.c kern/buffer.c kern/command.c kern/corecmd.c kern/device.c kern/disk.c kern/dl.c kern/env.c kern/err.c kern/file.c kern/fs.c kern/list.c kern/main.c kern/misc.c kern/parser.c kern/partition.c kern/rescue_parser.c kern/rescue_reader.c kern/term.c kern/verifiers.c +nodist_kernel_exec_SOURCES = symlist.c ## platform nodist sources +kernel_exec_LDADD = +kernel_exec_CFLAGS = $(AM_CFLAGS) $(CFLAGS_KERNEL) +kernel_exec_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_KERNEL) -Wl,-r,-d +kernel_exec_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_KERNEL) +kernel_exec_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_KERNEL) +kernel_exec_STRIPFLAGS = $(AM_STRIPFLAGS) $(STRIPFLAGS_KERNEL) --strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version +kernel_exec_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += video/sm712_init.c video/sis315_init.c kern/arm/cache.S osdep/unix/exec.c osdep/unix/emuconsole.c osdep/windows/emuconsole.c osdep/unix/dl.c osdep/windows/dl.c osdep/linux/emunet.c osdep/basic/emunet.c osdep/unix/cputime.c osdep/windows/cputime.c kern/i386/int.S kern/i386/realmode.S boot/i386/pc/lzma_decode.S kern/mips/cache_flush.S +BUILT_SOURCES += $(nodist_kernel_exec_SOURCES) +CLEANFILES += $(nodist_kernel_exec_SOURCES) +platform_DATA += kernel.img +CLEANFILES += kernel.img + +kernel.img: kernel.exec$(EXEEXT) + if test x$(TARGET_APPLE_LINKER) = x1; then $(TARGET_STRIP) -S -x $(kernel_exec) -o $@.bin $<; $(TARGET_OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -ed2022 -ed2016 -wd1106 -nu -nd $@.bin $@; rm -f $@.bin; elif test ! -z '$(TARGET_OBJ2ELF)'; then $(TARGET_STRIP) $(kernel_exec_STRIPFLAGS) -o $@.bin $< && $(TARGET_OBJ2ELF) $@.bin $@ || (rm -f $@; rm -f $@.bin; exit 1); rm -f $@.bin; else $(TARGET_STRIP) $(kernel_exec_STRIPFLAGS) -o $@ $<; fi +endif + +if COND_arm64_efi +platform_PROGRAMS += kernel.exec +kernel_exec_SOURCES = kern/arm64/efi/startup.S +kernel_exec_SOURCES += kern/arm64/efi/init.c kern/efi/fdt.c kern/arm64/cache.c kern/arm64/cache_flush.S kern/arm64/dl.c kern/arm64/dl_helper.c disk/efi/efidisk.c kern/efi/efi.c kern/efi/init.c kern/efi/mm.c term/efi/console.c kern/acpi.c kern/efi/acpi.c kern/efi/sb.c kern/lockdown.c kern/compiler-rt.c kern/mm.c kern/time.c kern/generic/millisleep.c kern/buffer.c kern/command.c kern/corecmd.c kern/device.c kern/disk.c kern/dl.c kern/env.c kern/err.c kern/file.c kern/fs.c kern/list.c kern/main.c kern/misc.c kern/parser.c kern/partition.c kern/rescue_parser.c kern/rescue_reader.c kern/term.c kern/verifiers.c +nodist_kernel_exec_SOURCES = symlist.c ## platform nodist sources +kernel_exec_LDADD = +kernel_exec_CFLAGS = $(AM_CFLAGS) $(CFLAGS_KERNEL) +kernel_exec_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_KERNEL) -Wl,-r,-d +kernel_exec_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_KERNEL) +kernel_exec_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_KERNEL) +kernel_exec_STRIPFLAGS = $(AM_STRIPFLAGS) $(STRIPFLAGS_KERNEL) --strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version -R .eh_frame +kernel_exec_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += video/sm712_init.c video/sis315_init.c kern/arm/cache.S osdep/unix/exec.c osdep/unix/emuconsole.c osdep/windows/emuconsole.c osdep/unix/dl.c osdep/windows/dl.c osdep/linux/emunet.c osdep/basic/emunet.c osdep/unix/cputime.c osdep/windows/cputime.c kern/i386/int.S kern/i386/realmode.S boot/i386/pc/lzma_decode.S kern/mips/cache_flush.S +BUILT_SOURCES += $(nodist_kernel_exec_SOURCES) +CLEANFILES += $(nodist_kernel_exec_SOURCES) +platform_DATA += kernel.img +CLEANFILES += kernel.img + +kernel.img: kernel.exec$(EXEEXT) + if test x$(TARGET_APPLE_LINKER) = x1; then $(TARGET_STRIP) -S -x $(kernel_exec) -o $@.bin $<; $(TARGET_OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -ed2022 -ed2016 -wd1106 -nu -nd $@.bin $@; rm -f $@.bin; elif test ! -z '$(TARGET_OBJ2ELF)'; then $(TARGET_STRIP) $(kernel_exec_STRIPFLAGS) -o $@.bin $< && $(TARGET_OBJ2ELF) $@.bin $@ || (rm -f $@; rm -f $@.bin; exit 1); rm -f $@.bin; else $(TARGET_STRIP) $(kernel_exec_STRIPFLAGS) -o $@ $<; fi +endif + +if COND_arm_coreboot +platform_PROGRAMS += kernel.exec +kernel_exec_SOURCES = kern/arm/startup.S +kernel_exec_SOURCES += kern/arm/coreboot/init.c kern/arm/coreboot/timer.c kern/arm/coreboot/coreboot.S lib/fdt.c bus/fdt.c term/ps2.c term/arm/pl050.c term/arm/cros.c term/arm/cros_ec.c bus/spi/rk3288_spi.c commands/keylayouts.c kern/arm/coreboot/dma.c kern/arm/coreboot/cbtable.c video/coreboot/cbfb.c kern/coreboot/mmap.c kern/coreboot/cbtable.c term/gfxterm.c font/font.c font/font_cmd.c io/bufio.c video/fb/fbblit.c video/fb/fbfill.c video/fb/fbutil.c video/fb/video_fb.c video/video.c kern/arm/dl.c kern/arm/dl_helper.c kern/arm/cache_armv6.S kern/arm/cache_armv7.S kern/arm/cache.c kern/arm/compiler-rt.S lib/division.c kern/compiler-rt.c kern/mm.c kern/time.c kern/generic/millisleep.c kern/buffer.c kern/command.c kern/corecmd.c kern/device.c kern/disk.c kern/dl.c kern/env.c kern/err.c kern/file.c kern/fs.c kern/list.c kern/main.c kern/misc.c kern/parser.c kern/partition.c kern/rescue_parser.c kern/rescue_reader.c kern/term.c kern/verifiers.c +nodist_kernel_exec_SOURCES = symlist.c ## platform nodist sources +kernel_exec_LDADD = +kernel_exec_CFLAGS = $(AM_CFLAGS) $(CFLAGS_KERNEL) +kernel_exec_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_KERNEL) -Wl,-r,-d +kernel_exec_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_KERNEL) +kernel_exec_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_KERNEL) +kernel_exec_STRIPFLAGS = $(AM_STRIPFLAGS) $(STRIPFLAGS_KERNEL) --strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version +kernel_exec_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += video/sm712_init.c video/sis315_init.c kern/arm/cache.S osdep/unix/exec.c osdep/unix/emuconsole.c osdep/windows/emuconsole.c osdep/unix/dl.c osdep/windows/dl.c osdep/linux/emunet.c osdep/basic/emunet.c osdep/unix/cputime.c osdep/windows/cputime.c kern/i386/int.S kern/i386/realmode.S boot/i386/pc/lzma_decode.S kern/mips/cache_flush.S +BUILT_SOURCES += $(nodist_kernel_exec_SOURCES) +CLEANFILES += $(nodist_kernel_exec_SOURCES) +platform_DATA += kernel.img +CLEANFILES += kernel.img + +kernel.img: kernel.exec$(EXEEXT) + if test x$(TARGET_APPLE_LINKER) = x1; then $(TARGET_STRIP) -S -x $(kernel_exec) -o $@.bin $<; $(TARGET_OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -ed2022 -ed2016 -wd1106 -nu -nd $@.bin $@; rm -f $@.bin; elif test ! -z '$(TARGET_OBJ2ELF)'; then $(TARGET_STRIP) $(kernel_exec_STRIPFLAGS) -o $@.bin $< && $(TARGET_OBJ2ELF) $@.bin $@ || (rm -f $@; rm -f $@.bin; exit 1); rm -f $@.bin; else $(TARGET_STRIP) $(kernel_exec_STRIPFLAGS) -o $@ $<; fi +endif + +if COND_riscv32_efi +platform_PROGRAMS += kernel.exec +kernel_exec_SOURCES = kern/riscv/efi/startup.S +kernel_exec_SOURCES += kern/riscv/efi/init.c kern/efi/fdt.c kern/riscv/cache.c kern/riscv/cache_flush.S kern/riscv/dl.c lib/division.c disk/efi/efidisk.c kern/efi/efi.c kern/efi/init.c kern/efi/mm.c term/efi/console.c kern/acpi.c kern/efi/acpi.c kern/efi/sb.c kern/lockdown.c kern/compiler-rt.c kern/mm.c kern/time.c kern/generic/millisleep.c kern/buffer.c kern/command.c kern/corecmd.c kern/device.c kern/disk.c kern/dl.c kern/env.c kern/err.c kern/file.c kern/fs.c kern/list.c kern/main.c kern/misc.c kern/parser.c kern/partition.c kern/rescue_parser.c kern/rescue_reader.c kern/term.c kern/verifiers.c +nodist_kernel_exec_SOURCES = symlist.c ## platform nodist sources +kernel_exec_LDADD = +kernel_exec_CFLAGS = $(AM_CFLAGS) $(CFLAGS_KERNEL) +kernel_exec_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_KERNEL) -Wl,-r,-d +kernel_exec_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_KERNEL) +kernel_exec_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_KERNEL) +kernel_exec_STRIPFLAGS = $(AM_STRIPFLAGS) $(STRIPFLAGS_KERNEL) --strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version -R .eh_frame +kernel_exec_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += video/sm712_init.c video/sis315_init.c kern/arm/cache.S osdep/unix/exec.c osdep/unix/emuconsole.c osdep/windows/emuconsole.c osdep/unix/dl.c osdep/windows/dl.c osdep/linux/emunet.c osdep/basic/emunet.c osdep/unix/cputime.c osdep/windows/cputime.c kern/i386/int.S kern/i386/realmode.S boot/i386/pc/lzma_decode.S kern/mips/cache_flush.S +BUILT_SOURCES += $(nodist_kernel_exec_SOURCES) +CLEANFILES += $(nodist_kernel_exec_SOURCES) +platform_DATA += kernel.img +CLEANFILES += kernel.img + +kernel.img: kernel.exec$(EXEEXT) + if test x$(TARGET_APPLE_LINKER) = x1; then $(TARGET_STRIP) -S -x $(kernel_exec) -o $@.bin $<; $(TARGET_OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -ed2022 -ed2016 -wd1106 -nu -nd $@.bin $@; rm -f $@.bin; elif test ! -z '$(TARGET_OBJ2ELF)'; then $(TARGET_STRIP) $(kernel_exec_STRIPFLAGS) -o $@.bin $< && $(TARGET_OBJ2ELF) $@.bin $@ || (rm -f $@; rm -f $@.bin; exit 1); rm -f $@.bin; else $(TARGET_STRIP) $(kernel_exec_STRIPFLAGS) -o $@ $<; fi +endif + +if COND_riscv64_efi +platform_PROGRAMS += kernel.exec +kernel_exec_SOURCES = kern/riscv/efi/startup.S +kernel_exec_SOURCES += kern/riscv/efi/init.c kern/efi/fdt.c kern/riscv/cache.c kern/riscv/cache_flush.S kern/riscv/dl.c disk/efi/efidisk.c kern/efi/efi.c kern/efi/init.c kern/efi/mm.c term/efi/console.c kern/acpi.c kern/efi/acpi.c kern/efi/sb.c kern/lockdown.c kern/compiler-rt.c kern/mm.c kern/time.c kern/generic/millisleep.c kern/buffer.c kern/command.c kern/corecmd.c kern/device.c kern/disk.c kern/dl.c kern/env.c kern/err.c kern/file.c kern/fs.c kern/list.c kern/main.c kern/misc.c kern/parser.c kern/partition.c kern/rescue_parser.c kern/rescue_reader.c kern/term.c kern/verifiers.c +nodist_kernel_exec_SOURCES = symlist.c ## platform nodist sources +kernel_exec_LDADD = +kernel_exec_CFLAGS = $(AM_CFLAGS) $(CFLAGS_KERNEL) +kernel_exec_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_KERNEL) -Wl,-r,-d +kernel_exec_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_KERNEL) +kernel_exec_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_KERNEL) +kernel_exec_STRIPFLAGS = $(AM_STRIPFLAGS) $(STRIPFLAGS_KERNEL) --strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version -R .eh_frame +kernel_exec_DEPENDENCIES = $(TARGET_OBJ2ELF) +dist_noinst_DATA += video/sm712_init.c video/sis315_init.c kern/arm/cache.S osdep/unix/exec.c osdep/unix/emuconsole.c osdep/windows/emuconsole.c osdep/unix/dl.c osdep/windows/dl.c osdep/linux/emunet.c osdep/basic/emunet.c osdep/unix/cputime.c osdep/windows/cputime.c kern/i386/int.S kern/i386/realmode.S boot/i386/pc/lzma_decode.S kern/mips/cache_flush.S +BUILT_SOURCES += $(nodist_kernel_exec_SOURCES) +CLEANFILES += $(nodist_kernel_exec_SOURCES) +platform_DATA += kernel.img +CLEANFILES += kernel.img + +kernel.img: kernel.exec$(EXEEXT) + if test x$(TARGET_APPLE_LINKER) = x1; then $(TARGET_STRIP) -S -x $(kernel_exec) -o $@.bin $<; $(TARGET_OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -ed2022 -ed2016 -wd1106 -nu -nd $@.bin $@; rm -f $@.bin; elif test ! -z '$(TARGET_OBJ2ELF)'; then $(TARGET_STRIP) $(kernel_exec_STRIPFLAGS) -o $@.bin $< && $(TARGET_OBJ2ELF) $@.bin $@ || (rm -f $@; rm -f $@.bin; exit 1); rm -f $@.bin; else $(TARGET_STRIP) $(kernel_exec_STRIPFLAGS) -o $@ $<; fi +endif + +if COND_i386_pc +platform_PROGRAMS += boot.image +boot_image_SOURCES = boot/i386/pc/boot.S +nodist_boot_image_SOURCES = ## platform nodist sources +boot_image_LDADD = +boot_image_CFLAGS = $(AM_CFLAGS) $(CFLAGS_IMAGE) +boot_image_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_IMAGE) $(TARGET_IMG_LDFLAGS) $(TARGET_IMG_BASE_LDOPT),0x7C00 +boot_image_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_IMAGE) +boot_image_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_IMAGE) +boot_image_OBJCOPYFLAGS = $(OBJCOPYFLAGS_IMAGE) -O binary +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_boot_image_SOURCES) +CLEANFILES += $(nodist_boot_image_SOURCES) +platform_DATA += boot.img +CLEANFILES += boot.img + +boot.img: boot.image$(EXEEXT) + if test x$(TARGET_APPLE_LINKER) = x1; then $(MACHO2IMG) $< $@; else $(TARGET_OBJCOPY) $(boot_image_OBJCOPYFLAGS) --strip-unneeded -R .note -R .comment -R .note.gnu.build-id -R .MIPS.abiflags -R .reginfo -R .rel.dyn -R .note.gnu.gold-version -R .note.gnu.property -R .ARM.exidx $< $@; fi + +endif + +if COND_i386_qemu +platform_PROGRAMS += boot.image +boot_image_SOURCES = boot/i386/qemu/boot.S +nodist_boot_image_SOURCES = ## platform nodist sources +boot_image_LDADD = +boot_image_CFLAGS = $(AM_CFLAGS) $(CFLAGS_IMAGE) +boot_image_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_IMAGE) $(TARGET_IMG_LDFLAGS) $(TARGET_IMG_BASE_LDOPT),$(GRUB_BOOT_MACHINE_LINK_ADDR) +boot_image_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_IMAGE) +boot_image_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_IMAGE) -DGRUB_BOOT_MACHINE_LINK_ADDR=$(GRUB_BOOT_MACHINE_LINK_ADDR) +boot_image_OBJCOPYFLAGS = $(OBJCOPYFLAGS_IMAGE) -O binary +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_boot_image_SOURCES) +CLEANFILES += $(nodist_boot_image_SOURCES) +platform_DATA += boot.img +CLEANFILES += boot.img + +boot.img: boot.image$(EXEEXT) + if test x$(TARGET_APPLE_LINKER) = x1; then $(MACHO2IMG) $< $@; else $(TARGET_OBJCOPY) $(boot_image_OBJCOPYFLAGS) --strip-unneeded -R .note -R .comment -R .note.gnu.build-id -R .MIPS.abiflags -R .reginfo -R .rel.dyn -R .note.gnu.gold-version -R .note.gnu.property -R .ARM.exidx $< $@; fi + +endif + +if COND_sparc64_ieee1275 +platform_PROGRAMS += boot.image +boot_image_SOURCES = boot/sparc64/ieee1275/boot.S +nodist_boot_image_SOURCES = ## platform nodist sources +boot_image_LDADD = +boot_image_CFLAGS = $(AM_CFLAGS) $(CFLAGS_IMAGE) +boot_image_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_IMAGE) -Wl,-Ttext=0x3fe0 +boot_image_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_IMAGE) +boot_image_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_IMAGE) +boot_image_OBJCOPYFLAGS = $(OBJCOPYFLAGS_IMAGE) -O binary +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_boot_image_SOURCES) +CLEANFILES += $(nodist_boot_image_SOURCES) +platform_DATA += boot.img +CLEANFILES += boot.img + +boot.img: boot.image$(EXEEXT) + if test x$(TARGET_APPLE_LINKER) = x1; then $(MACHO2IMG) $< $@; else $(TARGET_OBJCOPY) $(boot_image_OBJCOPYFLAGS) --strip-unneeded -R .note -R .comment -R .note.gnu.build-id -R .MIPS.abiflags -R .reginfo -R .rel.dyn -R .note.gnu.gold-version -R .note.gnu.property -R .ARM.exidx $< $@; fi + +endif + +if COND_i386_pc +platform_PROGRAMS += boot_hybrid.image +boot_hybrid_image_SOURCES = boot/i386/pc/boot.S +nodist_boot_hybrid_image_SOURCES = ## platform nodist sources +boot_hybrid_image_LDADD = +boot_hybrid_image_CFLAGS = $(AM_CFLAGS) $(CFLAGS_IMAGE) +boot_hybrid_image_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_IMAGE) $(TARGET_IMG_LDFLAGS) $(TARGET_IMG_BASE_LDOPT),0x7C00 +boot_hybrid_image_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_IMAGE) -DHYBRID_BOOT=1 +boot_hybrid_image_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_IMAGE) +boot_hybrid_image_OBJCOPYFLAGS = $(OBJCOPYFLAGS_IMAGE) -O binary +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_boot_hybrid_image_SOURCES) +CLEANFILES += $(nodist_boot_hybrid_image_SOURCES) +platform_DATA += boot_hybrid.img +CLEANFILES += boot_hybrid.img + +boot_hybrid.img: boot_hybrid.image$(EXEEXT) + if test x$(TARGET_APPLE_LINKER) = x1; then $(MACHO2IMG) $< $@; else $(TARGET_OBJCOPY) $(boot_hybrid_image_OBJCOPYFLAGS) --strip-unneeded -R .note -R .comment -R .note.gnu.build-id -R .MIPS.abiflags -R .reginfo -R .rel.dyn -R .note.gnu.gold-version -R .note.gnu.property -R .ARM.exidx $< $@; fi + +endif + +if COND_i386_pc +platform_PROGRAMS += cdboot.image +cdboot_image_SOURCES = boot/i386/pc/cdboot.S +nodist_cdboot_image_SOURCES = ## platform nodist sources +cdboot_image_LDADD = +cdboot_image_CFLAGS = $(AM_CFLAGS) $(CFLAGS_IMAGE) +cdboot_image_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_IMAGE) $(TARGET_IMG_LDFLAGS) $(TARGET_IMG_BASE_LDOPT),0x7C00 +cdboot_image_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_IMAGE) +cdboot_image_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_IMAGE) +cdboot_image_OBJCOPYFLAGS = $(OBJCOPYFLAGS_IMAGE) -O binary +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cdboot_image_SOURCES) +CLEANFILES += $(nodist_cdboot_image_SOURCES) +platform_DATA += cdboot.img +CLEANFILES += cdboot.img + +cdboot.img: cdboot.image$(EXEEXT) + if test x$(TARGET_APPLE_LINKER) = x1; then $(MACHO2IMG) $< $@; else $(TARGET_OBJCOPY) $(cdboot_image_OBJCOPYFLAGS) --strip-unneeded -R .note -R .comment -R .note.gnu.build-id -R .MIPS.abiflags -R .reginfo -R .rel.dyn -R .note.gnu.gold-version -R .note.gnu.property -R .ARM.exidx $< $@; fi + +endif + +if COND_sparc64_ieee1275 +platform_PROGRAMS += cdboot.image +cdboot_image_SOURCES = boot/sparc64/ieee1275/boot.S +nodist_cdboot_image_SOURCES = ## platform nodist sources +cdboot_image_LDADD = +cdboot_image_CFLAGS = $(AM_CFLAGS) $(CFLAGS_IMAGE) +cdboot_image_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_IMAGE) -Wl,-Ttext=0x3fe0 +cdboot_image_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_IMAGE) -DCDBOOT=1 +cdboot_image_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_IMAGE) +cdboot_image_OBJCOPYFLAGS = $(OBJCOPYFLAGS_IMAGE) -O binary +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_cdboot_image_SOURCES) +CLEANFILES += $(nodist_cdboot_image_SOURCES) +platform_DATA += cdboot.img +CLEANFILES += cdboot.img + +cdboot.img: cdboot.image$(EXEEXT) + if test x$(TARGET_APPLE_LINKER) = x1; then $(MACHO2IMG) $< $@; else $(TARGET_OBJCOPY) $(cdboot_image_OBJCOPYFLAGS) --strip-unneeded -R .note -R .comment -R .note.gnu.build-id -R .MIPS.abiflags -R .reginfo -R .rel.dyn -R .note.gnu.gold-version -R .note.gnu.property -R .ARM.exidx $< $@; fi + +endif + +if COND_i386_pc +platform_PROGRAMS += pxeboot.image +pxeboot_image_SOURCES = boot/i386/pc/pxeboot.S +nodist_pxeboot_image_SOURCES = ## platform nodist sources +pxeboot_image_LDADD = +pxeboot_image_CFLAGS = $(AM_CFLAGS) $(CFLAGS_IMAGE) +pxeboot_image_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_IMAGE) $(TARGET_IMG_LDFLAGS) $(TARGET_IMG_BASE_LDOPT),0x7C00 +pxeboot_image_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_IMAGE) +pxeboot_image_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_IMAGE) +pxeboot_image_OBJCOPYFLAGS = $(OBJCOPYFLAGS_IMAGE) -O binary +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_pxeboot_image_SOURCES) +CLEANFILES += $(nodist_pxeboot_image_SOURCES) +platform_DATA += pxeboot.img +CLEANFILES += pxeboot.img + +pxeboot.img: pxeboot.image$(EXEEXT) + if test x$(TARGET_APPLE_LINKER) = x1; then $(MACHO2IMG) $< $@; else $(TARGET_OBJCOPY) $(pxeboot_image_OBJCOPYFLAGS) --strip-unneeded -R .note -R .comment -R .note.gnu.build-id -R .MIPS.abiflags -R .reginfo -R .rel.dyn -R .note.gnu.gold-version -R .note.gnu.property -R .ARM.exidx $< $@; fi + +endif + +if COND_i386_pc +platform_PROGRAMS += diskboot.image +diskboot_image_SOURCES = boot/i386/pc/diskboot.S +nodist_diskboot_image_SOURCES = ## platform nodist sources +diskboot_image_LDADD = +diskboot_image_CFLAGS = $(AM_CFLAGS) $(CFLAGS_IMAGE) +diskboot_image_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_IMAGE) $(TARGET_IMG_LDFLAGS) $(TARGET_IMG_BASE_LDOPT),0x8000 +diskboot_image_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_IMAGE) +diskboot_image_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_IMAGE) +diskboot_image_OBJCOPYFLAGS = $(OBJCOPYFLAGS_IMAGE) -O binary +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_diskboot_image_SOURCES) +CLEANFILES += $(nodist_diskboot_image_SOURCES) +platform_DATA += diskboot.img +CLEANFILES += diskboot.img + +diskboot.img: diskboot.image$(EXEEXT) + if test x$(TARGET_APPLE_LINKER) = x1; then $(MACHO2IMG) $< $@; else $(TARGET_OBJCOPY) $(diskboot_image_OBJCOPYFLAGS) --strip-unneeded -R .note -R .comment -R .note.gnu.build-id -R .MIPS.abiflags -R .reginfo -R .rel.dyn -R .note.gnu.gold-version -R .note.gnu.property -R .ARM.exidx $< $@; fi + +endif + +if COND_sparc64_ieee1275 +platform_PROGRAMS += diskboot.image +diskboot_image_SOURCES = boot/sparc64/ieee1275/diskboot.S +nodist_diskboot_image_SOURCES = ## platform nodist sources +diskboot_image_LDADD = +diskboot_image_CFLAGS = $(AM_CFLAGS) $(CFLAGS_IMAGE) +diskboot_image_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_IMAGE) -Wl,-Ttext=0x4200 +diskboot_image_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_IMAGE) +diskboot_image_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_IMAGE) +diskboot_image_OBJCOPYFLAGS = $(OBJCOPYFLAGS_IMAGE) -O binary +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_diskboot_image_SOURCES) +CLEANFILES += $(nodist_diskboot_image_SOURCES) +platform_DATA += diskboot.img +CLEANFILES += diskboot.img + +diskboot.img: diskboot.image$(EXEEXT) + if test x$(TARGET_APPLE_LINKER) = x1; then $(MACHO2IMG) $< $@; else $(TARGET_OBJCOPY) $(diskboot_image_OBJCOPYFLAGS) --strip-unneeded -R .note -R .comment -R .note.gnu.build-id -R .MIPS.abiflags -R .reginfo -R .rel.dyn -R .note.gnu.gold-version -R .note.gnu.property -R .ARM.exidx $< $@; fi + +endif + +if COND_i386_pc +platform_PROGRAMS += lnxboot.image +lnxboot_image_SOURCES = boot/i386/pc/lnxboot.S +nodist_lnxboot_image_SOURCES = ## platform nodist sources +lnxboot_image_LDADD = +lnxboot_image_CFLAGS = $(AM_CFLAGS) $(CFLAGS_IMAGE) +lnxboot_image_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_IMAGE) $(TARGET_IMG_LDFLAGS) $(TARGET_IMG_BASE_LDOPT),0x6000 +lnxboot_image_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_IMAGE) +lnxboot_image_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_IMAGE) +lnxboot_image_OBJCOPYFLAGS = $(OBJCOPYFLAGS_IMAGE) -O binary +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lnxboot_image_SOURCES) +CLEANFILES += $(nodist_lnxboot_image_SOURCES) +platform_DATA += lnxboot.img +CLEANFILES += lnxboot.img + +lnxboot.img: lnxboot.image$(EXEEXT) + if test x$(TARGET_APPLE_LINKER) = x1; then $(MACHO2IMG) $< $@; else $(TARGET_OBJCOPY) $(lnxboot_image_OBJCOPYFLAGS) --strip-unneeded -R .note -R .comment -R .note.gnu.build-id -R .MIPS.abiflags -R .reginfo -R .rel.dyn -R .note.gnu.gold-version -R .note.gnu.property -R .ARM.exidx $< $@; fi + +endif + +if COND_mips_loongson +platform_PROGRAMS += xz_decompress.image +xz_decompress_image_SOURCES = boot/mips/startup_raw.S boot/decompressor/minilib.c boot/decompressor/xz.c lib/xzembed/xz_dec_bcj.c lib/xzembed/xz_dec_lzma2.c lib/xzembed/xz_dec_stream.c kern/compiler-rt.c +nodist_xz_decompress_image_SOURCES = ## platform nodist sources +xz_decompress_image_LDADD = +xz_decompress_image_CFLAGS = $(AM_CFLAGS) $(CFLAGS_IMAGE) -Wno-unreachable-code +xz_decompress_image_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_IMAGE) -Wl,-Ttext,$(TARGET_DECOMPRESSOR_LINK_ADDR) +xz_decompress_image_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_IMAGE) -I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/xzembed -DGRUB_EMBED_DECOMPRESSOR=1 +xz_decompress_image_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_IMAGE) +xz_decompress_image_OBJCOPYFLAGS = $(OBJCOPYFLAGS_IMAGE) -O binary +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_xz_decompress_image_SOURCES) +CLEANFILES += $(nodist_xz_decompress_image_SOURCES) +platform_DATA += xz_decompress.img +CLEANFILES += xz_decompress.img + +xz_decompress.img: xz_decompress.image$(EXEEXT) + if test x$(TARGET_APPLE_LINKER) = x1; then $(MACHO2IMG) $< $@; else $(TARGET_OBJCOPY) $(xz_decompress_image_OBJCOPYFLAGS) --strip-unneeded -R .note -R .comment -R .note.gnu.build-id -R .MIPS.abiflags -R .reginfo -R .rel.dyn -R .note.gnu.gold-version -R .note.gnu.property -R .ARM.exidx $< $@; fi + +endif + +if COND_mips_arc +platform_PROGRAMS += xz_decompress.image +xz_decompress_image_SOURCES = boot/mips/startup_raw.S boot/decompressor/minilib.c boot/decompressor/xz.c lib/xzembed/xz_dec_bcj.c lib/xzembed/xz_dec_lzma2.c lib/xzembed/xz_dec_stream.c kern/compiler-rt.c +nodist_xz_decompress_image_SOURCES = ## platform nodist sources +xz_decompress_image_LDADD = +xz_decompress_image_CFLAGS = $(AM_CFLAGS) $(CFLAGS_IMAGE) -Wno-unreachable-code +xz_decompress_image_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_IMAGE) -Wl,-Ttext,$(TARGET_DECOMPRESSOR_LINK_ADDR) +xz_decompress_image_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_IMAGE) -I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/xzembed -DGRUB_EMBED_DECOMPRESSOR=1 +xz_decompress_image_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_IMAGE) +xz_decompress_image_OBJCOPYFLAGS = $(OBJCOPYFLAGS_IMAGE) -O binary +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_xz_decompress_image_SOURCES) +CLEANFILES += $(nodist_xz_decompress_image_SOURCES) +platform_DATA += xz_decompress.img +CLEANFILES += xz_decompress.img + +xz_decompress.img: xz_decompress.image$(EXEEXT) + if test x$(TARGET_APPLE_LINKER) = x1; then $(MACHO2IMG) $< $@; else $(TARGET_OBJCOPY) $(xz_decompress_image_OBJCOPYFLAGS) --strip-unneeded -R .note -R .comment -R .note.gnu.build-id -R .MIPS.abiflags -R .reginfo -R .rel.dyn -R .note.gnu.gold-version -R .note.gnu.property -R .ARM.exidx $< $@; fi + +endif + +if COND_mips_qemu_mips +platform_PROGRAMS += xz_decompress.image +xz_decompress_image_SOURCES = boot/mips/startup_raw.S boot/decompressor/minilib.c boot/decompressor/xz.c lib/xzembed/xz_dec_bcj.c lib/xzembed/xz_dec_lzma2.c lib/xzembed/xz_dec_stream.c kern/compiler-rt.c +nodist_xz_decompress_image_SOURCES = ## platform nodist sources +xz_decompress_image_LDADD = +xz_decompress_image_CFLAGS = $(AM_CFLAGS) $(CFLAGS_IMAGE) -Wno-unreachable-code +xz_decompress_image_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_IMAGE) -Wl,-Ttext,$(TARGET_DECOMPRESSOR_LINK_ADDR) +xz_decompress_image_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_IMAGE) -I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/xzembed -DGRUB_EMBED_DECOMPRESSOR=1 +xz_decompress_image_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_IMAGE) +xz_decompress_image_OBJCOPYFLAGS = $(OBJCOPYFLAGS_IMAGE) -O binary +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_xz_decompress_image_SOURCES) +CLEANFILES += $(nodist_xz_decompress_image_SOURCES) +platform_DATA += xz_decompress.img +CLEANFILES += xz_decompress.img + +xz_decompress.img: xz_decompress.image$(EXEEXT) + if test x$(TARGET_APPLE_LINKER) = x1; then $(MACHO2IMG) $< $@; else $(TARGET_OBJCOPY) $(xz_decompress_image_OBJCOPYFLAGS) --strip-unneeded -R .note -R .comment -R .note.gnu.build-id -R .MIPS.abiflags -R .reginfo -R .rel.dyn -R .note.gnu.gold-version -R .note.gnu.property -R .ARM.exidx $< $@; fi + +endif + +if COND_mips_loongson +platform_PROGRAMS += none_decompress.image +none_decompress_image_SOURCES = boot/mips/startup_raw.S boot/decompressor/none.c +nodist_none_decompress_image_SOURCES = ## platform nodist sources +none_decompress_image_LDADD = +none_decompress_image_CFLAGS = $(AM_CFLAGS) $(CFLAGS_IMAGE) +none_decompress_image_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_IMAGE) -Wl,-Ttext,$(TARGET_DECOMPRESSOR_LINK_ADDR) +none_decompress_image_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_IMAGE) -DGRUB_EMBED_DECOMPRESSOR=1 +none_decompress_image_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_IMAGE) +none_decompress_image_OBJCOPYFLAGS = $(OBJCOPYFLAGS_IMAGE) -O binary +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_none_decompress_image_SOURCES) +CLEANFILES += $(nodist_none_decompress_image_SOURCES) +platform_DATA += none_decompress.img +CLEANFILES += none_decompress.img + +none_decompress.img: none_decompress.image$(EXEEXT) + if test x$(TARGET_APPLE_LINKER) = x1; then $(MACHO2IMG) $< $@; else $(TARGET_OBJCOPY) $(none_decompress_image_OBJCOPYFLAGS) --strip-unneeded -R .note -R .comment -R .note.gnu.build-id -R .MIPS.abiflags -R .reginfo -R .rel.dyn -R .note.gnu.gold-version -R .note.gnu.property -R .ARM.exidx $< $@; fi + +endif + +if COND_mips_arc +platform_PROGRAMS += none_decompress.image +none_decompress_image_SOURCES = boot/mips/startup_raw.S boot/decompressor/none.c +nodist_none_decompress_image_SOURCES = ## platform nodist sources +none_decompress_image_LDADD = +none_decompress_image_CFLAGS = $(AM_CFLAGS) $(CFLAGS_IMAGE) +none_decompress_image_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_IMAGE) -Wl,-Ttext,$(TARGET_DECOMPRESSOR_LINK_ADDR) +none_decompress_image_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_IMAGE) -DGRUB_EMBED_DECOMPRESSOR=1 +none_decompress_image_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_IMAGE) +none_decompress_image_OBJCOPYFLAGS = $(OBJCOPYFLAGS_IMAGE) -O binary +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_none_decompress_image_SOURCES) +CLEANFILES += $(nodist_none_decompress_image_SOURCES) +platform_DATA += none_decompress.img +CLEANFILES += none_decompress.img + +none_decompress.img: none_decompress.image$(EXEEXT) + if test x$(TARGET_APPLE_LINKER) = x1; then $(MACHO2IMG) $< $@; else $(TARGET_OBJCOPY) $(none_decompress_image_OBJCOPYFLAGS) --strip-unneeded -R .note -R .comment -R .note.gnu.build-id -R .MIPS.abiflags -R .reginfo -R .rel.dyn -R .note.gnu.gold-version -R .note.gnu.property -R .ARM.exidx $< $@; fi + +endif + +if COND_mips_qemu_mips +platform_PROGRAMS += none_decompress.image +none_decompress_image_SOURCES = boot/mips/startup_raw.S boot/decompressor/none.c +nodist_none_decompress_image_SOURCES = ## platform nodist sources +none_decompress_image_LDADD = +none_decompress_image_CFLAGS = $(AM_CFLAGS) $(CFLAGS_IMAGE) +none_decompress_image_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_IMAGE) -Wl,-Ttext,$(TARGET_DECOMPRESSOR_LINK_ADDR) +none_decompress_image_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_IMAGE) -DGRUB_EMBED_DECOMPRESSOR=1 +none_decompress_image_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_IMAGE) +none_decompress_image_OBJCOPYFLAGS = $(OBJCOPYFLAGS_IMAGE) -O binary +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_none_decompress_image_SOURCES) +CLEANFILES += $(nodist_none_decompress_image_SOURCES) +platform_DATA += none_decompress.img +CLEANFILES += none_decompress.img + +none_decompress.img: none_decompress.image$(EXEEXT) + if test x$(TARGET_APPLE_LINKER) = x1; then $(MACHO2IMG) $< $@; else $(TARGET_OBJCOPY) $(none_decompress_image_OBJCOPYFLAGS) --strip-unneeded -R .note -R .comment -R .note.gnu.build-id -R .MIPS.abiflags -R .reginfo -R .rel.dyn -R .note.gnu.gold-version -R .note.gnu.property -R .ARM.exidx $< $@; fi + +endif + +if COND_i386_pc +platform_PROGRAMS += lzma_decompress.image +lzma_decompress_image_SOURCES = boot/i386/pc/startup_raw.S +nodist_lzma_decompress_image_SOURCES = rs_decoder.h ## platform nodist sources +lzma_decompress_image_LDADD = +lzma_decompress_image_CFLAGS = $(AM_CFLAGS) $(CFLAGS_IMAGE) +lzma_decompress_image_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_IMAGE) $(TARGET_IMG_LDFLAGS) $(TARGET_IMG_BASE_LDOPT),0x8200 +lzma_decompress_image_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_IMAGE) +lzma_decompress_image_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_IMAGE) +lzma_decompress_image_OBJCOPYFLAGS = $(OBJCOPYFLAGS_IMAGE) -O binary +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_lzma_decompress_image_SOURCES) +CLEANFILES += $(nodist_lzma_decompress_image_SOURCES) +platform_DATA += lzma_decompress.img +CLEANFILES += lzma_decompress.img + +lzma_decompress.img: lzma_decompress.image$(EXEEXT) + if test x$(TARGET_APPLE_LINKER) = x1; then $(MACHO2IMG) $< $@; else $(TARGET_OBJCOPY) $(lzma_decompress_image_OBJCOPYFLAGS) --strip-unneeded -R .note -R .comment -R .note.gnu.build-id -R .MIPS.abiflags -R .reginfo -R .rel.dyn -R .note.gnu.gold-version -R .note.gnu.property -R .ARM.exidx $< $@; fi + +endif + +if COND_mips_loongson +platform_PROGRAMS += fwstart.image +fwstart_image_SOURCES = boot/mips/loongson/fwstart.S +nodist_fwstart_image_SOURCES = ## platform nodist sources +fwstart_image_LDADD = +fwstart_image_CFLAGS = $(AM_CFLAGS) $(CFLAGS_IMAGE) +fwstart_image_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_IMAGE) -Wl,-N,-S,-Ttext,0xbfc00000,-Bstatic +fwstart_image_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_IMAGE) +fwstart_image_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_IMAGE) +fwstart_image_OBJCOPYFLAGS = $(OBJCOPYFLAGS_IMAGE) -O binary +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_fwstart_image_SOURCES) +CLEANFILES += $(nodist_fwstart_image_SOURCES) +platform_DATA += fwstart.img +CLEANFILES += fwstart.img + +fwstart.img: fwstart.image$(EXEEXT) + if test x$(TARGET_APPLE_LINKER) = x1; then $(MACHO2IMG) $< $@; else $(TARGET_OBJCOPY) $(fwstart_image_OBJCOPYFLAGS) --strip-unneeded -R .note -R .comment -R .note.gnu.build-id -R .MIPS.abiflags -R .reginfo -R .rel.dyn -R .note.gnu.gold-version -R .note.gnu.property -R .ARM.exidx $< $@; fi + +endif + +if COND_mips_loongson +platform_PROGRAMS += fwstart_fuloong2f.image +fwstart_fuloong2f_image_SOURCES = boot/mips/loongson/fuloong2f.S +nodist_fwstart_fuloong2f_image_SOURCES = ## platform nodist sources +fwstart_fuloong2f_image_LDADD = +fwstart_fuloong2f_image_CFLAGS = $(AM_CFLAGS) $(CFLAGS_IMAGE) +fwstart_fuloong2f_image_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_IMAGE) -Wl,-N,-S,-Ttext,0xbfc00000,-Bstatic +fwstart_fuloong2f_image_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_IMAGE) +fwstart_fuloong2f_image_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_IMAGE) +fwstart_fuloong2f_image_OBJCOPYFLAGS = $(OBJCOPYFLAGS_IMAGE) -O binary +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_fwstart_fuloong2f_image_SOURCES) +CLEANFILES += $(nodist_fwstart_fuloong2f_image_SOURCES) +platform_DATA += fwstart_fuloong2f.img +CLEANFILES += fwstart_fuloong2f.img + +fwstart_fuloong2f.img: fwstart_fuloong2f.image$(EXEEXT) + if test x$(TARGET_APPLE_LINKER) = x1; then $(MACHO2IMG) $< $@; else $(TARGET_OBJCOPY) $(fwstart_fuloong2f_image_OBJCOPYFLAGS) --strip-unneeded -R .note -R .comment -R .note.gnu.build-id -R .MIPS.abiflags -R .reginfo -R .rel.dyn -R .note.gnu.gold-version -R .note.gnu.property -R .ARM.exidx $< $@; fi + +endif + +if COND_emu +bin_PROGRAMS += grub-emu +if COND_MAN_PAGES +man_MANS += grub-emu.1 + +grub-emu.1: grub-emu + chmod a+x grub-emu + PATH=$(builddir):$$PATH pkgdatadir=$(builddir) $(HELP2MAN) --section=1 -i $(top_srcdir)/docs/man/grub-emu.h2m -o $@ grub-emu + +CLEANFILES += grub-emu.1 +endif +grub_emu_SOURCES = kern/emu/full.c +nodist_grub_emu_SOURCES = grub_emu_init.c +grub_emu_LDADD = kernel.exec$(EXEEXT) $(MODULE_FILES) lib/gnulib/libgnu.a $(LIBINTL) $(LIBUTIL) $(LIBSDL) $(LIBUSB) $(LIBPCIACCESS) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM) +grub_emu_CFLAGS = $(AM_CFLAGS) $(CFLAGS_PROGRAM) +grub_emu_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_PROGRAM) +grub_emu_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_PROGRAM) +grub_emu_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_PROGRAM) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_grub_emu_SOURCES) +CLEANFILES += $(nodist_grub_emu_SOURCES) +endif + +if COND_emu +bin_PROGRAMS += grub-emu-lite +grub_emu_lite_SOURCES = kern/emu/lite.c +nodist_grub_emu_lite_SOURCES = symlist.c +grub_emu_lite_LDADD = kernel.exec$(EXEEXT) lib/gnulib/libgnu.a $(LIBINTL) $(LIBUTIL) $(LIBSDL) $(LIBUSB) $(LIBPCIACCESS) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM) +grub_emu_lite_CFLAGS = $(AM_CFLAGS) $(CFLAGS_PROGRAM) +grub_emu_lite_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_PROGRAM) +grub_emu_lite_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_PROGRAM) +grub_emu_lite_CCASFLAGS = $(AM_CCASFLAGS) $(CCASFLAGS_PROGRAM) +dist_noinst_DATA += +BUILT_SOURCES += $(nodist_grub_emu_lite_SOURCES) +CLEANFILES += $(nodist_grub_emu_lite_SOURCES) +endif +noinst_DATA += gensyminfo.sh + +gensyminfo.sh: $(top_builddir)/config.status gensyminfo.sh.in + (for x in gensyminfo.sh.in ; do cat $(srcdir)/"$$x"; done) | $(top_builddir)/config.status --file=$@:- + chmod a+x gensyminfo.sh + +CLEANFILES += gensyminfo.sh +EXTRA_DIST += +dist_noinst_DATA += gensyminfo.sh.in +noinst_DATA += genmod.sh + +genmod.sh: $(top_builddir)/config.status genmod.sh.in + (for x in genmod.sh.in ; do cat $(srcdir)/"$$x"; done) | $(top_builddir)/config.status --file=$@:- + chmod a+x genmod.sh + +CLEANFILES += genmod.sh +EXTRA_DIST += +dist_noinst_DATA += genmod.sh.in +noinst_DATA += modinfo.sh + +modinfo.sh: $(top_builddir)/config.status modinfo.sh.in + (for x in modinfo.sh.in ; do cat $(srcdir)/"$$x"; done) | $(top_builddir)/config.status --file=$@:- + chmod a+x modinfo.sh + +CLEANFILES += modinfo.sh +EXTRA_DIST += +dist_noinst_DATA += modinfo.sh.in +platform_DATA += gmodule.pl + +gmodule.pl: $(top_builddir)/config.status gmodule.pl.in + (for x in gmodule.pl.in ; do cat $(srcdir)/"$$x"; done) | $(top_builddir)/config.status --file=$@:- + chmod a+x gmodule.pl + +CLEANFILES += gmodule.pl +EXTRA_DIST += +dist_noinst_DATA += gmodule.pl.in +platform_DATA += gdb_grub + +gdb_grub: $(top_builddir)/config.status gdb_grub.in + (for x in gdb_grub.in ; do cat $(srcdir)/"$$x"; done) | $(top_builddir)/config.status --file=$@:- + chmod a+x gdb_grub + +CLEANFILES += gdb_grub +EXTRA_DIST += +dist_noinst_DATA += gdb_grub.in + +if COND_powerpc_ieee1275 +platform_DATA += grub.chrp + +grub.chrp: $(top_builddir)/config.status boot/powerpc/grub.chrp.in + (for x in boot/powerpc/grub.chrp.in ; do cat $(srcdir)/"$$x"; done) | $(top_builddir)/config.status --file=$@:- + chmod a+x grub.chrp + +CLEANFILES += grub.chrp +EXTRA_DIST += +dist_noinst_DATA += boot/powerpc/grub.chrp.in +endif + +if COND_powerpc_ieee1275 +platform_DATA += bootinfo.txt + +bootinfo.txt: $(top_builddir)/config.status boot/powerpc/bootinfo.txt.in + (for x in boot/powerpc/bootinfo.txt.in ; do cat $(srcdir)/"$$x"; done) | $(top_builddir)/config.status --file=$@:- + chmod a+x bootinfo.txt + +CLEANFILES += bootinfo.txt +EXTRA_DIST += +dist_noinst_DATA += boot/powerpc/bootinfo.txt.in +endif |