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