]> code.delx.au - refind/blobdiff - Makefile
Move details of refind-install documentation from installing.html to a
[refind] / Makefile
index e6f6ca0688c87c909919f693313f731c2cade396..f611cb9e54cc3ca854840804b7b08a609eda0ec5 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,21 +2,50 @@
 CC=gcc
 CXX=g++
 CXXFLAGS=-O2 -fpic -D_REENTRANT -D_GNU_SOURCE -Wall -g
-NAMES=prefit
+NAMES=refind
 SRCS=$(NAMES:=.c)
 OBJS=$(NAMES:=.o)
 HEADERS=$(NAMES:=.h)
 LOADER_DIR=refind
-LIB_DIR=libeg
+FS_DIR=filesystems
+LIBEG_DIR=libeg
+MOK_DIR=mok
+GPTSYNC_DIR=gptsync
+EFILIB_DIR=EfiLib
 
-# Build the Symbiote library itself.
-all:
-       make -C $(LIB_DIR)
-       make -C $(LOADER_DIR)
+# Build rEFInd, including libeg
+all:   tiano
+
+gnuefi:
+       +make -C $(LIBEG_DIR)
+       +make -C $(MOK_DIR)
+       +make -C $(EFILIB_DIR)
+       +make -C $(LOADER_DIR)
+       +make -C $(GPTSYNC_DIR) gnuefi
+#      +make -C $(FS_DIR) all_gnuefi
+
+fs:
+       +make -C $(FS_DIR)
+
+fs_gnuefi:
+       +make -C $(FS_DIR) all_gnuefi
+
+tiano:
+       +make AR_TARGET=EfiLib -C $(EFILIB_DIR) -f Make.tiano
+       +make AR_TARGET=libeg -C $(LIBEG_DIR) -f Make.tiano
+       +make AR_TARGET=mok -C $(MOK_DIR) -f Make.tiano
+       +make BUILDME=refind DLL_TARGET=refind -C $(LOADER_DIR) -f Make.tiano
+       +make -C $(GPTSYNC_DIR) -f Make.tiano
+#      +make -C $(FS_DIR)
 
 clean:
-       make -C $(LIB_DIR) clean
+       make -C $(LIBEG_DIR) clean
+       make -C $(MOK_DIR) clean
        make -C $(LOADER_DIR) clean
+       make -C $(EFILIB_DIR) clean
+       make -C $(FS_DIR) clean
+       make -C $(GPTSYNC_DIR) clean
+       rm -f include/*~
 
 # NOTE TO DISTRIBUTION MAINTAINERS:
 # The "install" target installs the program directly to the ESP
@@ -25,10 +54,10 @@ clean:
 # binary packages (RPMs, Debian packages, etc.). (Gentoo could
 # use it in an ebuild, though....) You COULD, however, copy the
 # files to a directory somewhere (/usr/share/refind or whatever)
-# and then call install.sh as part of the binary package
+# and then call refind-install as part of the binary package
 # installation process.
 
 install:
-       ./install.sh
+       ./refind-install
 
 # DO NOT DELETE