summaryrefslogtreecommitdiffstats
path: root/drivers/acorn/block/Makefile
blob: 9f5953b39a3b5dfc2a3de49f21fbf765b3dec65b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#
# Makefile for the Acorn block device drivers.
#
# Note! Dependencies are done automagically by 'make dep', which also
# removes any old dependencies. DON'T put your own dependencies here
# unless it's something special (ie not a .c file).
#
# Note 2! The CFLAGS definition is now inherited from the
# parent makefile.
#

L_TARGET := acorn-block.a
L_OBJS   :=
M_OBJS   :=
MOD_LIST_NAME := ACORN_BLOCK_MODULES

ifeq ($(CONFIG_BLK_DEV_FD1772),y)
  L_OBJS += fd1772.o fd1772dma.o
else
  ifeq ($(CONFIG_BLK_DEV_FD1772),m)
    M_OBJS += fd1772_mod.o
  endif
endif

ifeq ($(CONFIG_BLK_DEV_MFM),y)
  L_OBJS += mfmhd.o mfm.o
else
  ifeq ($(CONFIG_BLK_DEV_MFM),m)
    M_OBJS += mfmhd_mod.o
  endif
endif

include $(TOPDIR)/Rules.make

.S.o:
	$(CC) -D__ASSEMBLY__ $(AFLAGS) -traditional -c -o $*.o $<

fd1772_mod.o: $(FLOPPY)
	$(LD) -r -o $@ $(FLOPPY)

mfmhd_mod.o: mfmhd.o mfm.o
	$(LD) -r -o $@ mfmhd.o mfm.o