#
# Makefile for FATfs
#

FATFS_PRJ = fatfs.asm \
            fat_drives.asm \
            fat_buffers.asm \
            fat_fat.asm \
            fat_cluster.asm \
            fat_dirs.asm \
            fat_files.asm

fatfs:
	$(Z80ASM) -b -l -ofatfs.bin $(FATFS_PRJ)
	$(Z80ASM) -b -l -ofatfs.pkg fatfspkgwrapper.asm
	$(TAPCAT) -N fatfs.tap fatfs.pkg
	$(TAPECONV) fatfs.tap fatfs.tzx

distrib:
	$(ZIPUP) fatfs_src.zip *.def *.asm Makefile
	$(INSTALL) *.pkg *.tap *.tzx *.zip $(INSTALLDIR_RESIDOS)

clean:
	$(RM) *.obj *.bin *.map *.lst *.sym *.err
	$(RM) *.pkg *.tap *.tzx *.zip

