Mercurial > hg > Members > kono > nitros9-code
annotate 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 |
rev | line source |
---|---|
1511 | 1 # Jim Hathaway's MultiMediaCard NitrOS-9 driver |
2 | |
2890
1addfd8c9d5f
Revert e4a0f58a5f9b (set NITROS9DIR in makefiles)
Tormod Volden <debian.tormod@gmail.com>
parents:
2758
diff
changeset
|
3 include ../../../rules.mak |
1511 | 4 |
5 DEPENDS = ./makefile | |
6 DRVRS = mmcdrv_l1.dr mmcdrv_l2.dr mmcdrv_l1s.dr mmcdrv_l2s.dr | |
7 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 | |
8 ALLOBJS = $(DRVRS) $(DESCS) | |
2669
53c42701f680
More parameter fixups for lwasm
William Astle <lost@l-w.ca>
parents:
1511
diff
changeset
|
9 MMCL1FLAGS = $(AFLAGS) -DLevel=1 |
53c42701f680
More parameter fixups for lwasm
William Astle <lost@l-w.ca>
parents:
1511
diff
changeset
|
10 MMCL2FLAGS = $(AFLAGS) -DLevel=2 |
1511 | 11 |
12 all: $(ALLOBJS) $(DEPENDS) | |
13 | |
14 # Drivers - optimized for speed over size | |
15 mmcdrv_l1.dr: mmcdrv.asm | |
16 $(AS) $(ASOUT)$@ $< $(MMCL1FLAGS) | |
17 | |
18 mmcdrv_l2.dr: mmcdrv.asm | |
19 $(AS) $(ASOUT)$@ $< $(MMCL2FLAGS) | |
20 | |
21 # Drivers - optimized for size over speed | |
22 | |
23 mmcdrv_l1s.dr: mmcdrv.asm | |
2669
53c42701f680
More parameter fixups for lwasm
William Astle <lost@l-w.ca>
parents:
1511
diff
changeset
|
24 $(AS) $(ASOUT)$@ $< $(MMCL1FLAGS) -DSMALLC=1 |
1511 | 25 |
26 mmcdrv_l2s.dr: mmcdrv.asm | |
2669
53c42701f680
More parameter fixups for lwasm
William Astle <lost@l-w.ca>
parents:
1511
diff
changeset
|
27 $(AS) $(ASOUT)$@ $< $(MMCL2FLAGS) -DSMALLC=1 |
1511 | 28 |
29 # Descriptors | |
30 # ITDRV is the Drive 0 or 1 switch for device descriptors | |
31 h0_mmc_l1.dd: mmcdesc.asm | |
2669
53c42701f680
More parameter fixups for lwasm
William Astle <lost@l-w.ca>
parents:
1511
diff
changeset
|
32 $(AS) $(ASOUT)$@ $< $(MMCL1FLAGS) -DITDRV=0 |
1511 | 33 |
34 h0_mmc_l2.dd: mmcdesc.asm | |
2669
53c42701f680
More parameter fixups for lwasm
William Astle <lost@l-w.ca>
parents:
1511
diff
changeset
|
35 $(AS) $(ASOUT)$@ $< $(MMCL2FLAGS) -DITDRV=0 |
1511 | 36 |
37 h1_mmc_l1.dd: mmcdesc.asm | |
2669
53c42701f680
More parameter fixups for lwasm
William Astle <lost@l-w.ca>
parents:
1511
diff
changeset
|
38 $(AS) $(ASOUT)$@ $< $(MMCL1FLAGS) -DITDRV=1 |
1511 | 39 |
40 h1_mmc_l2.dd: mmcdesc.asm | |
2669
53c42701f680
More parameter fixups for lwasm
William Astle <lost@l-w.ca>
parents:
1511
diff
changeset
|
41 $(AS) $(ASOUT)$@ $< $(MMCL2FLAGS) -DITDRV=1 |
1511 | 42 |
43 dd_mmc_l1.dd: mmcdesc.asm | |
2669
53c42701f680
More parameter fixups for lwasm
William Astle <lost@l-w.ca>
parents:
1511
diff
changeset
|
44 $(AS) $(ASOUT)$@ $< $(MMCL1FLAGS) -DITDRV=0 -DDD=1 |
1511 | 45 |
46 dd_mmc_l2.dd: mmcdesc.asm | |
2669
53c42701f680
More parameter fixups for lwasm
William Astle <lost@l-w.ca>
parents:
1511
diff
changeset
|
47 $(AS) $(ASOUT)$@ $< $(MMCL2FLAGS) -DITDRV=0 -DDD=1 |
1511 | 48 |
49 clean: | |
50 $(RM) $(ALLOBJS) | |
51 | |
3215
195c09cade21
Updated MMC Driver makefile so it will have place holders for
David Ladd <drencor-xeen@users.sourceforge.net>
parents:
2898
diff
changeset
|
52 dsk: |
195c09cade21
Updated MMC Driver makefile so it will have place holders for
David Ladd <drencor-xeen@users.sourceforge.net>
parents:
2898
diff
changeset
|
53 dskcopy: |
195c09cade21
Updated MMC Driver makefile so it will have place holders for
David Ladd <drencor-xeen@users.sourceforge.net>
parents:
2898
diff
changeset
|
54 dskclean: |
195c09cade21
Updated MMC Driver makefile so it will have place holders for
David Ladd <drencor-xeen@users.sourceforge.net>
parents:
2898
diff
changeset
|
55 |