2002-12-27 08:53:07 +00:00
|
|
|
# -*- makefile -*-
|
|
|
|
#
|
2010-01-01 20:32:30 +00:00
|
|
|
# Copyright (C) 1994,1995,1996,1997,1998,1999,2000,2001,2002,2004,2005,2006,2007,2008,2009,2010 Free Software Foundation, Inc.
|
2002-12-27 08:53:07 +00:00
|
|
|
#
|
|
|
|
# This Makefile.in is free software; the author
|
|
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
|
|
# with or without modifications, as long as this notice is preserved.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
|
|
|
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
|
|
|
# PARTICULAR PURPOSE.
|
|
|
|
|
|
|
|
### The configure script will replace these variables.
|
|
|
|
|
|
|
|
SHELL = /bin/sh
|
|
|
|
|
|
|
|
@SET_MAKE@
|
|
|
|
|
2007-04-10 21:38:26 +00:00
|
|
|
transform = @program_transform_name@
|
|
|
|
|
2002-12-27 08:53:07 +00:00
|
|
|
srcdir = @srcdir@
|
2008-02-09 12:31:11 +00:00
|
|
|
builddir = @builddir@
|
2002-12-27 08:53:07 +00:00
|
|
|
top_srcdir = @top_srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
|
|
|
|
bindir = @bindir@
|
|
|
|
sbindir = @sbindir@
|
|
|
|
libexecdir = @libexecdir@
|
2007-05-09 21:24:33 +00:00
|
|
|
datarootdir = @datarootdir@
|
2002-12-27 08:53:07 +00:00
|
|
|
datadir = @datadir@
|
|
|
|
sysconfdir = @sysconfdir@
|
|
|
|
sharedstatedir = @sharedstatedir@
|
|
|
|
localstatedir = @localstatedir@
|
|
|
|
libdir = @libdir@
|
|
|
|
infodir = @infodir@
|
|
|
|
mandir = @mandir@
|
|
|
|
includedir = @includedir@
|
2007-04-10 21:38:26 +00:00
|
|
|
pkgdatadir = $(datadir)/`echo @PACKAGE_TARNAME@ | sed '$(transform)'`
|
|
|
|
pkglibdir = $(libdir)/`echo @PACKAGE_TARNAME@/$(target_cpu)-$(platform) | sed '$(transform)'`
|
2002-12-27 08:53:07 +00:00
|
|
|
|
2010-01-01 20:32:30 +00:00
|
|
|
# Internationalization library.
|
|
|
|
LIBINTL = @LIBINTL@
|
|
|
|
|
2009-11-17 11:20:39 +00:00
|
|
|
XGETTEXT = @XGETTEXT@
|
|
|
|
MSGMERGE = @MSGMERGE@
|
|
|
|
MSGFMT = @MSGFMT@
|
|
|
|
|
2009-11-27 17:11:38 +00:00
|
|
|
LINGUAS = $(shell for i in $(srcdir)/po/*.po ; do \
|
|
|
|
if test -e $$i ; then echo $$i ; fi ; \
|
|
|
|
done | sed -e "s,.*/po/\(.*\)\.po$$,\1,")
|
2009-11-15 23:11:01 +00:00
|
|
|
|
2009-11-17 11:44:43 +00:00
|
|
|
PACKAGE = @PACKAGE@
|
2002-12-27 08:53:07 +00:00
|
|
|
PACKAGE_NAME = @PACKAGE_NAME@
|
|
|
|
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
|
|
|
PACKAGE_VERSION = @PACKAGE_VERSION@
|
|
|
|
PACKAGE_STRING = @PACKAGE_STRING@
|
|
|
|
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
|
|
|
|
2009-02-08 19:59:32 +00:00
|
|
|
host_os = @host_os@
|
2009-03-04 22:00:41 +00:00
|
|
|
host_kernel = @host_kernel@
|
2009-02-08 19:59:32 +00:00
|
|
|
host_cpu = @host_cpu@
|
|
|
|
|
2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
* util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
(target_cpu): New variable.
(pkglibdir): Use target_cpu instead of host_cpu.
* util/i386/pc/grub-install.in (host_cpu): Removed.
(target_cpu): New variable.
(pkglibdir): Use target_cpu instead of host_cpu.
* util/genmoddep.c: Removed.
* kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
instead of GRUB_HOST_SIZEOF_VOID_P.
* kern/dl.c: Likewise.
* include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
...
(GRUB_TARGET_SIZEOF_VOID_P): ... this.
(GRUB_HOST_SIZEOF_LONG): Renamed to ...
(GRUB_TARGET_SIZEOF_LONG): ... this.
(GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
(GRUB_TARGET_WORDS_BIGENDIAN): ... this.
* include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
to ...
(GRUB_TARGET_SIZEOF_VOID_P): ... this.
(GRUB_HOST_SIZEOF_LONG): Renamed to ...
(GRUB_TARGET_SIZEOF_LONG): ... this.
(GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
(GRUB_TARGET_WORDS_BIGENDIAN): ... this.
* include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
to ...
(GRUB_TARGET_SIZEOF_VOID_P): ... this.
(GRUB_HOST_SIZEOF_LONG): Renamed to ...
(GRUB_TARGET_SIZEOF_LONG): ... this.
(GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
(GRUB_TARGET_WORDS_BIGENDIAN): ... this.
* include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
[!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
instead of GRUB_HOST_SIZEOF_LONG.
[!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
GRUB_HOST_WORDS_BIGENDIAN to define or undefine
GRUB_CPU_WORDS_BIGENDIAN.
Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
grub_host_ssize_t.
* conf/i386-efi.rmk (noinst_UTILITIES): Removed.
(genmoddep_SOURCES): Likewise.
* conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
(genmoddep_SOURCES): Likewise.
* conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
(genmoddep_SOURCES): Likewise.
* conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
Likewise.
(genmoddep_SOURCES): Likewise.
* genmoddep.awk: New file.
* genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
(PModule::rule): Likewise.
(Program::rule): Likewise.
(Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
respectively.
* configure.ac: Rewritten intensively to use host and target
instead of build and host, respectively.
* Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
(host_cpu): Removed.
(target_cpu): New variable.
(CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
(BUILD_CC): Removed.
(BUILD_CFLAGS): Likewise.
(BUILD_CPPFLAGS): Likewise.
(TARGET_CC): New variable.
(TARGET_CFLAGS): Likewise.
(TARGET_CPPFLAGS): Likewise.
(TARGET_LDFLAGS): Likewise.
(AWK): Likewise.
(include): Use target_cpu instead of host_cpu.
(moddep.lst:): Use genmoddep.awk instead of genmoddep.
* DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
2006-05-28 23:01:43 +00:00
|
|
|
target_cpu = @target_cpu@
|
2006-05-08 19:29:10 +00:00
|
|
|
platform = @platform@
|
2002-12-27 08:53:07 +00:00
|
|
|
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
|
|
|
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
2009-09-23 17:18:06 +00:00
|
|
|
MKDIR_P = @MKDIR_P@
|
2002-12-27 08:53:07 +00:00
|
|
|
|
|
|
|
mkinstalldirs = $(srcdir)/mkinstalldirs
|
|
|
|
|
2010-01-01 20:32:30 +00:00
|
|
|
LIBS = @LIBS@ $(LIBINTL)
|
|
|
|
|
2002-12-27 08:53:07 +00:00
|
|
|
CC = @CC@
|
|
|
|
CFLAGS = @CFLAGS@
|
2009-06-04 19:53:52 +00:00
|
|
|
ASFLAGS = @ASFLAGS@
|
2010-01-01 20:32:30 +00:00
|
|
|
LDFLAGS = @LDFLAGS@ $(LIBS)
|
2009-11-17 10:31:08 +00:00
|
|
|
CPPFLAGS = @CPPFLAGS@ -I$(builddir) -I$(builddir)/include -I$(srcdir)/gnulib -I$(srcdir)/include -Wall -W \
|
2009-11-17 10:47:22 +00:00
|
|
|
-DGRUB_LIBDIR=\"$(pkglibdir)\" -DLOCALEDIR=\"$(localedir)\"
|
2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
* util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
(target_cpu): New variable.
(pkglibdir): Use target_cpu instead of host_cpu.
* util/i386/pc/grub-install.in (host_cpu): Removed.
(target_cpu): New variable.
(pkglibdir): Use target_cpu instead of host_cpu.
* util/genmoddep.c: Removed.
* kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
instead of GRUB_HOST_SIZEOF_VOID_P.
* kern/dl.c: Likewise.
* include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
...
(GRUB_TARGET_SIZEOF_VOID_P): ... this.
(GRUB_HOST_SIZEOF_LONG): Renamed to ...
(GRUB_TARGET_SIZEOF_LONG): ... this.
(GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
(GRUB_TARGET_WORDS_BIGENDIAN): ... this.
* include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
to ...
(GRUB_TARGET_SIZEOF_VOID_P): ... this.
(GRUB_HOST_SIZEOF_LONG): Renamed to ...
(GRUB_TARGET_SIZEOF_LONG): ... this.
(GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
(GRUB_TARGET_WORDS_BIGENDIAN): ... this.
* include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
to ...
(GRUB_TARGET_SIZEOF_VOID_P): ... this.
(GRUB_HOST_SIZEOF_LONG): Renamed to ...
(GRUB_TARGET_SIZEOF_LONG): ... this.
(GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
(GRUB_TARGET_WORDS_BIGENDIAN): ... this.
* include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
[!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
instead of GRUB_HOST_SIZEOF_LONG.
[!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
GRUB_HOST_WORDS_BIGENDIAN to define or undefine
GRUB_CPU_WORDS_BIGENDIAN.
Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
grub_host_ssize_t.
* conf/i386-efi.rmk (noinst_UTILITIES): Removed.
(genmoddep_SOURCES): Likewise.
* conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
(genmoddep_SOURCES): Likewise.
* conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
(genmoddep_SOURCES): Likewise.
* conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
Likewise.
(genmoddep_SOURCES): Likewise.
* genmoddep.awk: New file.
* genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
(PModule::rule): Likewise.
(Program::rule): Likewise.
(Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
respectively.
* configure.ac: Rewritten intensively to use host and target
instead of build and host, respectively.
* Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
(host_cpu): Removed.
(target_cpu): New variable.
(CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
(BUILD_CC): Removed.
(BUILD_CFLAGS): Likewise.
(BUILD_CPPFLAGS): Likewise.
(TARGET_CC): New variable.
(TARGET_CFLAGS): Likewise.
(TARGET_CPPFLAGS): Likewise.
(TARGET_LDFLAGS): Likewise.
(AWK): Likewise.
(include): Use target_cpu instead of host_cpu.
(moddep.lst:): Use genmoddep.awk instead of genmoddep.
* DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
2006-05-28 23:01:43 +00:00
|
|
|
TARGET_CC = @TARGET_CC@
|
|
|
|
TARGET_CFLAGS = @TARGET_CFLAGS@
|
2009-06-04 19:53:52 +00:00
|
|
|
TARGET_ASFLAGS = @TARGET_ASFLAGS@
|
|
|
|
TARGET_MODULE_FORMAT = @TARGET_MODULE_FORMAT@
|
|
|
|
TARGET_APPLE_CC = @TARGET_APPLE_CC@
|
|
|
|
OBJCONV = @OBJCONV@
|
2010-03-06 16:22:04 +00:00
|
|
|
TARGET_CPPFLAGS = @TARGET_CPPFLAGS@ -I$(srcdir)/include -I$(builddir) -I$(builddir)/include \
|
2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
* util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
(target_cpu): New variable.
(pkglibdir): Use target_cpu instead of host_cpu.
* util/i386/pc/grub-install.in (host_cpu): Removed.
(target_cpu): New variable.
(pkglibdir): Use target_cpu instead of host_cpu.
* util/genmoddep.c: Removed.
* kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
instead of GRUB_HOST_SIZEOF_VOID_P.
* kern/dl.c: Likewise.
* include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
...
(GRUB_TARGET_SIZEOF_VOID_P): ... this.
(GRUB_HOST_SIZEOF_LONG): Renamed to ...
(GRUB_TARGET_SIZEOF_LONG): ... this.
(GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
(GRUB_TARGET_WORDS_BIGENDIAN): ... this.
* include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
to ...
(GRUB_TARGET_SIZEOF_VOID_P): ... this.
(GRUB_HOST_SIZEOF_LONG): Renamed to ...
(GRUB_TARGET_SIZEOF_LONG): ... this.
(GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
(GRUB_TARGET_WORDS_BIGENDIAN): ... this.
* include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
to ...
(GRUB_TARGET_SIZEOF_VOID_P): ... this.
(GRUB_HOST_SIZEOF_LONG): Renamed to ...
(GRUB_TARGET_SIZEOF_LONG): ... this.
(GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
(GRUB_TARGET_WORDS_BIGENDIAN): ... this.
* include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
[!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
instead of GRUB_HOST_SIZEOF_LONG.
[!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
GRUB_HOST_WORDS_BIGENDIAN to define or undefine
GRUB_CPU_WORDS_BIGENDIAN.
Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
grub_host_ssize_t.
* conf/i386-efi.rmk (noinst_UTILITIES): Removed.
(genmoddep_SOURCES): Likewise.
* conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
(genmoddep_SOURCES): Likewise.
* conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
(genmoddep_SOURCES): Likewise.
* conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
Likewise.
(genmoddep_SOURCES): Likewise.
* genmoddep.awk: New file.
* genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
(PModule::rule): Likewise.
(Program::rule): Likewise.
(Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
respectively.
* configure.ac: Rewritten intensively to use host and target
instead of build and host, respectively.
* Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
(host_cpu): Removed.
(target_cpu): New variable.
(CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
(BUILD_CC): Removed.
(BUILD_CFLAGS): Likewise.
(BUILD_CPPFLAGS): Likewise.
(TARGET_CC): New variable.
(TARGET_CFLAGS): Likewise.
(TARGET_CPPFLAGS): Likewise.
(TARGET_LDFLAGS): Likewise.
(AWK): Likewise.
(include): Use target_cpu instead of host_cpu.
(moddep.lst:): Use genmoddep.awk instead of genmoddep.
* DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
2006-05-28 23:01:43 +00:00
|
|
|
-Wall -W
|
|
|
|
TARGET_LDFLAGS = @TARGET_LDFLAGS@
|
2008-07-24 14:56:30 +00:00
|
|
|
TARGET_IMG_LDSCRIPT = @TARGET_IMG_LDSCRIPT@
|
|
|
|
TARGET_IMG_LDFLAGS = @TARGET_IMG_LDFLAGS@
|
2009-06-04 19:53:52 +00:00
|
|
|
TARGET_IMG_CFLAGS = @TARGET_IMG_CFLAGS@
|
2008-07-24 14:56:30 +00:00
|
|
|
TARGET_OBJ2ELF = @TARGET_OBJ2ELF@
|
|
|
|
EXEEXT = @EXEEXT@
|
2002-12-27 08:53:07 +00:00
|
|
|
OBJCOPY = @OBJCOPY@
|
|
|
|
STRIP = @STRIP@
|
|
|
|
NM = @NM@
|
|
|
|
RUBY = @RUBY@
|
2009-09-21 18:22:27 +00:00
|
|
|
MAKEINFO = @MAKEINFO@
|
|
|
|
ifeq (, $(MAKEINFO))
|
|
|
|
MAKEINFO = true
|
|
|
|
endif
|
2008-02-09 12:31:11 +00:00
|
|
|
HELP2MAN = @HELP2MAN@
|
|
|
|
ifeq (, $(HELP2MAN))
|
|
|
|
HELP2MAN = true
|
|
|
|
else
|
|
|
|
HELP2MAN := LANG=C $(HELP2MAN) --no-info --source=FSF
|
|
|
|
endif
|
2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
* util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
(target_cpu): New variable.
(pkglibdir): Use target_cpu instead of host_cpu.
* util/i386/pc/grub-install.in (host_cpu): Removed.
(target_cpu): New variable.
(pkglibdir): Use target_cpu instead of host_cpu.
* util/genmoddep.c: Removed.
* kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
instead of GRUB_HOST_SIZEOF_VOID_P.
* kern/dl.c: Likewise.
* include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
...
(GRUB_TARGET_SIZEOF_VOID_P): ... this.
(GRUB_HOST_SIZEOF_LONG): Renamed to ...
(GRUB_TARGET_SIZEOF_LONG): ... this.
(GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
(GRUB_TARGET_WORDS_BIGENDIAN): ... this.
* include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
to ...
(GRUB_TARGET_SIZEOF_VOID_P): ... this.
(GRUB_HOST_SIZEOF_LONG): Renamed to ...
(GRUB_TARGET_SIZEOF_LONG): ... this.
(GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
(GRUB_TARGET_WORDS_BIGENDIAN): ... this.
* include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
to ...
(GRUB_TARGET_SIZEOF_VOID_P): ... this.
(GRUB_HOST_SIZEOF_LONG): Renamed to ...
(GRUB_TARGET_SIZEOF_LONG): ... this.
(GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
(GRUB_TARGET_WORDS_BIGENDIAN): ... this.
* include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
[!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
instead of GRUB_HOST_SIZEOF_LONG.
[!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
GRUB_HOST_WORDS_BIGENDIAN to define or undefine
GRUB_CPU_WORDS_BIGENDIAN.
Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
grub_host_ssize_t.
* conf/i386-efi.rmk (noinst_UTILITIES): Removed.
(genmoddep_SOURCES): Likewise.
* conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
(genmoddep_SOURCES): Likewise.
* conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
(genmoddep_SOURCES): Likewise.
* conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
Likewise.
(genmoddep_SOURCES): Likewise.
* genmoddep.awk: New file.
* genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
(PModule::rule): Likewise.
(Program::rule): Likewise.
(Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
respectively.
* configure.ac: Rewritten intensively to use host and target
instead of build and host, respectively.
* Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
(host_cpu): Removed.
(target_cpu): New variable.
(CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
(BUILD_CC): Removed.
(BUILD_CFLAGS): Likewise.
(BUILD_CPPFLAGS): Likewise.
(TARGET_CC): New variable.
(TARGET_CFLAGS): Likewise.
(TARGET_CPPFLAGS): Likewise.
(TARGET_LDFLAGS): Likewise.
(AWK): Likewise.
(include): Use target_cpu instead of host_cpu.
(moddep.lst:): Use genmoddep.awk instead of genmoddep.
* DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
2006-05-28 23:01:43 +00:00
|
|
|
AWK = @AWK@
|
2005-08-07 17:12:52 +00:00
|
|
|
LIBCURSES = @LIBCURSES@
|
2009-07-16 14:53:33 +00:00
|
|
|
LIBUSB = @LIBUSB@
|
2009-11-20 09:28:42 +00:00
|
|
|
LIBSDL = @LIBSDL@
|
2009-10-14 16:17:18 +00:00
|
|
|
LIBPCIACCESS = @LIBPCIACCESS@
|
2006-01-03 17:58:02 +00:00
|
|
|
YACC = @YACC@
|
2009-11-20 21:39:07 +00:00
|
|
|
FONT_SOURCE = @FONT_SOURCE@
|
2002-12-27 08:53:07 +00:00
|
|
|
|
2006-12-13 22:30:19 +00:00
|
|
|
# Options.
|
2009-02-08 Marco Gerards <marco@gnu.org>
* Makefile.in (enable_grub_emu_usb): New variable.
* conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
(grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
`util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
(grub_emu_LDFLAGS): Add `$(LIBUSB)'.
(pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
`usbtest.mod' and `usbms.mod'.
(usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
(usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
(uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
(ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
(usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
variables.
* disk/usbms.c: New file.
* include/grub/usb.h: Likewise.
* include/grub/usbtrans.h: Likewise.
* include/grub/usbdesc.h: Likewise.
* bus/usb/usbtrans.c: Likewise.
* bus/usb/ohci.c: Likewise.
* bus/usb/uhci.c: Likewise.
* bus/usb/usbhub.c: Likewise.
* bus/usb/usb.c: Likewise.
* commands/usbtest.c: Likewise.
* util/usb.c: Likewise.
* include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
* configure.ac: Test for libusb presence.
* util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
2009-02-08 17:58:32 +00:00
|
|
|
enable_grub_emu_usb = @enable_grub_emu_usb@
|
2009-11-20 09:28:42 +00:00
|
|
|
enable_grub_emu_sdl = @enable_grub_emu_sdl@
|
2009-10-14 08:11:59 +00:00
|
|
|
enable_grub_emu_pci = @enable_grub_emu_pci@
|
2008-02-04 08:45:07 +00:00
|
|
|
enable_grub_fstest = @enable_grub_fstest@
|
2008-08-09 12:30:26 +00:00
|
|
|
enable_grub_pe2elf = @enable_grub_pe2elf@
|
2009-01-13 16:34:26 +00:00
|
|
|
enable_grub_mkfont = @enable_grub_mkfont@
|
|
|
|
freetype_cflags = @freetype_cflags@
|
|
|
|
freetype_libs = @freetype_libs@
|
2009-05-03 06:39:37 +00:00
|
|
|
enable_efiemu = @enable_efiemu@
|
2006-12-13 22:30:19 +00:00
|
|
|
|
2002-12-27 08:53:07 +00:00
|
|
|
### General variables.
|
|
|
|
|
2009-10-26 18:25:02 +00:00
|
|
|
RMKFILES = $(wildcard conf/*.rmk)
|
2008-09-09 13:58:21 +00:00
|
|
|
|
2002-12-27 08:53:07 +00:00
|
|
|
MKFILES = $(patsubst %.rmk,%.mk,$(RMKFILES))
|
|
|
|
|
2007-12-25 09:09:43 +00:00
|
|
|
PKGLIB = $(pkglib_IMAGES) $(pkglib_MODULES) $(pkglib_PROGRAMS) \
|
2009-06-12 02:10:21 +00:00
|
|
|
$(pkglib_DATA) $(pkglib_BUILDDIR)
|
2009-06-12 20:11:19 +00:00
|
|
|
PKGDATA = $(pkgdata_DATA)
|
2002-12-27 08:53:07 +00:00
|
|
|
PROGRAMS = $(bin_UTILITIES) $(sbin_UTILITIES)
|
2009-06-12 02:10:21 +00:00
|
|
|
SCRIPTS = $(bin_SCRIPTS) $(sbin_SCRIPTS) $(grub-mkconfig_SCRIPTS) \
|
|
|
|
$(lib_SCRIPTS)
|
2009-09-21 18:22:27 +00:00
|
|
|
INFOS = $(info_INFOS)
|
2002-12-27 08:53:07 +00:00
|
|
|
|
|
|
|
CLEANFILES =
|
2009-06-10 21:04:23 +00:00
|
|
|
MOSTLYCLEANFILES =
|
2002-12-27 08:53:07 +00:00
|
|
|
DISTCLEANFILES = config.status config.cache config.log config.h \
|
2010-03-04 15:08:46 +00:00
|
|
|
Makefile stamp-h stamp-h1 include/grub/cpu include/grub/machine \
|
2009-12-09 21:43:05 +00:00
|
|
|
gensymlist.sh genkernsyms.sh build_env.mk \
|
|
|
|
docs/grub.info docs/version.texi docs/stamp-vti
|
|
|
|
|
2009-09-06 10:25:19 +00:00
|
|
|
MAINTAINER_CLEANFILES = $(srcdir)/configure $(addprefix $(srcdir)/,$(MKFILES)) \
|
2009-09-21 18:22:27 +00:00
|
|
|
$(srcdir)/DISTLIST $(srcdir)/config.h.in $(srcdir)/stamp-h.in $(INFOS)
|
2002-12-27 08:53:07 +00:00
|
|
|
|
|
|
|
# The default target.
|
|
|
|
all: all-local
|
|
|
|
|
|
|
|
### Include an arch-specific Makefile.
|
|
|
|
$(addprefix $(srcdir)/,$(MKFILES)): %.mk: %.rmk genmk.rb
|
|
|
|
if test "x$(RUBY)" = x; then \
|
|
|
|
touch $@; \
|
|
|
|
else \
|
|
|
|
$(RUBY) $(srcdir)/genmk.rb < $< > $@; \
|
|
|
|
fi
|
|
|
|
|
2009-11-23 15:31:54 +00:00
|
|
|
ifeq ($(platform), emu)
|
|
|
|
include $(srcdir)/conf/any-emu.mk
|
|
|
|
else
|
2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
* util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
(target_cpu): New variable.
(pkglibdir): Use target_cpu instead of host_cpu.
* util/i386/pc/grub-install.in (host_cpu): Removed.
(target_cpu): New variable.
(pkglibdir): Use target_cpu instead of host_cpu.
* util/genmoddep.c: Removed.
* kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
instead of GRUB_HOST_SIZEOF_VOID_P.
* kern/dl.c: Likewise.
* include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
...
(GRUB_TARGET_SIZEOF_VOID_P): ... this.
(GRUB_HOST_SIZEOF_LONG): Renamed to ...
(GRUB_TARGET_SIZEOF_LONG): ... this.
(GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
(GRUB_TARGET_WORDS_BIGENDIAN): ... this.
* include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
to ...
(GRUB_TARGET_SIZEOF_VOID_P): ... this.
(GRUB_HOST_SIZEOF_LONG): Renamed to ...
(GRUB_TARGET_SIZEOF_LONG): ... this.
(GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
(GRUB_TARGET_WORDS_BIGENDIAN): ... this.
* include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
to ...
(GRUB_TARGET_SIZEOF_VOID_P): ... this.
(GRUB_HOST_SIZEOF_LONG): Renamed to ...
(GRUB_TARGET_SIZEOF_LONG): ... this.
(GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
(GRUB_TARGET_WORDS_BIGENDIAN): ... this.
* include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
[!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
instead of GRUB_HOST_SIZEOF_LONG.
[!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
GRUB_HOST_WORDS_BIGENDIAN to define or undefine
GRUB_CPU_WORDS_BIGENDIAN.
Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
grub_host_ssize_t.
* conf/i386-efi.rmk (noinst_UTILITIES): Removed.
(genmoddep_SOURCES): Likewise.
* conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
(genmoddep_SOURCES): Likewise.
* conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
(genmoddep_SOURCES): Likewise.
* conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
Likewise.
(genmoddep_SOURCES): Likewise.
* genmoddep.awk: New file.
* genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
(PModule::rule): Likewise.
(Program::rule): Likewise.
(Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
respectively.
* configure.ac: Rewritten intensively to use host and target
instead of build and host, respectively.
* Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
(host_cpu): Removed.
(target_cpu): New variable.
(CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
(BUILD_CC): Removed.
(BUILD_CFLAGS): Likewise.
(BUILD_CPPFLAGS): Likewise.
(TARGET_CC): New variable.
(TARGET_CFLAGS): Likewise.
(TARGET_CPPFLAGS): Likewise.
(TARGET_LDFLAGS): Likewise.
(AWK): Likewise.
(include): Use target_cpu instead of host_cpu.
(moddep.lst:): Use genmoddep.awk instead of genmoddep.
* DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
2006-05-28 23:01:43 +00:00
|
|
|
include $(srcdir)/conf/$(target_cpu)-$(platform).mk
|
2010-01-08 09:49:10 +00:00
|
|
|
# For tests.
|
|
|
|
include $(srcdir)/conf/tests.mk
|
2009-10-26 20:04:43 +00:00
|
|
|
# For external modules.
|
|
|
|
-include $(wildcard $(GRUB_CONTRIB)/*/conf/common.mk)
|
2009-11-24 11:29:17 +00:00
|
|
|
endif
|
2009-10-26 20:04:43 +00:00
|
|
|
|
2002-12-27 08:53:07 +00:00
|
|
|
### General targets.
|
|
|
|
|
2009-11-15 23:11:01 +00:00
|
|
|
CLEANFILES += $(pkglib_DATA) $(pkgdata_DATA) po/*.mo
|
2010-02-07 03:45:54 +00:00
|
|
|
ifneq ($(platform), emu)
|
2010-02-07 03:47:46 +00:00
|
|
|
pkglib_DATA += moddep.lst command.lst fs.lst partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst
|
2010-02-07 03:45:54 +00:00
|
|
|
endif
|
2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
* util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
(target_cpu): New variable.
(pkglibdir): Use target_cpu instead of host_cpu.
* util/i386/pc/grub-install.in (host_cpu): Removed.
(target_cpu): New variable.
(pkglibdir): Use target_cpu instead of host_cpu.
* util/genmoddep.c: Removed.
* kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
instead of GRUB_HOST_SIZEOF_VOID_P.
* kern/dl.c: Likewise.
* include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
...
(GRUB_TARGET_SIZEOF_VOID_P): ... this.
(GRUB_HOST_SIZEOF_LONG): Renamed to ...
(GRUB_TARGET_SIZEOF_LONG): ... this.
(GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
(GRUB_TARGET_WORDS_BIGENDIAN): ... this.
* include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
to ...
(GRUB_TARGET_SIZEOF_VOID_P): ... this.
(GRUB_HOST_SIZEOF_LONG): Renamed to ...
(GRUB_TARGET_SIZEOF_LONG): ... this.
(GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
(GRUB_TARGET_WORDS_BIGENDIAN): ... this.
* include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
to ...
(GRUB_TARGET_SIZEOF_VOID_P): ... this.
(GRUB_HOST_SIZEOF_LONG): Renamed to ...
(GRUB_TARGET_SIZEOF_LONG): ... this.
(GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
(GRUB_TARGET_WORDS_BIGENDIAN): ... this.
* include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
[!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
instead of GRUB_HOST_SIZEOF_LONG.
[!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
GRUB_HOST_WORDS_BIGENDIAN to define or undefine
GRUB_CPU_WORDS_BIGENDIAN.
Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
grub_host_ssize_t.
* conf/i386-efi.rmk (noinst_UTILITIES): Removed.
(genmoddep_SOURCES): Likewise.
* conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
(genmoddep_SOURCES): Likewise.
* conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
(genmoddep_SOURCES): Likewise.
* conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
Likewise.
(genmoddep_SOURCES): Likewise.
* genmoddep.awk: New file.
* genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
(PModule::rule): Likewise.
(Program::rule): Likewise.
(Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
respectively.
* configure.ac: Rewritten intensively to use host and target
instead of build and host, respectively.
* Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
(host_cpu): Removed.
(target_cpu): New variable.
(CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
(BUILD_CC): Removed.
(BUILD_CFLAGS): Likewise.
(BUILD_CPPFLAGS): Likewise.
(TARGET_CC): New variable.
(TARGET_CFLAGS): Likewise.
(TARGET_CPPFLAGS): Likewise.
(TARGET_LDFLAGS): Likewise.
(AWK): Likewise.
(include): Use target_cpu instead of host_cpu.
(moddep.lst:): Use genmoddep.awk instead of genmoddep.
* DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
2006-05-28 23:01:43 +00:00
|
|
|
moddep.lst: $(DEFSYMFILES) $(UNDSYMFILES) genmoddep.awk
|
|
|
|
cat $(DEFSYMFILES) /dev/null \
|
|
|
|
| $(AWK) -f $(srcdir)/genmoddep.awk $(UNDSYMFILES) > $@ \
|
2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
* genmk.rb: Fixed list rules moved to Makefile.in. Recognise
appending to variables with "+=".
(PModule): Use full pathname to generate *.lst filenames.
* Makefile.in: Fixed list rules moved from genmk.rb.
(.DELETE_ON_ERROR): New special target.
(RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
* conf/i386-pc.rmk: Include conf/common.mk.
(pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
minux.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
configfile.mod, search.mod, gzio.mod and test.mod.
(symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
(grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
(fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
(fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
(ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
(ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
(minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
(hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
(jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
(iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
(xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
(affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
(sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
(hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
(boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
(terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
(ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
(cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
(help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
(font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
(terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
(amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
(apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
here...
* conf/common.rmk: ... to here. New file.
* conf/common.mk: New file.
2005-11-18 14:56:55 +00:00
|
|
|
|| (rm -f $@; exit 1)
|
|
|
|
|
|
|
|
command.lst: $(COMMANDFILES)
|
|
|
|
cat $^ /dev/null | sort > $@
|
|
|
|
|
|
|
|
fs.lst: $(FSFILES)
|
|
|
|
cat $^ /dev/null | sort > $@
|
|
|
|
|
2008-04-13 10:55:19 +00:00
|
|
|
partmap.lst: $(PARTMAPFILES)
|
|
|
|
cat $^ /dev/null | sort > $@
|
|
|
|
|
2009-04-14 18:12:14 +00:00
|
|
|
handler.lst: $(HANDLERFILES)
|
|
|
|
cat $^ /dev/null | sort > $@
|
|
|
|
|
2009-12-25 02:37:20 +00:00
|
|
|
terminal.lst: $(TERMINALFILES)
|
|
|
|
cat $^ /dev/null | sort > $@
|
|
|
|
|
2009-04-25 12:18:25 +00:00
|
|
|
parttool.lst: $(PARTTOOLFILES)
|
|
|
|
cat $^ /dev/null | sort | uniq > $@
|
|
|
|
|
2009-12-12 00:43:32 +00:00
|
|
|
video.lst: $(VIDEOFILES)
|
|
|
|
cat $^ /dev/null | sort | uniq > $@
|
|
|
|
|
2009-12-23 16:33:35 +00:00
|
|
|
crypto.lst: lib/libgcrypt-grub/cipher/crypto.lst
|
|
|
|
cp $^ $@
|
|
|
|
|
2009-10-05 23:55:48 +00:00
|
|
|
ifneq (true, $(MAKEINFO))
|
2009-09-21 18:22:27 +00:00
|
|
|
info_INFOS += docs/grub.info
|
2009-10-05 23:55:48 +00:00
|
|
|
endif
|
2009-09-21 18:22:27 +00:00
|
|
|
|
|
|
|
MOSTLYCLEANFILES += vti.tmp
|
|
|
|
MAINTAINER_CLEANFILES += docs/stamp-vti docs/version.texi
|
|
|
|
docs/version.texi: docs/stamp-vti
|
2009-10-06 00:04:32 +00:00
|
|
|
docs/stamp-vti: docs/grub.texi configure.ac
|
2009-09-23 17:18:06 +00:00
|
|
|
$(MKDIR_P) docs
|
2009-09-21 18:22:27 +00:00
|
|
|
(set `$(SHELL) $(srcdir)/docs/mdate-sh $<`; \
|
|
|
|
echo "@set UPDATED $$1 $$2 $$3"; \
|
|
|
|
echo "@set UPDATED-MONTH $$2 $$3"; \
|
|
|
|
echo "@set EDITION $(PACKAGE_VERSION)"; \
|
|
|
|
echo "@set VERSION $(PACKAGE_VERSION)") > vti.tmp
|
2009-09-23 17:18:06 +00:00
|
|
|
@cmp -s vti.tmp $(builddir)/docs/version.texi \
|
|
|
|
|| (echo "Updating $(builddir)/docs/version.texi"; \
|
|
|
|
cp vti.tmp $(builddir)/docs/version.texi)
|
2009-09-21 18:22:27 +00:00
|
|
|
-@rm -f vti.tmp
|
2009-09-23 17:18:06 +00:00
|
|
|
@cp $(builddir)/docs/version.texi $@
|
2009-09-21 18:22:27 +00:00
|
|
|
|
|
|
|
# Use --force until such time as the documentation is cleaned up.
|
|
|
|
docs/grub.info: docs/grub.texi docs/version.texi docs/fdl.texi
|
2009-09-23 17:18:06 +00:00
|
|
|
$(MKDIR_P) docs
|
2009-10-26 18:02:30 +00:00
|
|
|
-$(MAKEINFO) -P $(builddir)/docs --no-split --force $< -o $@
|
2009-09-21 18:22:27 +00:00
|
|
|
|
2009-11-20 21:39:07 +00:00
|
|
|
ifeq (, $(FONT_SOURCE))
|
2007-12-25 09:09:43 +00:00
|
|
|
else
|
2009-01-17 09:38:38 +00:00
|
|
|
|
|
|
|
ifeq ($(enable_grub_mkfont),yes)
|
|
|
|
|
2010-01-14 21:17:05 +00:00
|
|
|
pkgdata_DATA += unicode.pf2 ascii.pf2 ascii.h
|
2010-03-04 14:50:57 +00:00
|
|
|
CLEANFILES += ascii.bitmaps
|
2008-07-22 22:23:45 +00:00
|
|
|
|
|
|
|
# Arrows and lines are needed to draw the menu, so we always include them
|
|
|
|
UNICODE_ARROWS=0x2190-0x2193
|
|
|
|
UNICODE_LINES=0x2501-0x251B
|
|
|
|
|
2009-11-20 21:39:07 +00:00
|
|
|
unicode.pf2: $(FONT_SOURCE) grub-mkfont
|
|
|
|
$(builddir)/grub-mkfont -o $@ $(FONT_SOURCE)
|
2009-01-02 15:26:06 +00:00
|
|
|
|
2009-11-20 21:39:07 +00:00
|
|
|
ascii.pf2: $(FONT_SOURCE) grub-mkfont
|
|
|
|
$(builddir)/grub-mkfont -o $@ $(FONT_SOURCE) -r 0x0-0x7f,$(UNICODE_ARROWS),$(UNICODE_LINES)
|
2010-01-10 23:33:57 +00:00
|
|
|
|
2010-01-14 21:17:05 +00:00
|
|
|
ascii.bitmaps: $(FONT_SOURCE) grub-mkfont
|
2010-01-10 23:33:57 +00:00
|
|
|
$(builddir)/grub-mkfont --ascii-bitmaps -o $@ $(FONT_SOURCE)
|
|
|
|
|
2010-01-14 21:17:05 +00:00
|
|
|
ascii.h: ascii.bitmaps grub-bin2h
|
|
|
|
$(builddir)/grub-bin2h ascii_bitmaps < $< > $@
|
2010-01-12 20:37:45 +00:00
|
|
|
|
|
|
|
TARGET_CFLAGS += -DUSE_ASCII_FAILBACK=1
|
2009-01-17 09:38:38 +00:00
|
|
|
endif
|
2007-12-25 09:09:43 +00:00
|
|
|
endif
|
|
|
|
|
2008-11-08 11:29:53 +00:00
|
|
|
# Used for building modules externally
|
|
|
|
pkglib_BUILDDIR += build_env.mk
|
|
|
|
build_env.mk: Makefile
|
|
|
|
(\
|
|
|
|
echo "TARGET_CC=$(TARGET_CC)" ; \
|
|
|
|
echo "TARGET_CFLAGS=$(TARGET_CFLAGS)" ; \
|
2009-06-04 19:53:52 +00:00
|
|
|
echo "TARGET_ASFLAGS=$(TARGET_ASFLAGS)" ; \
|
|
|
|
echo "TARGET_CPPFLAGS=$(TARGET_CPPFLAGS) -I$(pkglibdir) -I$(includedir)" ; \
|
2008-11-08 11:29:53 +00:00
|
|
|
echo "STRIP=$(STRIP)" ; \
|
2009-06-04 19:53:52 +00:00
|
|
|
echo "OBJCONV=$(OBJCONV)" ; \
|
|
|
|
echo "TARGET_MODULE_FORMAT=$(TARGET_MODULE_FORMAT)" ; \
|
|
|
|
echo "TARGET_APPLE_CC=$(TARGET_APPLE_CC)" ; \
|
2008-11-08 11:29:53 +00:00
|
|
|
echo "COMMON_ASFLAGS=$(COMMON_ASFLAGS)" ; \
|
|
|
|
echo "COMMON_CFLAGS=$(COMMON_CFLAGS)" ; \
|
|
|
|
echo "COMMON_LDFLAGS=$(COMMON_LDFLAGS)"\
|
|
|
|
) > $@
|
|
|
|
pkglib_BUILDDIR += config.h grub_script.tab.h
|
|
|
|
|
2010-02-07 03:45:54 +00:00
|
|
|
all-local: $(PROGRAMS) $(GRUB_EMU) $(PKGLIB) $(PKGDATA) $(SCRIPTS) $(INFOS) $(MKFILES) $(foreach lang, $(LINGUAS), po/$(lang).mo)
|
2002-12-27 08:53:07 +00:00
|
|
|
|
|
|
|
install: install-local
|
|
|
|
|
|
|
|
install-local: all
|
2009-06-11 21:00:57 +00:00
|
|
|
$(SHELL) $(mkinstalldirs) $(DESTDIR)$(pkglibdir)
|
2009-08-21 21:40:58 +00:00
|
|
|
rm -f $(DESTDIR)$(pkglibdir)/*
|
2007-12-25 09:09:43 +00:00
|
|
|
@list='$(PKGLIB)'; \
|
2005-03-02 21:52:38 +00:00
|
|
|
for file in $$list; do \
|
2007-05-07 09:25:23 +00:00
|
|
|
if test -f "$$file"; then dir=; else dir="$(srcdir)/"; fi; \
|
2002-12-27 08:53:07 +00:00
|
|
|
dest="`echo $$file | sed 's,.*/,,'`"; \
|
2006-05-08 19:29:10 +00:00
|
|
|
$(INSTALL_DATA) $$dir$$file $(DESTDIR)$(pkglibdir)/$$dest; \
|
2002-12-27 08:53:07 +00:00
|
|
|
done
|
2009-06-11 21:00:57 +00:00
|
|
|
$(SHELL) $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)
|
2007-12-25 09:09:43 +00:00
|
|
|
@list='$(PKGDATA)'; \
|
|
|
|
for file in $$list; do \
|
|
|
|
if test -f "$$file"; then dir=; else dir="$(srcdir)/"; fi; \
|
|
|
|
dest="`echo $$file | sed 's,.*/,,'`"; \
|
|
|
|
$(INSTALL_DATA) $$dir$$file $(DESTDIR)$(pkgdatadir)/$$dest; \
|
|
|
|
done
|
2009-06-11 21:00:57 +00:00
|
|
|
$(SHELL) $(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man1
|
2010-02-07 03:45:54 +00:00
|
|
|
@list='$(bin_UTILITIES) $(GRUB_EMU)'; for file in $$list; do \
|
2007-05-07 09:25:23 +00:00
|
|
|
if test -f "$$file"; then dir=; else dir="$(srcdir)/"; fi; \
|
2007-04-10 21:38:26 +00:00
|
|
|
dest="`echo $$file | sed 's,.*/,,' | sed '$(transform)'`"; \
|
2002-12-27 08:53:07 +00:00
|
|
|
$(INSTALL_PROGRAM) $$dir$$file $(DESTDIR)$(bindir)/$$dest; \
|
2009-04-26 14:14:05 +00:00
|
|
|
$(HELP2MAN) --section=1 -o $(DESTDIR)$(mandir)/man1/$$dest.1 $(builddir)/$$file; \
|
2002-12-27 08:53:07 +00:00
|
|
|
done
|
2009-06-11 21:00:57 +00:00
|
|
|
$(SHELL) $(mkinstalldirs) $(DESTDIR)$(sbindir) $(DESTDIR)$(mandir)/man8
|
2003-01-02 20:12:33 +00:00
|
|
|
@list='$(sbin_UTILITIES)'; for file in $$list; do \
|
2007-05-07 09:25:23 +00:00
|
|
|
if test -f "$$file"; then dir=; else dir="$(srcdir)/"; fi; \
|
2007-04-10 21:38:26 +00:00
|
|
|
dest="`echo $$file | sed 's,.*/,,' | sed '$(transform)'`"; \
|
2003-01-02 20:12:33 +00:00
|
|
|
$(INSTALL_PROGRAM) $$dir$$file $(DESTDIR)$(sbindir)/$$dest; \
|
2009-04-26 14:14:05 +00:00
|
|
|
$(HELP2MAN) --section=8 -o $(DESTDIR)$(mandir)/man8/$$dest.8 $(builddir)/$$file; \
|
2003-01-02 20:12:33 +00:00
|
|
|
done
|
2007-06-11 06:26:18 +00:00
|
|
|
@list='$(bin_SCRIPTS)'; for file in $$list; do \
|
|
|
|
if test -f "$$file"; then dir=; else dir="$(srcdir)/"; fi; \
|
|
|
|
dest="`echo $$file | sed 's,.*/,,' | sed '$(transform)'`"; \
|
|
|
|
$(INSTALL_SCRIPT) $$dir$$file $(DESTDIR)$(bindir)/$$dest; \
|
2009-04-26 14:14:05 +00:00
|
|
|
$(HELP2MAN) --section=1 -o $(DESTDIR)$(mandir)/man1/$$dest.1 $(builddir)/$$file; \
|
2007-06-11 06:26:18 +00:00
|
|
|
done
|
2005-07-24 18:16:26 +00:00
|
|
|
@list='$(sbin_SCRIPTS)'; for file in $$list; do \
|
2007-05-07 09:25:23 +00:00
|
|
|
if test -f "$$file"; then dir=; else dir="$(srcdir)/"; fi; \
|
2007-04-10 21:38:26 +00:00
|
|
|
dest="`echo $$file | sed 's,.*/,,' | sed '$(transform)'`"; \
|
2005-07-24 18:16:26 +00:00
|
|
|
$(INSTALL_SCRIPT) $$dir$$file $(DESTDIR)$(sbindir)/$$dest; \
|
2009-04-26 14:14:05 +00:00
|
|
|
$(HELP2MAN) --section=8 -o $(DESTDIR)$(mandir)/man8/$$dest.8 $(builddir)/$$file; \
|
2005-07-24 18:16:26 +00:00
|
|
|
done
|
2009-06-11 21:00:57 +00:00
|
|
|
$(SHELL) $(mkinstalldirs) $(DESTDIR)$(sysconfdir)/grub.d
|
2008-09-29 14:57:05 +00:00
|
|
|
@list='$(grub-mkconfig_SCRIPTS)'; for file in $$list; do \
|
2007-05-07 09:25:23 +00:00
|
|
|
if test -f "$$file"; then dir=; else dir="$(srcdir)/"; fi; \
|
2007-05-04 07:11:44 +00:00
|
|
|
dest="`echo $$file | sed 's,.*/,,' | sed '$(transform)'`"; \
|
|
|
|
$(INSTALL_SCRIPT) $$dir$$file $(DESTDIR)$(sysconfdir)/grub.d/$$dest; \
|
|
|
|
done
|
2008-09-29 14:57:05 +00:00
|
|
|
@list='$(grub-mkconfig_DATA)'; for file in $$list; do \
|
2007-05-07 09:25:23 +00:00
|
|
|
if test -f "$$file"; then dir=; else dir="$(srcdir)/"; fi; \
|
2007-05-04 07:11:44 +00:00
|
|
|
dest="`echo $$file | sed 's,.*/,,' | sed '$(transform)'`"; \
|
|
|
|
$(INSTALL_DATA) $$dir$$file $(DESTDIR)$(sysconfdir)/grub.d/$$dest; \
|
|
|
|
done
|
2009-06-11 21:00:57 +00:00
|
|
|
$(SHELL) $(mkinstalldirs) $(DESTDIR)$(libdir)/grub
|
2009-06-12 02:10:21 +00:00
|
|
|
@list='$(lib_SCRIPTS)'; \
|
2007-05-20 09:10:06 +00:00
|
|
|
for file in $$list; do \
|
|
|
|
if test -f "$$file"; then dir=; else dir="$(srcdir)/"; fi; \
|
|
|
|
dest="`echo $$file | sed 's,.*/,,'`"; \
|
|
|
|
$(INSTALL_DATA) $$dir$$file $(DESTDIR)$(libdir)/grub/$$dest; \
|
|
|
|
done
|
2009-11-24 17:43:46 +00:00
|
|
|
@langs='$(LINGUAS)'; \
|
|
|
|
for lang in $$langs; do \
|
2009-11-24 20:01:40 +00:00
|
|
|
$(SHELL) $(mkinstalldirs) $(DESTDIR)/$(datadir)/locale/$$lang/LC_MESSAGES; \
|
|
|
|
file="po/$$lang.mo"; \
|
|
|
|
if test -f "$$file"; then dir=; else dir="$(srcdir)/"; fi; \
|
|
|
|
$(INSTALL_DATA) $$dir$$file $(DESTDIR)/$(datadir)/locale/$$lang/LC_MESSAGES/$(PACKAGE).mo; \
|
2009-11-24 17:43:46 +00:00
|
|
|
done
|
2009-09-21 18:22:27 +00:00
|
|
|
$(SHELL) $(mkinstalldirs) $(DESTDIR)$(infodir)
|
|
|
|
@list='$(info_INFOS)'; \
|
|
|
|
for file in $$list; do \
|
|
|
|
if test -f "$$file"; then dir=; else dir="$(srcdir)/"; fi; \
|
|
|
|
dest="`echo $$file | sed 's,.*/,,'`"; \
|
|
|
|
$(INSTALL_DATA) $$dir$$file $(DESTDIR)$(infodir); \
|
|
|
|
if (install-info --version && \
|
|
|
|
install-info --version 2>&1 | sed 1q | grep -i -v debian) >/dev/null 2>&1; then \
|
|
|
|
install-info --info-dir="$(DESTDIR)$(infodir)" "$(DESTDIR)$(infodir)/$$dest" || :; \
|
|
|
|
fi; \
|
|
|
|
done
|
2002-12-27 08:53:07 +00:00
|
|
|
|
|
|
|
install-strip:
|
|
|
|
$(MAKE) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" install
|
|
|
|
|
|
|
|
uninstall:
|
2007-12-25 09:09:43 +00:00
|
|
|
@list='$(PKGLIB)'; \
|
2005-03-19 17:49:19 +00:00
|
|
|
for file in $$list; do \
|
2002-12-27 08:53:07 +00:00
|
|
|
dest="`echo $$file | sed 's,.*/,,'`"; \
|
2006-05-08 19:29:10 +00:00
|
|
|
rm -f $(DESTDIR)$(pkglibdir)/$$dest; \
|
2002-12-27 08:53:07 +00:00
|
|
|
done
|
2007-12-25 09:09:43 +00:00
|
|
|
@list='$(PKGDATA)'; \
|
|
|
|
for file in $$list; do \
|
|
|
|
dest="`echo $$file | sed 's,.*/,,'`"; \
|
|
|
|
rm -f $(DESTDIR)$(pkgdatadir)/$$dest; \
|
|
|
|
done
|
2010-02-07 03:45:54 +00:00
|
|
|
@list='$(bin_UTILITIES) $(bin_SCRIPTS) $(GRUB_EMU)'; for file in $$list; do \
|
2007-04-10 21:38:26 +00:00
|
|
|
dest="`echo $$file | sed 's,.*/,,' | sed '$(transform)'`"; \
|
2002-12-27 08:53:07 +00:00
|
|
|
rm -f $(DESTDIR)$(bindir)/$$dest; \
|
2009-06-12 02:42:26 +00:00
|
|
|
rm -f $(DESTDIR)$(mandir)/man1/$$dest.1; \
|
2002-12-27 08:53:07 +00:00
|
|
|
done
|
2005-07-24 18:16:26 +00:00
|
|
|
@list='$(sbin_UTILITIES) $(sbin_SCRIPTS)'; for file in $$list; do \
|
2007-04-10 21:38:26 +00:00
|
|
|
dest="`echo $$file | sed 's,.*/,,' | sed '$(transform)'`"; \
|
2003-01-02 20:12:33 +00:00
|
|
|
rm -f $(DESTDIR)$(sbindir)/$$dest; \
|
2009-06-12 02:42:26 +00:00
|
|
|
rm -f $(DESTDIR)$(mandir)/man8/$$dest.8; \
|
2003-01-02 20:12:33 +00:00
|
|
|
done
|
2008-09-29 14:57:05 +00:00
|
|
|
@list='$(grub-mkconfig_SCRIPTS) $(grub-mkconfig_DATA)'; for file in $$list; do \
|
2008-01-08 10:00:42 +00:00
|
|
|
dest="`echo $$file | sed 's,.*/,,' | sed '$(transform)'`"; \
|
|
|
|
rm -f $(DESTDIR)$(sysconfdir)/grub.d/$$dest; \
|
|
|
|
done
|
2009-06-12 02:10:21 +00:00
|
|
|
@list='$(lib_SCRIPTS)'; \
|
2009-06-08 13:11:58 +00:00
|
|
|
for file in $$list; do \
|
|
|
|
dest="`echo $$file | sed 's,.*/,,'`"; \
|
|
|
|
echo rm -f $(DESTDIR)$(libdir)/$$dest; \
|
|
|
|
rm -f $(DESTDIR)$(libdir)/grub/$$dest; \
|
|
|
|
done
|
2009-09-21 18:22:27 +00:00
|
|
|
@list='$(info_INFOS)'; \
|
|
|
|
for file in $$list; do \
|
|
|
|
dest="`echo $$file | sed 's,.*/,,'`"; \
|
|
|
|
if (install-info --version && \
|
|
|
|
install-info --version 2>&1 | sed 1q | grep -i -v debian) >/dev/null 2>&1; then \
|
|
|
|
if install-info --info-dir="$(DESTDIR)$(infodir)" --remove "$(DESTDIR)$(infodir)/$$dest"; then \
|
|
|
|
:; \
|
|
|
|
else \
|
|
|
|
test ! -f "$(DESTDIR)$(infodir)/$$dest" || exit 1; \
|
|
|
|
fi; \
|
|
|
|
fi; \
|
|
|
|
rm -f $(DESTDIR)$(infodir)/$$dest; \
|
|
|
|
done
|
2002-12-27 08:53:07 +00:00
|
|
|
|
2009-09-12 07:38:50 +00:00
|
|
|
clean: $(CLEAN_IMAGE_TARGETS) $(CLEAN_MODULE_TARGETS) $(CLEAN_UTILITY_TARGETS)
|
2002-12-27 08:53:07 +00:00
|
|
|
-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
|
|
|
|
|
2009-09-12 07:38:50 +00:00
|
|
|
mostlyclean: clean $(MOSTLYCLEAN_IMAGE_TARGETS) $(MOSTLYCLEAN_MODULE_TARGETS) $(MOSTLYCLEAN_UTILITY_TARGETS)
|
2002-12-27 08:53:07 +00:00
|
|
|
-test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
|
|
|
|
|
|
|
|
distclean: mostlyclean
|
|
|
|
-test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
|
|
|
|
-rm -rf $(srcdir)/autom4te.cache
|
|
|
|
|
|
|
|
maintainer-clean: distclean
|
|
|
|
-test -z "$(MAINTAINER_CLEANFILES)" || rm -f $(MAINTAINER_CLEANFILES)
|
|
|
|
|
|
|
|
info:
|
|
|
|
|
|
|
|
dvi:
|
|
|
|
|
|
|
|
distdir=$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)
|
|
|
|
|
2005-03-19 17:49:19 +00:00
|
|
|
DISTLIST: gendistlist.sh
|
2009-06-11 21:00:57 +00:00
|
|
|
$(SHELL) $(srcdir)/gendistlist.sh > $(srcdir)/DISTLIST
|
2005-03-19 17:49:19 +00:00
|
|
|
|
|
|
|
distdir: DISTLIST
|
2002-12-27 08:53:07 +00:00
|
|
|
-chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
|
2009-06-11 21:00:57 +00:00
|
|
|
$(SHELL) $(mkinstalldirs) $(distdir)
|
2005-03-19 17:49:19 +00:00
|
|
|
for i in `cat $(srcdir)/DISTLIST`; do \
|
2002-12-27 08:53:07 +00:00
|
|
|
dir=`echo "$$i" | sed 's:/[^/]*$$::'`; \
|
|
|
|
if test -d $(srcdir)/$$dir; then \
|
2009-06-11 21:00:57 +00:00
|
|
|
$(SHELL) $(mkinstalldirs) $(distdir)/$$dir; \
|
2002-12-27 08:53:07 +00:00
|
|
|
fi; \
|
|
|
|
cp -p $(srcdir)/$$i $(distdir)/$$i || exit 1; \
|
|
|
|
done
|
|
|
|
chmod -R a+r $(distdir)
|
|
|
|
|
|
|
|
GZIP_ENV = --best
|
|
|
|
|
|
|
|
dist: distdir
|
|
|
|
tar chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
|
|
|
|
-chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
|
|
|
|
|
|
|
|
distcheck: dist
|
|
|
|
-chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
|
|
|
|
GZIP=$(GZIP_ENV) gzip -cd $(distdir).tar.gz | tar xf -
|
|
|
|
chmod -R a-w $(distdir)
|
|
|
|
chmod a+w $(distdir)
|
|
|
|
mkdir $(distdir)/=build
|
|
|
|
mkdir $(distdir)/=inst
|
|
|
|
chmod a-w $(distdir)
|
|
|
|
dc_instdir=`CDPATH=: && cd $(distdir)/=inst && pwd` \
|
|
|
|
&& cd $(distdir)/=build \
|
2009-06-11 21:00:57 +00:00
|
|
|
&& $(SHELL) ../configure --srcdir=.. --prefix=$$dc_instdir \
|
2008-01-08 10:00:42 +00:00
|
|
|
&& $(MAKE) all dvi check install && $(MAKE) uninstall \
|
2002-12-27 08:53:07 +00:00
|
|
|
&& (test `find $$dc_instdir -type f -print | wc -l` -le 1 \
|
|
|
|
|| (echo "Error: files left after uninstall" 1>&2; \
|
|
|
|
exit 1)) \
|
2008-01-08 10:00:42 +00:00
|
|
|
&& $(MAKE) dist && $(MAKE) distclean \
|
2002-12-27 08:53:07 +00:00
|
|
|
&& rm -f $(distdir).tar.gz \
|
|
|
|
&& (test `find . -type f -print | wc -l` -eq 0 \
|
|
|
|
|| (echo "Error: files left after distclean" 1>&2; \
|
|
|
|
exit 1))
|
|
|
|
-chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir)
|
|
|
|
@echo "$(distdir).tar.gz is ready for distribution" | \
|
|
|
|
sed 'h;s/./=/g;p;x;p;x'
|
|
|
|
|
2010-01-12 04:46:17 +00:00
|
|
|
check: all $(UNIT_TESTS) $(FUNCTIONAL_TESTS) $(SCRIPTED_TESTS)
|
|
|
|
@list="$(UNIT_TESTS)"; \
|
2010-01-28 15:27:41 +00:00
|
|
|
set -e; \
|
2010-01-08 11:05:32 +00:00
|
|
|
for file in $$list; do \
|
|
|
|
$(builddir)/$$file; \
|
|
|
|
done
|
2010-01-12 04:46:17 +00:00
|
|
|
@list="$(FUNCTIONAL_TESTS)"; \
|
2010-01-28 15:27:41 +00:00
|
|
|
set -e; \
|
2010-01-12 04:46:17 +00:00
|
|
|
for file in $$list; do \
|
|
|
|
mod=`basename $$file .mod`; \
|
|
|
|
echo "insmod functional_test; insmod $$mod; functional_test" \
|
|
|
|
| $(builddir)/grub-shell; \
|
|
|
|
done
|
|
|
|
@list="$(SCRIPTED_TESTS)"; \
|
2010-01-28 15:27:41 +00:00
|
|
|
set -e; \
|
2010-01-08 09:49:10 +00:00
|
|
|
for file in $$list; do \
|
2010-01-28 15:27:41 +00:00
|
|
|
$(builddir)/$$file; \
|
2010-01-08 09:49:10 +00:00
|
|
|
done
|
2002-12-27 08:53:07 +00:00
|
|
|
|
|
|
|
.SUFFIX:
|
|
|
|
.SUFFIX: .c .o .S .d
|
|
|
|
|
|
|
|
# Regenerate configure and Makefile automatically.
|
2009-11-18 20:57:57 +00:00
|
|
|
$(srcdir)/aclocal.m4: configure.ac acinclude.m4
|
|
|
|
cd $(srcdir) && aclocal
|
|
|
|
|
2002-12-27 08:53:07 +00:00
|
|
|
$(srcdir)/configure: configure.ac aclocal.m4
|
|
|
|
cd $(srcdir) && autoconf
|
|
|
|
|
|
|
|
$(srcdir)/config.h.in: stamp-h.in
|
|
|
|
$(srcdir)/stamp-h.in: configure.ac aclocal.m4
|
|
|
|
cd $(srcdir) && autoheader
|
|
|
|
echo timestamp > $(srcdir)/stamp-h.in
|
|
|
|
|
|
|
|
config.h: stamp-h
|
|
|
|
stamp-h: config.h.in config.status
|
2009-06-11 21:00:57 +00:00
|
|
|
$(SHELL) ./config.status
|
2002-12-27 08:53:07 +00:00
|
|
|
|
|
|
|
Makefile: Makefile.in config.status
|
2009-06-11 21:00:57 +00:00
|
|
|
$(SHELL) ./config.status
|
2002-12-27 08:53:07 +00:00
|
|
|
|
|
|
|
config.status: configure
|
2009-06-11 21:00:57 +00:00
|
|
|
$(SHELL) ./config.status --recheck
|
2002-12-27 08:53:07 +00:00
|
|
|
|
2006-04-26 21:58:36 +00:00
|
|
|
gensymlist.sh: gensymlist.sh.in config.status
|
2009-06-11 21:00:57 +00:00
|
|
|
$(SHELL) ./config.status
|
2006-04-26 21:58:36 +00:00
|
|
|
|
|
|
|
genkernsyms.sh: genkernsyms.sh.in config.status
|
2009-06-11 21:00:57 +00:00
|
|
|
$(SHELL) ./config.status
|
2006-04-26 21:58:36 +00:00
|
|
|
|
2009-11-21 13:48:15 +00:00
|
|
|
$(srcdir)/po/$(PACKAGE).pot: po/POTFILES po/POTFILES-shell
|
2009-12-21 22:06:04 +00:00
|
|
|
cd $(srcdir) && $(XGETTEXT) -ctranslate --from-code=utf-8 -o $@ -f $< --keyword=_ --keyword=N_
|
|
|
|
cd $(srcdir) && $(XGETTEXT) -ctranslate --from-code=utf-8 -o $@ -f po/POTFILES-shell -j --language=Shell
|
2009-11-15 23:11:01 +00:00
|
|
|
|
2009-11-30 01:25:57 +00:00
|
|
|
$(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): po/$(PACKAGE).pot
|
2009-11-21 13:48:15 +00:00
|
|
|
$(MSGMERGE) -U $@ $^
|
2009-11-15 23:11:01 +00:00
|
|
|
|
|
|
|
po/%.mo: po/%.po
|
|
|
|
$(MKDIR_P) $$(dirname $@)
|
2009-11-17 11:20:39 +00:00
|
|
|
$(MSGFMT) -c --statistics -o $@ $^
|
2009-11-15 23:11:01 +00:00
|
|
|
|
2002-12-27 08:53:07 +00:00
|
|
|
.PHONY: all install install-strip uninstall clean mostlyclean distclean
|
|
|
|
.PHONY: maintainer-clean info dvi dist check
|
|
|
|
|
|
|
|
# Prevent an overflow.
|
|
|
|
.NOEXPORT:
|
2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
* genmk.rb: Fixed list rules moved to Makefile.in. Recognise
appending to variables with "+=".
(PModule): Use full pathname to generate *.lst filenames.
* Makefile.in: Fixed list rules moved from genmk.rb.
(.DELETE_ON_ERROR): New special target.
(RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
* conf/i386-pc.rmk: Include conf/common.mk.
(pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
minux.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
configfile.mod, search.mod, gzio.mod and test.mod.
(symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
(grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
(fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
(fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
(ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
(ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
(minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
(hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
(jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
(iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
(xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
(affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
(sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
(hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
(boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
(terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
(ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
(cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
(help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
(font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
(terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
(amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
(apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
here...
* conf/common.rmk: ... to here. New file.
* conf/common.mk: New file.
2005-11-18 14:56:55 +00:00
|
|
|
|
|
|
|
.DELETE_ON_ERROR:
|