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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1511
aa2a7c7dd3ec Added from Jim Hathaway
boisy
parents:
diff changeset
1 # Jim Hathaway's MultiMediaCard NitrOS-9 driver
aa2a7c7dd3ec Added from Jim Hathaway
boisy
parents:
diff changeset
2
2890
1addfd8c9d5f Revert e4a0f58a5f9b (set NITROS9DIR in makefiles)
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
3 include ../../../rules.mak
1511
aa2a7c7dd3ec Added from Jim Hathaway
boisy
parents:
diff changeset
4
aa2a7c7dd3ec Added from Jim Hathaway
boisy
parents:
diff changeset
5 DEPENDS = ./makefile
aa2a7c7dd3ec Added from Jim Hathaway
boisy
parents:
diff changeset
6 DRVRS = mmcdrv_l1.dr mmcdrv_l2.dr mmcdrv_l1s.dr mmcdrv_l2s.dr
aa2a7c7dd3ec Added from Jim Hathaway
boisy
parents:
diff changeset
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
aa2a7c7dd3ec Added from Jim Hathaway
boisy
parents:
diff changeset
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
aa2a7c7dd3ec Added from Jim Hathaway
boisy
parents:
diff changeset
11
aa2a7c7dd3ec Added from Jim Hathaway
boisy
parents:
diff changeset
12 all: $(ALLOBJS) $(DEPENDS)
aa2a7c7dd3ec Added from Jim Hathaway
boisy
parents:
diff changeset
13
aa2a7c7dd3ec Added from Jim Hathaway
boisy
parents:
diff changeset
14 # Drivers - optimized for speed over size
aa2a7c7dd3ec Added from Jim Hathaway
boisy
parents:
diff changeset
15 mmcdrv_l1.dr: mmcdrv.asm
aa2a7c7dd3ec Added from Jim Hathaway
boisy
parents:
diff changeset
16 $(AS) $(ASOUT)$@ $< $(MMCL1FLAGS)
aa2a7c7dd3ec Added from Jim Hathaway
boisy
parents:
diff changeset
17
aa2a7c7dd3ec Added from Jim Hathaway
boisy
parents:
diff changeset
18 mmcdrv_l2.dr: mmcdrv.asm
aa2a7c7dd3ec Added from Jim Hathaway
boisy
parents:
diff changeset
19 $(AS) $(ASOUT)$@ $< $(MMCL2FLAGS)
aa2a7c7dd3ec Added from Jim Hathaway
boisy
parents:
diff changeset
20
aa2a7c7dd3ec Added from Jim Hathaway
boisy
parents:
diff changeset
21 # Drivers - optimized for size over speed
aa2a7c7dd3ec Added from Jim Hathaway
boisy
parents:
diff changeset
22
aa2a7c7dd3ec Added from Jim Hathaway
boisy
parents:
diff changeset
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
aa2a7c7dd3ec Added from Jim Hathaway
boisy
parents:
diff changeset
25
aa2a7c7dd3ec Added from Jim Hathaway
boisy
parents:
diff changeset
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
aa2a7c7dd3ec Added from Jim Hathaway
boisy
parents:
diff changeset
28
aa2a7c7dd3ec Added from Jim Hathaway
boisy
parents:
diff changeset
29 # Descriptors
aa2a7c7dd3ec Added from Jim Hathaway
boisy
parents:
diff changeset
30 # ITDRV is the Drive 0 or 1 switch for device descriptors
aa2a7c7dd3ec Added from Jim Hathaway
boisy
parents:
diff changeset
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
aa2a7c7dd3ec Added from Jim Hathaway
boisy
parents:
diff changeset
33
aa2a7c7dd3ec Added from Jim Hathaway
boisy
parents:
diff changeset
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
aa2a7c7dd3ec Added from Jim Hathaway
boisy
parents:
diff changeset
36
aa2a7c7dd3ec Added from Jim Hathaway
boisy
parents:
diff changeset
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
aa2a7c7dd3ec Added from Jim Hathaway
boisy
parents:
diff changeset
39
aa2a7c7dd3ec Added from Jim Hathaway
boisy
parents:
diff changeset
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
aa2a7c7dd3ec Added from Jim Hathaway
boisy
parents:
diff changeset
42
aa2a7c7dd3ec Added from Jim Hathaway
boisy
parents:
diff changeset
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
aa2a7c7dd3ec Added from Jim Hathaway
boisy
parents:
diff changeset
45
aa2a7c7dd3ec Added from Jim Hathaway
boisy
parents:
diff changeset
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
aa2a7c7dd3ec Added from Jim Hathaway
boisy
parents:
diff changeset
48
aa2a7c7dd3ec Added from Jim Hathaway
boisy
parents:
diff changeset
49 clean:
aa2a7c7dd3ec Added from Jim Hathaway
boisy
parents:
diff changeset
50 $(RM) $(ALLOBJS)
aa2a7c7dd3ec Added from Jim Hathaway
boisy
parents:
diff changeset
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