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