]> code.delx.au - refind/blob - Makefile
Changes related to new shim/MOK code.
[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 MOK_DIR=mok
13 EFILIB_DIR=EfiLib
14
15 # Build rEFInd, including libeg
16 all: tiano
17
18 gnuefi:
19 make -C $(LIBEG_DIR)
20 make -C $(MOK_DIR)
21 make -C $(LOADER_DIR)
22 # make -C $(FS_DIR)
23
24 fs:
25 make -C $(FS_DIR)
26
27 tiano:
28 make AR_TARGET=EfiLib -C $(EFILIB_DIR) -f Make.tiano
29 make AR_TARGET=libeg -C $(LIBEG_DIR) -f Make.tiano
30 make AR_TARGET=mok -C $(MOK_DIR) -f Make.tiano
31 make BUILDME=refind DLL_TARGET=refind -C $(LOADER_DIR) -f Make.tiano
32
33 clean:
34 make -C $(LIBEG_DIR) clean
35 make -C $(MOK_DIR) clean
36 make -C $(LOADER_DIR) clean
37 make -C $(EFILIB_DIR) clean -f Make.tiano
38 make -C $(FS_DIR) clean
39 rm -f include/*~
40
41 # NOTE TO DISTRIBUTION MAINTAINERS:
42 # The "install" target installs the program directly to the ESP
43 # and it modifies the *CURRENT COMPUTER's* NVRAM. Thus, you should
44 # *NOT* use this target as part of the build process for your
45 # binary packages (RPMs, Debian packages, etc.). (Gentoo could
46 # use it in an ebuild, though....) You COULD, however, copy the
47 # files to a directory somewhere (/usr/share/refind or whatever)
48 # and then call install.sh as part of the binary package
49 # installation process.
50
51 install:
52 ./install.sh
53
54 # DO NOT DELETE