]> code.delx.au - refind/blobdiff - filesystems/Makefile
New ability to specify volume labels in "dont_scan_dirs" token to
[refind] / filesystems / Makefile
index 902df494f93da66dd8af691cce34af391b096e47..cf600670f43f5998469b8eec74b7cd70eeca4e82 100644 (file)
@@ -1,38 +1,72 @@
 # meta-Makefile for rEFInd filesystem drivers
 #
-# Most of the functionality is in Make.common; this Makefile merely
-# deletes critical temporary files and calls Make.common with the
+# Most of the functionality is in Make.tiano; this Makefile merely
+# deletes critical temporary files and calls Make.tiano with the
 # name of the driver to be built. This is done because of a dependency
 # in the fsw_efi.c file on the filesystem type; this file must be
 # recompiled for each new filesystem built.
 
 INSTALL_DIR = /boot/efi/EFI/refind/drivers
 
-FILESYSTEMS = ext2 reiserfs iso9660 hfs
+FILESYSTEMS = ext2 ext4 reiserfs iso9660 hfs
+FILESYSTEMS_GNUEFI = ext2_gnuefi ext4_gnuefi reiserfs_gnuefi iso9660_gnuefi hfs_gnuefi
 TEXTFILES = $(FILESYSTEMS:=*.txt)
 
+# Build the drivers with TianoCore EDK2.....
+
 all:   $(FILESYSTEMS)
 
 ext2:
-       rm -f fsw_efi.o
-       make DRIVERNAME=ext2 -f Make.common
+       rm -f fsw_efi.obj
+       +make DRIVERNAME=ext2 -f Make.tiano
+
+ext4:
+       rm -f fsw_efi.obj
+       +make DRIVERNAME=ext4 -f Make.tiano
 
 reiserfs:
-       rm -f fsw_efi.o
-       make DRIVERNAME=reiserfs -f Make.common
+       rm -f fsw_efi.obj
+       +make DRIVERNAME=reiserfs -f Make.tiano
 
 iso9660:
-       rm -f fsw_efi.o
-       make DRIVERNAME=iso9660 -f Make.common
+       rm -f fsw_efi.obj
+       +make DRIVERNAME=iso9660 -f Make.tiano
 
 hfs:
+       rm -f fsw_efi.obj
+       +make DRIVERNAME=hfs -f Make.tiano
+
+# Build the drivers with GNU-EFI....
+
+gnuefi: $(FILESYSTEMS_GNUEFI)
+
+all_gnuefi:    $(FILESYSTEMS_GNUEFI)
+
+ext2_gnuefi:
+       rm -f fsw_efi.o
+       +make DRIVERNAME=ext2 -f Make.gnuefi
+
+ext4_gnuefi:
+       rm -f fsw_efi.o
+       +make DRIVERNAME=ext4 -f Make.gnuefi
+
+reiserfs_gnuefi:
+       rm -f fsw_efi.o
+       +make DRIVERNAME=reiserfs -f Make.gnuefi
+
+iso9660_gnuefi:
+       rm -f fsw_efi.o
+       +make DRIVERNAME=iso9660 -f Make.gnuefi
+
+hfs_gnuefi:
        rm -f fsw_efi.o
-       make DRIVERNAME=hfs -f Make.common
+       +make DRIVERNAME=hfs -f Make.gnuefi
 
 # utility rules
 
 clean:
-       rm -f *~ *.bak *.o *.efi *.dll err.txt $(TEXTFILES)
+       rm -f *~ *.bak *.o *.obj *.so *.efi *.dll err.txt $(TEXTFILES)
+       +make -C test clean
 
 
 install: