Ok. I didn't make 2.4.0 in 2000. Tough. I tried, but we had some
[davej-history.git] / drivers / acorn / block / Makefile
blob7ee1e3c99dd8aea591703c3a96f7f58b3467a695
2 # Makefile for the Acorn block device drivers.
4 # Note! Dependencies are done automagically by 'make dep', which also
5 # removes any old dependencies. DON'T put your own dependencies here
6 # unless it's something special (ie not a .c file).
8 # Note 2! The CFLAGS definition is now inherited from the
9 # parent makefile.
12 USE_STANDARD_AS_RULE := true
14 L_TARGET := acorn-block.a
16 obj-y :=
17 obj-m :=
18 obj-n :=
19 obj- :=
21 export-objs :=
22 list-multi := fd1772_mod.o mfmhd_mod.o
23 fd1772_mod-objs := fd1772.o fd1772dma.o
24 mfmhd_mod-objs := mfmhd.o mfm.o
26 obj-$(CONFIG_BLK_DEV_FD1772) += fd1772_mod.o
27 obj-$(CONFIG_BLK_DEV_MFM) += mfmhd.o mfm.o
29 # Extract lists of the multi-part drivers.
30 # The 'int-*' lists are intermediate files used to build the multi's.
32 multi-y := $(filter $(list-multi), $(obj-y))
33 multi-m := $(filter $(list-multi), $(obj-m))
34 int-y := $(sort $(foreach m, $(multi-y), $($(basename $(m))-objs)))
35 int-m := $(sort $(foreach m, $(multi-m), $($(basename $(m))-objs)))
37 # Files that are both resident and modular; remove from modular.
39 obj-m := $(filter-out $(obj-y), $(obj-m))
40 int-m := $(filter-out $(int-y), $(int-m))
42 # Take multi-part drivers out of obj-y and put components in.
44 obj-y := $(filter-out $(list-multi), $(obj-y)) $(int-y)
46 # Translate to Rules.make lists.
48 L_OBJS := $(filter-out $(export-objs), $(obj-y))
49 LX_OBJS := $(filter $(export-objs), $(obj-y))
50 M_OBJS := $(sort $(filter-out $(export-objs), $(obj-m)))
51 MX_OBJS := $(sort $(filter $(export-objs), $(obj-m)))
53 include $(TOPDIR)/Rules.make
55 fd1772_mod.o: $(FLOPPY)
56 $(LD) -r -o $@ $(FLOPPY)
58 mfmhd_mod.o: mfmhd.o mfm.o
59 $(LD) -r -o $@ mfmhd.o mfm.o