Mercurial > hg > Members > kono > nitros9-code
view 3rdparty/drivers/mmc/makefile @ 3215:195c09cade21
Updated MMC Driver makefile so it will have place holders for
dsk, dskclean, and dskcopy so that make does not error out when
chaining into the driver tree to build disk images where applicable.
author | David Ladd <drencor-xeen@users.sourceforge.net> |
---|---|
date | Wed, 20 Dec 2017 16:07:36 -0600 |
parents | 28ed72477814 |
children |
line wrap: on
line source
# Jim Hathaway's MultiMediaCard NitrOS-9 driver include ../../../rules.mak DEPENDS = ./makefile DRVRS = mmcdrv_l1.dr mmcdrv_l2.dr mmcdrv_l1s.dr mmcdrv_l2s.dr DESCS = h0_mmc_l1.dd h0_mmc_l2.dd h1_mmc_l1.dd h1_mmc_l2.dd dd_mmc_l1.dd dd_mmc_l2.dd ALLOBJS = $(DRVRS) $(DESCS) MMCL1FLAGS = $(AFLAGS) -DLevel=1 MMCL2FLAGS = $(AFLAGS) -DLevel=2 all: $(ALLOBJS) $(DEPENDS) # Drivers - optimized for speed over size mmcdrv_l1.dr: mmcdrv.asm $(AS) $(ASOUT)$@ $< $(MMCL1FLAGS) mmcdrv_l2.dr: mmcdrv.asm $(AS) $(ASOUT)$@ $< $(MMCL2FLAGS) # Drivers - optimized for size over speed mmcdrv_l1s.dr: mmcdrv.asm $(AS) $(ASOUT)$@ $< $(MMCL1FLAGS) -DSMALLC=1 mmcdrv_l2s.dr: mmcdrv.asm $(AS) $(ASOUT)$@ $< $(MMCL2FLAGS) -DSMALLC=1 # Descriptors # ITDRV is the Drive 0 or 1 switch for device descriptors h0_mmc_l1.dd: mmcdesc.asm $(AS) $(ASOUT)$@ $< $(MMCL1FLAGS) -DITDRV=0 h0_mmc_l2.dd: mmcdesc.asm $(AS) $(ASOUT)$@ $< $(MMCL2FLAGS) -DITDRV=0 h1_mmc_l1.dd: mmcdesc.asm $(AS) $(ASOUT)$@ $< $(MMCL1FLAGS) -DITDRV=1 h1_mmc_l2.dd: mmcdesc.asm $(AS) $(ASOUT)$@ $< $(MMCL2FLAGS) -DITDRV=1 dd_mmc_l1.dd: mmcdesc.asm $(AS) $(ASOUT)$@ $< $(MMCL1FLAGS) -DITDRV=0 -DDD=1 dd_mmc_l2.dd: mmcdesc.asm $(AS) $(ASOUT)$@ $< $(MMCL2FLAGS) -DITDRV=0 -DDD=1 clean: $(RM) $(ALLOBJS) dsk: dskcopy: dskclean: