2N/AAUTOMAKE_OPTIONS = subdir-objects -Wno-portability
2N/A
2N/ADEPDIR=.deps-core
2N/A
2N/Ainclude $(top_srcdir)/conf/Makefile.common
2N/A
2N/ACC=$(TARGET_CC)
2N/ACPP=$(TARGET_CC)
2N/ACCAS=@CCAS@
2N/A
2N/Aif COND_GRUB_MKFONT
2N/Aif COND_HAVE_FONT_SOURCE
2N/ATARGET_CFLAGS += -DUSE_ASCII_FAILBACK=1 -DHAVE_UNIFONT_WIDTHSPEC=1
2N/Aendif
2N/Aendif
2N/A
2N/AAM_CFLAGS = $(TARGET_CFLAGS)
2N/AAM_LDFLAGS = $(TARGET_LDFLAGS)
2N/AAM_CPPFLAGS = $(TARGET_CPPFLAGS) $(CPPFLAGS_DEFAULT)
2N/AAM_CCASFLAGS = $(TARGET_CCASFLAGS) $(CCASFLAGS_DEFAULT)
2N/A
2N/ACFLAGS_PROGRAM += $(CFLAGS_PLATFORM)
2N/ALDFLAGS_PROGRAM += $(LDFLAGS_PLATFORM)
2N/ACPPFLAGS_PROGRAM += $(CPPFLAGS_PLATFORM)
2N/ACCASFLAGS_PROGRAM += $(CCASFLAGS_PLATFORM)
2N/A
2N/ACFLAGS_LIBRARY += $(CFLAGS_PLATFORM) -fno-builtin
2N/ACPPFLAGS_LIBRARY += $(CPPFLAGS_PLATFORM)
2N/ACCASFLAGS_LIBRARY += $(CCASFLAGS_PLATFORM)
2N/A
2N/A# gentrigtables
2N/Agentrigtables: gentrigtables.c
2N/A $(BUILD_CC) -o $@ -I$(top_srcdir)/include $(CPPFLAGS) $< -lm
2N/ACLEANFILES += gentrigtables
2N/A
2N/A# trigtables.c
2N/Atrigtables.c: gentrigtables gentrigtables.c $(top_srcdir)/configure.ac
2N/A $(builddir)/gentrigtables > $@
2N/ACLEANFILES += trigtables.c
2N/A
2N/A# XXX Use Automake's LEX & YACC support
2N/Agrub_script.tab.h: script/parser.y
2N/A $(YACC) -d -p grub_script_yy -b grub_script $<
2N/Agrub_script.tab.c: grub_script.tab.h
2N/ACLEANFILES += grub_script.tab.c grub_script.tab.h
2N/A
2N/A# For the lexer.
2N/Agrub_script.yy.h: script/yylex.l
2N/A $(LEX) -o grub_script.yy.c --header-file=grub_script.yy.h $<
2N/Agrub_script.yy.c: grub_script.yy.h
2N/A
2N/Ars_decoder.S: $(srcdir)/lib/reed_solomon.c
2N/A# XXX - -march-pentium added on Solaris because GCC 4.5 on Solaris is configured to generate
2N/A# XXX - assembly for the Sun assembler (we override that and use GAS with the ccas_wrap program)
2N/A# XXX - without -march-pentium, cmov instructions are generated, which GAS chokes on.
2N/A $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) -march=pentium -Os -I$(top_builddir) -S -DSTANDALONE -o $@ $< -g0 -mregparm=3
2N/A# Remove the .section .text line and substitute one without changed attributes
2N/A# to eliminate the gas warning
2N/A sed 's|^[ ]*\.section[ ]*\.text[ ]*,.*|.section .text|' $@ > $@.tmp; \
2N/A mv $@.tmp $@
2N/A
2N/Akern/i386/pc/startup.S: $(builddir)/rs_decoder.S
2N/A
2N/ACLEANFILES += grub_script.yy.c grub_script.yy.h
2N/A
2N/Ainclude $(srcdir)/Makefile.core.am
2N/A
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/cache.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/command.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/device.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/disk.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/dl.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/env.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/env_private.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/err.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/file.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/fs.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/i18n.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/kernel.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/list.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/misc.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/mm.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/parser.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/partition.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/term.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/time.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/mm_private.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/net.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/libgcc.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/memory.h
2N/A
2N/Aif COND_i386_pc
2N/AKERNEL_HEADER_FILES += $(top_builddir)/include/grub/machine/kernel.h
2N/AKERNEL_HEADER_FILES += $(top_builddir)/include/grub/machine/pxe.h
2N/AKERNEL_HEADER_FILES += $(top_builddir)/include/grub/machine/int.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/i386/pit.h
2N/Aendif
2N/A
2N/Aif COND_i386_efi
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/efi/efi.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/efi/time.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/efi/disk.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/i386/pit.h
2N/Aendif
2N/A
2N/Aif COND_i386_coreboot
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/i386/pit.h
2N/AKERNEL_HEADER_FILES += $(top_builddir)/include/grub/i386/pc/int.h
2N/Aendif
2N/A
2N/Aif COND_i386_multiboot
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/i386/pit.h
2N/AKERNEL_HEADER_FILES += $(top_builddir)/include/grub/i386/pc/int.h
2N/Aendif
2N/A
2N/Aif COND_i386_qemu
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/pci.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/i386/pit.h
2N/Aendif
2N/A
2N/Aif COND_i386_ieee1275
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/ieee1275/ieee1275.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/terminfo.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/extcmd.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/lib/arg.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/i386/pit.h
2N/Aendif
2N/A
2N/Aif COND_x86_64_efi
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/efi/efi.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/efi/time.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/efi/disk.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/i386/pit.h
2N/Aendif
2N/A
2N/Aif COND_ia64_efi
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/efi/efi.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/efi/time.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/efi/disk.h
2N/Aendif
2N/A
2N/Aif COND_mips
2N/AKERNEL_HEADER_FILES += $(top_builddir)/include/grub/cpu/kernel.h
2N/Aendif
2N/A
2N/Aif COND_mips_arc
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/extcmd.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/arc/arc.h
2N/Aendif
2N/A
2N/Aif COND_mips_qemu_mips
2N/AKERNEL_HEADER_FILES += $(top_builddir)/include/grub/keyboard_layouts.h
2N/AKERNEL_HEADER_FILES += $(top_builddir)/include/grub/machine/kernel.h
2N/AKERNEL_HEADER_FILES += $(top_builddir)/include/grub/cpu/cache.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/bitmap.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/video.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/gfxterm.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/font.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/bitmap_scale.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/bufio.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/serial.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/loader.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/terminfo.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/extcmd.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/lib/arg.h
2N/Aendif
2N/A
2N/Aif COND_mips_loongson
2N/AKERNEL_HEADER_FILES += $(top_builddir)/include/grub/keyboard_layouts.h
2N/AKERNEL_HEADER_FILES += $(top_builddir)/include/grub/machine/kernel.h
2N/AKERNEL_HEADER_FILES += $(top_builddir)/include/grub/cpu/cache.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/bitmap.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/video.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/gfxterm.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/font.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/bitmap_scale.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/bufio.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/pci.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/cs5536.h
2N/AKERNEL_HEADER_FILES += $(top_builddir)/include/grub/machine/pci.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/serial.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/loader.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/terminfo.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/extcmd.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/lib/arg.h
2N/Aendif
2N/A
2N/Aif COND_mips_qemu_mips
2N/AKERNEL_HEADER_FILES += $(top_builddir)/include/grub/machine/memory.h
2N/AKERNEL_HEADER_FILES += $(top_builddir)/include/grub/machine/kernel.h
2N/Aendif
2N/A
2N/Aif COND_powerpc_ieee1275
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/ieee1275/ieee1275.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/terminfo.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/extcmd.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/lib/arg.h
2N/Aendif
2N/A
2N/Aif COND_sparc64_ieee1275
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/ieee1275/ieee1275.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/sparc64/ieee1275/ieee1275.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/terminfo.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/extcmd.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/lib/arg.h
2N/Aendif
2N/A
2N/Aif COND_emu
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/datetime.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/emu/misc.h
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/emu/export.h
2N/Aif COND_GRUB_EMU_SDL
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/sdl.h
2N/Aendif
2N/Aif COND_GRUB_EMU_USB
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/libusb.h
2N/Aendif
2N/Aif COND_GRUB_EMU_PCI
2N/AKERNEL_HEADER_FILES += $(top_srcdir)/include/grub/libpciaccess.h
2N/Aendif
2N/Aendif
2N/A
2N/Asymlist.h: $(top_builddir)/config.h $(KERNEL_HEADER_FILES)
2N/A @list='$^'; \
2N/A rm -f $@; \
2N/A for p in $$list; do \
2N/A echo "#include <$$p>" >> $@ || (rm -f $@; exit 1); \
2N/A done
2N/ACLEANFILES += symlist.h
2N/ABUILT_SOURCES += symlist.h
2N/A
2N/Asymlist.c: symlist.h gensymlist.sh
2N/A $(TARGET_CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS_KERNEL) $(CPPFLAGS) -DGRUB_SYMBOL_GENERATOR=1 symlist.h > symlist.p || (rm -f symlist.p; exit 1)
2N/A cat symlist.p | /bin/sh $(srcdir)/gensymlist.sh $(top_builddir)/config.h $(KERNEL_HEADER_FILES) >$@ || (rm -f $@; exit 1)
2N/A rm -f symlist.p
2N/ACLEANFILES += symlist.c
2N/ABUILT_SOURCES += symlist.c
2N/A
2N/Aif COND_HAVE_ASM_USCORE
2N/AASM_PREFIX=_
2N/Aelse
2N/AASM_PREFIX=
2N/Aendif
2N/A
2N/Anoinst_DATA += kernel_syms.lst
2N/A
2N/Akernel_syms.lst: $(KERNEL_HEADER_FILES) $(top_builddir)/config.h
2N/A $(TARGET_CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS_KERNEL) $(CPPFLAGS) $(CFLAGS) -DGRUB_SYMBOL_GENERATOR=1 $^ >kernel_syms.input
2N/A cat kernel_syms.input | grep -v '^#' | sed -n \
2N/A -e '/EXPORT_FUNC *([a-zA-Z0-9_]*)/{s/.*EXPORT_FUNC *(\([a-zA-Z0-9_]*\)).*/defined kernel '"$(ASM_PREFIX)"'\1/;p;}' \
2N/A -e '/EXPORT_VAR *([a-zA-Z0-9_]*)/{s/.*EXPORT_VAR *(\([a-zA-Z0-9_]*\)).*/defined kernel '"$(ASM_PREFIX)"'\1/;p;}' \
2N/A | sort -u >$@
2N/A rm -f kernel_syms.input
2N/ACLEANFILES += kernel_syms.lst
2N/A
2N/Aif COND_emu
2N/Akern/emu/grub_emu-main.$(OBJEXT):grub_emu_init.h
2N/Agrub_emu-grub_emu_init.$(OBJEXT):grub_emu_init.h
2N/Akern/emu/grub_emu_dyn-main.$(OBJEXT):grub_emu_init.h
2N/Agrub_emu_dyn-grub_emu_init.$(OBJEXT):grub_emu_init.h
2N/A
2N/Agrub_emu_init.h: genemuinitheader.sh $(MOD_FILES)
2N/A rm -f $@; echo $(MOD_FILES) | sh $(srcdir)/genemuinitheader.sh $(NM) > $@
2N/ACLEANFILES += grub_emu_init.h
2N/A
2N/Agrub_emu_init.c: grub_emu_init.h genemuinit.sh $(MOD_FILES)
2N/A rm -f $@; echo $(MOD_FILES) | sh $(srcdir)/genemuinit.sh $(NM) > $@
2N/ACLEANFILES += grub_emu_init.c
2N/Aendif
2N/A
2N/A# List files
2N/A
2N/Afs.lst: $(MARKER_FILES)
2N/A (for pp in $^; do \
2N/A b=`basename $$pp .marker`; \
2N/A if grep 'FS_LIST_MARKER' $$pp >/dev/null 2>&1; then \
2N/A echo $$b; \
2N/A fi; \
2N/A done) | sort -u > $@
2N/Aplatform_DATA += fs.lst
2N/ACLEANFILES += fs.lst
2N/A
2N/Acommand.lst: $(MARKER_FILES)
2N/A (for pp in $^; do \
2N/A b=`basename $$pp .marker`; \
2N/A sed -n \
2N/A -e "/EXTCOMMAND_LIST_MARKER *( *\"/{s/.*( *\"\([^\"]*\)\".*/*\1: $$b/;p;}" \
2N/A -e "/P1COMMAND_LIST_MARKER *( *\"/{s/.*( *\"\([^\"]*\)\".*/*\1: $$b/;p;}" \
2N/A -e "/COMMAND_LIST_MARKER *( *\"/{s/.*( *\"\([^\"]*\)\".*/\1: $$b/;p;}" $$pp; \
2N/A done) | sort -u > $@
2N/Aplatform_DATA += command.lst
2N/ACLEANFILES += command.lst
2N/A
2N/Apartmap.lst: $(MARKER_FILES)
2N/A (for pp in $^; do \
2N/A b=`basename $$pp .marker`; \
2N/A if grep 'PARTMAP_LIST_MARKER' $$pp >/dev/null 2>&1; then \
2N/A echo $$b; \
2N/A fi; \
2N/A done) | sort -u > $@
2N/Aplatform_DATA += partmap.lst
2N/ACLEANFILES += partmap.lst
2N/A
2N/Aterminal.lst: $(MARKER_FILES)
2N/A (for pp in $^; do \
2N/A b=`basename $$pp .marker`; \
2N/A sed -n \
2N/A -e "/INPUT_TERMINAL_LIST_MARKER *( *\"/{s/.*( *\"\([^\"]*\)\".*/i\1: $$b/;p;}" \
2N/A -e "/OUTPUT_TERMINAL_LIST_MARKER *( *\"/{s/.*( *\"\([^\"]*\)\".*/o\1: $$b/;p;}" $$pp; \
2N/A done) | sort -u > $@
2N/Aplatform_DATA += terminal.lst
2N/ACLEANFILES += terminal.lst
2N/A
2N/Aparttool.lst: $(MARKER_FILES)
2N/A (for pp in $^; do \
2N/A b=`basename $$pp .marker`; \
2N/A sed -n \
2N/A -e "/PARTTOOL_LIST_MARKER *( *\"/{s/.*( *\"\([^\"]*\)\".*/\1: $$b/;p;}" $$pp; \
2N/A done) | sort -u > $@
2N/Aplatform_DATA += parttool.lst
2N/ACLEANFILES += parttool.lst
2N/A
2N/Avideo.lst: $(MARKER_FILES)
2N/A (for pp in $^; do \
2N/A b=`basename $$pp .marker`; \
2N/A if grep 'VIDEO_LIST_MARKER' $$pp >/dev/null 2>&1; then \
2N/A echo $$b; \
2N/A fi; \
2N/A done) | sort -u > $@
2N/Aplatform_DATA += video.lst
2N/ACLEANFILES += video.lst
2N/A
2N/A# but, crypto.lst is simply copied
2N/Acrypto.lst: $(srcdir)/lib/libgcrypt-grub/cipher/crypto.lst
2N/A cp $^ $@
2N/Aplatform_DATA += crypto.lst
2N/ACLEANFILES += crypto.lst
2N/A
2N/Asyminfo.lst: gensyminfo.sh kernel_syms.lst $(MODULE_FILES)
2N/A cat kernel_syms.lst > $@.new
2N/A for m in $(MODULE_FILES); do \
2N/A sh $< $$m >> $@.new || exit 1; \
2N/A done
2N/A mv $@.new $@
2N/A
2N/A# generate global module dependencies list
2N/Amoddep.lst: syminfo.lst genmoddep.awk
2N/A cat $< | sort | $(AWK) -f $(srcdir)/genmoddep.awk > $@ || (rm -f $@; exit 1)
2N/Aplatform_DATA += moddep.lst
2N/ACLEANFILES += config.log syminfo.lst moddep.lst
2N/A
2N/A$(MOD_FILES): %.mod : genmod.sh moddep.lst %.module$(EXEEXT)
2N/A TARGET_OBJ2ELF=@TARGET_OBJ2ELF@ sh $^ $@
2N/Aplatform_DATA += $(MOD_FILES)
2N/Aplatform_DATA += modinfo.sh
2N/ACLEANFILES += $(MOD_FILES)
2N/A
2N/Aif COND_ENABLE_EFIEMU
2N/Aefiemu32.o: efiemu/runtime/efiemu.c $(TARGET_OBJ2ELF)
2N/A -rm -f $@; \
2N/A if test "x$(TARGET_APPLE_CC)" = x1; then \
2N/A $(TARGET_CC) $(DEFS) $(INCLUDES) $(CPPFLAGS_EFIEMU) $(CPPFLAGS_DEFAULT) -DELF32 -DAPPLE_CC -m32 -Wall -Werror -nostdlib -O2 -c -o $@.bin $< || exit 1; \
2N/A $(OBJCONV) -felf32 -nu -nd $@.bin $@ || exit 1; \
2N/A rm -f $@.bin; \
2N/A else \
2N/A $(TARGET_CC) $(DEFS) $(INCLUDES) $(CPPFLAGS_EFIEMU) $(CPPFLAGS_DEFAULT) -DELF32 -m32 -Wall -Werror -nostdlib -O2 -c -o $@ $< || exit 1; \
2N/A if test ! -z "$(TARGET_OBJ2ELF)"; then $(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi; \
2N/A fi
2N/A
2N/Aefiemu64_c.o: efiemu/runtime/efiemu.c
2N/A if test "x$(TARGET_APPLE_CC)" = x1; then \
2N/A $(TARGET_CC) $(DEFS) $(INCLUDES) $(CPPFLAGS_EFIEMU) $(CPPFLAGS_DEFAULT) -DELF64 -DAPPLE_CC=1 -m64 -nostdlib -Wall -Werror -mno-red-zone -c -o $@ $< || exit 1; \
2N/A else \
2N/A $(TARGET_CC) $(DEFS) $(INCLUDES) $(CPPFLAGS_EFIEMU) $(CPPFLAGS_DEFAULT) -DELF64 -m64 -nostdlib -Wall -Werror -O2 -mcmodel=large -mno-red-zone -c -o $@ $< || exit 1; \
2N/A fi
2N/A
2N/Aefiemu64_s.o: efiemu/runtime/efiemu.S
2N/A -rm -f $@
2N/A if test "x$(TARGET_APPLE_CC)" = x1; then \
2N/A $(TARGET_CC) $(DEFS) $(INCLUDES) $(CPPFLAGS_EFIEMU) $(CPPFLAGS_DEFAULT) -DELF64 -DAPPLE_CC=1 -m64 -Wall -Werror -nostdlib -O2 -mno-red-zone -c -o $@ $< || exit 1; \
2N/A else \
2N/A $(TARGET_CC) $(DEFS) $(INCLUDES) $(CPPFLAGS_EFIEMU) $(CPPFLAGS_DEFAULT) -DELF64 -m64 -Wall -Werror -nostdlib -O2 -mcmodel=large -mno-red-zone -c -o $@ $< || exit 1; \
2N/A fi
2N/A
2N/Aefiemu64.o: efiemu64_c.o efiemu64_s.o $(TARGET_OBJ2ELEF)
2N/A -rm -f $@; \
2N/A if test "x$(TARGET_APPLE_CC)" = x1; then \
2N/A rm -f $@.bin; \
2N/A $(TARGET_CC) -m64 -Wl,-r -nostdlib -o $@.bin $^ || exit 1; \
2N/A $(OBJCONV) -felf64 -nu -nd $@.bin $@ || exit 1; \
2N/A rm -f $@.bin; \
2N/A else \
2N/A $(TARGET_CC) -m64 -nostdlib -Wl,-r -o $@ $^ || exit 1; \
2N/A if test ! -z "$(TARGET_OBJ2ELF)"; then $(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi; \
2N/A fi
2N/A
2N/Aplatform_DATA += efiemu32.o efiemu64.o
2N/ACLEANFILES += efiemu32.o efiemu64.o efiemu64_c.o efiemu64_s.o
2N/Aendif