grub/grub-core/Makefile.vars

84 lines
2 KiB
Text
Raw Normal View History

2010-05-06 06:04:04 +00:00
# -*- makefile -*-
2010-05-26 12:19:05 +00:00
grubconfdir = $(sysconfdir)/grub.d
2010-06-03 10:00:15 +00:00
platformdir = $(pkglibrootdir)/$(target_cpu)-$(platform)
2010-05-26 12:19:05 +00:00
2010-05-06 06:04:04 +00:00
# Platform specific options
if COND_i386_pc
CFLAGS_PLATFORM = -mrtd -mregparm=3
endif
if COND_i386_efi
LDFLAGS_PLATFORM = -melf_i386
endif
if COND_x86_64_efi
LDFLAGS_PLATFORM = -melf_x86_64
endif
if COND_i386_qemu
CFLAGS_PLATFORM = -mrtd -mregparm=3
endif
if COND_i386_coreboot
CFLAGS_PLATFORM = -mrtd -mregparm=3
endif
if COND_i386_ieee1275
CFLAGS_PLATFORM = -mrtd -mregparm=3
endif
if COND_mips_yeeloong
CFLAGS_PLATFORM = -march=mips3 -mexplicit-relocs -mflush-func=grub_cpu_flush_cache
CCASFLAGS_PLATFORM = -march=mips3
endif
if COND_sparc64_ieee1275
CFLAGS_PLATFORM = -mno-app-regs
LDFLAGS_PLATFORM = -melf64_sparc -mno-relax
endif
2010-06-03 10:00:15 +00:00
CPPFLAGS_GRUB = -DGRUB_FILE=\"`basename $<`\"
CPPFLAGS_GRUB += -I$(builddir) -I$(srcdir) -I$(top_builddir) -I$(top_srcdir)
2010-06-03 06:22:33 +00:00
CPPFLAGS_GRUB += -I$(top_srcdir)/$(grub_coredir)/include
CPPFLAGS_GRUB += -I$(top_builddir)/$(grub_coredir)/include
2010-06-03 10:00:15 +00:00
CCASFLAGS_GRUB = -DASM_FILE=1
2010-05-06 06:04:04 +00:00
CFLAGS_GCRY = -Wno-error -Wno-missing-field-initializers
2010-06-03 06:22:33 +00:00
CPPFLAGS_GCRY = -I$(top_srcdir)/$(grub_coredir)/lib/libgcrypt_wrap
2010-05-06 06:04:04 +00:00
CFLAGS_GNULIB = -Wno-undef -Wno-sign-compare -Wno-unused -D_GL_UNUSED="__attribute__ ((unused))"
2010-06-03 06:22:33 +00:00
CPPFLAGS_GNULIB = -I$(top_srcdir)/$(grub_coredir)/gnulib
2010-05-06 06:04:04 +00:00
CFLAGS_MKISOFS = -Wno-all -Werror
CPPFLAGS_MKISOFS = -D_FILE_OFFSET_BITS=64 -I$(top_srcdir)/util/mkisofs/include
CFLAGS_POSIX = -fno-builtin
2010-06-03 06:22:33 +00:00
CPPFLAGS_POSIX = -I$(top_srcdir)/$(grub_coredir)/lib/posix_wrap
2010-05-06 06:04:04 +00:00
2010-06-03 06:22:33 +00:00
CPPFLAGS_EFIEMU = -I$(top_srcdir)/$(grub_coredir)/efiemu/runtime
2010-05-06 06:04:04 +00:00
# to calm down automake
BUILT_SOURCES =
CLEANFILES =
COMMAND_FILES =
DEF_FILES =
FS_FILES =
HANDLER_FILES =
IMG_FILES =
MOD_FILES =
MODULE_FILES =
PARTMAP_FILES =
PARTTOOL_FILES =
TERMINAL_FILES =
TESTS =
UND_FILES =
VIDEO_FILES =
bin_PROGRAMS =
bin_SCRIPTS =
check_PROGRAMS =
check_SCRIPTS =
grubconf_DATA =
grubconf_SCRIPTS =
man_MANS =
noinst_DATA =
noinst_LIBRARIES =
noinst_PROGRAMS =
pkglib_SCRIPTS =
platform_DATA =
sbin_PROGRAMS =
sbin_SCRIPTS =