* add p cc
[mascara-docs.git] / i386 / linux / linux-0.99 / drivers / block / Makefile
blobbc0dfc55f31d7abb018b6fae7ea880c26fb110a8
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
9 # parent makefile.
12 .c.s:
13 $(CC) $(CFLAGS) -S $<
14 .s.o:
15 $(AS) -c -o $*.o $<
16 .c.o:
17 $(CC) $(CFLAGS) -c $<
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
27 ifdef CONFIG_CDU31A
28 OBJS := $(OBJS) cdu31a.o
29 SRCS := $(SRCS) cdu31a.c
30 endif
32 ifdef CONFIG_MCD
33 OBJS := $(OBJS) mcd.o
34 SRCS := $(SRCS) mcd.c
35 endif
37 ifdef CONFIG_SBPCD
38 OBJS := $(OBJS) sbpcd.o
39 SRCS := $(SRCS) sbpcd.c
40 ifdef PATCHLEVEL
41 CFLAGS := $(CFLAGS) -DPATCHLEVEL=$(PATCHLEVEL)
42 endif
43 endif #CONFIG_SBPCD
45 ifdef CONFIG_BLK_DEV_HD
46 OBJS := $(OBJS) hd.o
47 SRCS := $(SRCS) hd.c
48 endif
50 ifdef CONFIG_BLK_DEV_XD
51 OBJS := $(OBJS) xd.o
52 SRCS := $(SRCS) xd.c
53 endif
55 all: block.a
57 block.a: $(OBJS)
58 rm -f block.a
59 $(AR) rcs block.a $(OBJS)
60 sync
62 dep:
63 $(CPP) -M $(SRCS) > .depend
65 dummy:
68 # include a dependency file if one exists
70 ifeq (.depend,$(wildcard .depend))
71 include .depend
72 endif