view 3rdparty/drivers/mmc/makefile @ 2890:1addfd8c9d5f

Revert e4a0f58a5f9b (set NITROS9DIR in makefiles) This was not done in lwtools-port and makes it more difficult to compare the trees. Therefore revert it for now. I will reapply or do it in another way later.
author Tormod Volden <debian.tormod@gmail.com>
date Sun, 24 Nov 2013 23:13:46 +0100
parents e4a0f58a5f9b
children 28ed72477814
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) -aLevel=1
MMCL2FLAGS	= $(AFLAGS) -aLevel=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) -aSMALLC=1

mmcdrv_l2s.dr: mmcdrv.asm
	$(AS) $(ASOUT)$@ $< $(MMCL2FLAGS) -aSMALLC=1

# Descriptors
# ITDRV is the Drive 0 or 1 switch for device descriptors
h0_mmc_l1.dd: mmcdesc.asm
	$(AS) $(ASOUT)$@ $< $(MMCL1FLAGS) -aITDRV=0

h0_mmc_l2.dd: mmcdesc.asm
	$(AS) $(ASOUT)$@ $< $(MMCL2FLAGS) -aITDRV=0

h1_mmc_l1.dd: mmcdesc.asm
	$(AS) $(ASOUT)$@ $< $(MMCL1FLAGS) -aITDRV=1

h1_mmc_l2.dd: mmcdesc.asm
	$(AS) $(ASOUT)$@ $< $(MMCL2FLAGS) -aITDRV=1

dd_mmc_l1.dd: mmcdesc.asm
	$(AS) $(ASOUT)$@ $< $(MMCL1FLAGS) -aITDRV=0 -aDD=1

dd_mmc_l2.dd: mmcdesc.asm
	$(AS) $(ASOUT)$@ $< $(MMCL2FLAGS) -aITDRV=0 -aDD=1

clean:
	$(RM) $(ALLOBJS)