]> code.delx.au - refind/blob - Makefile
Version supports Secure Boot/MOK verification of binaries.
[refind] / Makefile
1 # Makefile for rEFInd
2 CC=gcc
3 CXX=g++
4 CXXFLAGS=-O2 -fpic -D_REENTRANT -D_GNU_SOURCE -Wall -g
5 NAMES=refind
6 SRCS=$(NAMES:=.c)
7 OBJS=$(NAMES:=.o)
8 HEADERS=$(NAMES:=.h)
9 LOADER_DIR=refind
10 FS_DIR=filesystems
11 LIBEG_DIR=libeg
12 EFILIB_DIR=EfiLib
13
14 # Build rEFInd, including libeg
15 all: tiano
16
17 gnuefi:
18 make -C $(LIBEG_DIR)
19 make -C $(LOADER_DIR)
20 # make -C $(FS_DIR)
21
22 fs:
23 make -C $(FS_DIR)
24
25 tiano:
26 make AR_TARGET=EfiLib -C $(EFILIB_DIR) -f Make.tiano
27 make AR_TARGET=libeg -C $(LIBEG_DIR) -f Make.tiano
28 make BUILDME=refind DLL_TARGET=refind -C $(LOADER_DIR) -f Make.tiano
29
30 clean:
31 make -C $(LIBEG_DIR) clean
32 make -C $(LOADER_DIR) clean
33 make -C $(EFILIB_DIR) clean -f Make.tiano
34 make -C $(FS_DIR) clean
35 rm -f include/*~
36
37 # NOTE TO DISTRIBUTION MAINTAINERS:
38 # The "install" target installs the program directly to the ESP
39 # and it modifies the *CURRENT COMPUTER's* NVRAM. Thus, you should
40 # *NOT* use this target as part of the build process for your
41 # binary packages (RPMs, Debian packages, etc.). (Gentoo could
42 # use it in an ebuild, though....) You COULD, however, copy the
43 # files to a directory somewhere (/usr/share/refind or whatever)
44 # and then call install.sh as part of the binary package
45 # installation process.
46
47 install:
48 ./install.sh
49
50 # DO NOT DELETE