2 # Makefile for the kernel 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
20 # Note : at this point, these files are compiled on all systems.
21 # In the future, some of these should be built conditionally.
24 OBJS
:= ll_rw_blk.o floppy.o ramdisk.o genhd.o
25 SRCS
:= ll_rw_blk.c floppy.c ramdisk.c genhd.c
28 OBJS
:= $(OBJS
) cdu31a.o
29 SRCS
:= $(SRCS
) cdu31a.c
38 OBJS
:= $(OBJS
) sbpcd.o
39 SRCS
:= $(SRCS
) sbpcd.c
41 CFLAGS
:= $(CFLAGS
) -DPATCHLEVEL
=$(PATCHLEVEL
)
45 ifdef CONFIG_BLK_DEV_HD
50 ifdef CONFIG_BLK_DEV_XD
59 $(AR
) rcs block.a
$(OBJS
)
63 $(CPP
) -M
$(SRCS
) > .depend
68 # include a dependency file if one exists
70 ifeq (.depend
,$(wildcard .depend
))