]> code.delx.au - refind/blobdiff - Makefile
0.4.5 release
[refind] / Makefile
index 704334ffdcbcc17111b94ae23501ea5dc4ced7f5..348592c398231fb0951ba5f0de658e6dc97658b9 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -7,17 +7,44 @@ SRCS=$(NAMES:=.c)
 OBJS=$(NAMES:=.o)
 HEADERS=$(NAMES:=.h)
 LOADER_DIR=refind
-LIB_DIR=libeg
+FS_DIR=filesystems
+LIBEG_DIR=libeg
+EFILIB_DIR=EfiLib
 
-# Build the Symbiote library itself.
-all:
-       make -C $(LIB_DIR)
+# Build rEFInd, including libeg
+all:   gnuefi
+
+gnuefi:
+       make -C $(LIBEG_DIR)
        make -C $(LOADER_DIR)
+#      make -C $(FS_DIR)
+
+fs:
+       make -C $(FS_DIR)
+
+tiano:
+       make AR_TARGET=EfiLib -C $(EFILIB_DIR) -f Make.tiano
+       make AR_TARGET=libeg -C $(LIBEG_DIR) -f Make.tiano
+       make BUILDME=refind DLL_TARGET=refind -C $(LOADER_DIR) -f Make.tiano
 
 clean:
-       make -C $(LIB_DIR) clean
+       make -C $(LIBEG_DIR) clean
        make -C $(LOADER_DIR) clean
+       make -C $(EFILIB_DIR) clean -f Make.tiano
+       make -C $(FS_DIR) clean
+       rm -f include/*~
+
+# NOTE TO DISTRIBUTION MAINTAINERS:
+# The "install" target installs the program directly to the ESP
+# and it modifies the *CURRENT COMPUTER's* NVRAM. Thus, you should
+# *NOT* use this target as part of the build process for your
+# 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
+# installation process.
 
 install:
        ./install.sh
+
 # DO NOT DELETE