]>
code.delx.au - refind/blob - Makefile
3 # This program is licensed under the terms of the GNU GPL, version 3,
4 # or (at your option) any later version.
5 # You should have received a copy of the GNU General Public License
6 # along with this program. If not, see <http://www.gnu.org/licenses/>.
14 export EDK2BASE
=/usr
/local
/UDK2014
/MyWorkSpace
15 export REFIND_VERSION
='L"0.10.4"'
17 # The "all" target builds with the TianoCore library if possible, but falls
18 # back on the more easily-installed GNU-EFI library if TianoCore isn't
19 # installed at $(EDK2BASE)
21 ifneq ($(wildcard $(EDK2BASE
)/*),)
22 @echo
"Found $(EDK2BASE); building with TianoCore"
25 @echo
"Did not find $(EDK2BASE); building with GNU-EFI"
29 # The "fs" target, like "all," attempts to build with TianoCore but falls
32 ifneq ($(wildcard $(EDK2BASE
)/*),)
33 @echo
"Found $(EDK2BASE); building with TianoCore"
36 @echo
"Did not find $(EDK2BASE); building with GNU-EFI"
40 # Likewise for GPTsync....
42 ifneq ($(wildcard $(EDK2BASE
)/*),)
43 @echo
"Found $(EDK2BASE); building with TianoCore"
46 @echo
"Did not find $(EDK2BASE); building with GNU-EFI"
50 # Don't build gptsync under TianoCore by default because it errors out when
51 # using a cross-compiler on an x86-64 system. Because gptsync is pretty
52 # useless on ARM64, skipping it is no big deal....
54 +make MAKEWITH
=TIANO AR_TARGET
=EfiLib
-C
$(EFILIB_DIR
) -f Make.tiano
55 +make MAKEWITH
=TIANO AR_TARGET
=libeg
-C
$(LIBEG_DIR
) -f Make.tiano
56 +make MAKEWITH
=TIANO AR_TARGET
=mok
-C
$(MOK_DIR
) -f Make.tiano
57 +make MAKEWITH
=TIANO BUILDME
=refind DLL_TARGET
=refind
-C
$(LOADER_DIR
) -f Make.tiano
58 ifneq ($(ARCH
),aarch64
)
59 +make MAKEWITH
=TIANO
-C
$(GPTSYNC_DIR
) -f Make.tiano
61 # +make MAKEWITH=TIANO -C $(FS_DIR)
64 +make MAKEWITH
=GNUEFI
-C
$(LIBEG_DIR
)
65 +make MAKEWITH
=GNUEFI
-C
$(MOK_DIR
)
66 +make MAKEWITH
=GNUEFI
-C
$(EFILIB_DIR
)
67 +make MAKEWITH
=GNUEFI
-C
$(LOADER_DIR
)
68 +make MAKEWITH
=GNUEFI
-C
$(GPTSYNC_DIR
) gnuefi
69 # +make MAKEWITH=GNUEFI -C $(FS_DIR) all_gnuefi
72 +make MAKEWITH
=TIANO
-C
$(FS_DIR
)
75 +make MAKEWITH
=GNUEFI
-C
$(FS_DIR
) all_gnuefi
78 +make MAKEWITH
=TIANO
-C
$(GPTSYNC_DIR
) -f Make.tiano
81 +make MAKEWITH
=GNUEFI
-C
$(GPTSYNC_DIR
) gnuefi
84 make
-C
$(LIBEG_DIR
) clean
85 make
-C
$(MOK_DIR
) clean
86 make
-C
$(LOADER_DIR
) clean
87 make
-C
$(EFILIB_DIR
) clean
88 make
-C
$(FS_DIR
) clean
89 make
-C
$(GPTSYNC_DIR
) clean
92 # NOTE TO DISTRIBUTION MAINTAINERS:
93 # The "install" target installs the program directly to the ESP
94 # and it modifies the *CURRENT COMPUTER's* NVRAM. Thus, you should
95 # *NOT* use this target as part of the build process for your
96 # binary packages (RPMs, Debian packages, etc.). (Gentoo could
97 # use it in an ebuild, though....) You COULD, however, copy the
98 # files to a directory somewhere (/usr/share/refind or whatever)
99 # and then call refind-install as part of the binary package
100 # installation process.