# # Makefile for the kernel 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. # .c.s: $(CC) $(CFLAGS) $(RAMDISK) -S $< .s.o: $(AS) -c -o $*.o $< .c.o: $(CC) $(CFLAGS) $(RAMDISK) -c $< SUBDIRS = scsi OBJS = hd.o ll_rw_blk.o floppy.o ramdisk.o genhd.o all: blk_drv.a scsisubdirs blk_drv.a: $(OBJS) rm -f blk_drv.a $(AR) rcs blk_drv.a $(OBJS) sync scsisubdirs: dummy @for i in $(SUBDIRS); do (cd $$i; echo $$i; $(MAKE)) || exit; done clean: rm -f core *.o *.a tmp_make for i in *.c;do rm -f `basename $$i .c`.s;done for i in $(SUBDIRS); do (cd $$i; $(MAKE) clean); done dep: sed '/\#\#\# Dependencies/q' < Makefile > tmp_make for i in *.c;do $(CPP) -M $$i;done >> tmp_make cp tmp_make Makefile for i in $(SUBDIRS); do (cd $$i; $(MAKE) dep); done dummy: ### Dependencies: floppy.o : floppy.c /usr/src/linux/include/linux/sched.h /usr/src/linux/include/linux/head.h \ /usr/src/linux/include/linux/fs.h /usr/src/linux/include/linux/limits.h /usr/src/linux/include/linux/wait.h \ /usr/src/linux/include/linux/types.h /usr/src/linux/include/linux/dirent.h /usr/src/linux/include/linux/vfs.h \ /usr/src/linux/include/linux/minix_fs_sb.h /usr/src/linux/include/linux/ext_fs_sb.h \ /usr/src/linux/include/linux/msdos_fs_sb.h /usr/src/linux/include/linux/mm.h \ /usr/src/linux/include/linux/kernel.h /usr/src/linux/include/linux/signal.h \ /usr/src/linux/include/linux/time.h /usr/src/linux/include/linux/param.h /usr/src/linux/include/linux/resource.h \ /usr/src/linux/include/linux/timer.h /usr/src/linux/include/linux/fdreg.h /usr/src/linux/include/linux/fd.h \ /usr/src/linux/include/linux/errno.h /usr/src/linux/include/asm/system.h /usr/src/linux/include/asm/io.h \ /usr/src/linux/include/asm/segment.h blk.h genhd.o : genhd.c /usr/src/linux/include/linux/config.h /usr/src/linux/include/linux/config_rel.h \ /usr/src/linux/include/linux/config_ver.h /usr/src/linux/include/linux/config.dist.h \ /usr/src/linux/include/linux/fs.h /usr/src/linux/include/linux/limits.h /usr/src/linux/include/linux/wait.h \ /usr/src/linux/include/linux/types.h /usr/src/linux/include/linux/dirent.h /usr/src/linux/include/linux/vfs.h \ /usr/src/linux/include/linux/minix_fs_sb.h /usr/src/linux/include/linux/ext_fs_sb.h \ /usr/src/linux/include/linux/msdos_fs_sb.h /usr/src/linux/include/linux/genhd.h \ /usr/src/linux/include/linux/kernel.h hd.o : hd.c /usr/src/linux/include/linux/config.h /usr/src/linux/include/linux/config_rel.h \ /usr/src/linux/include/linux/config_ver.h /usr/src/linux/include/linux/config.dist.h \ /usr/src/linux/include/linux/errno.h /usr/src/linux/include/linux/signal.h /usr/src/linux/include/linux/sched.h \ /usr/src/linux/include/linux/head.h /usr/src/linux/include/linux/fs.h /usr/src/linux/include/linux/limits.h \ /usr/src/linux/include/linux/wait.h /usr/src/linux/include/linux/types.h /usr/src/linux/include/linux/dirent.h \ /usr/src/linux/include/linux/vfs.h /usr/src/linux/include/linux/minix_fs_sb.h \ /usr/src/linux/include/linux/ext_fs_sb.h /usr/src/linux/include/linux/msdos_fs_sb.h \ /usr/src/linux/include/linux/mm.h /usr/src/linux/include/linux/kernel.h /usr/src/linux/include/linux/time.h \ /usr/src/linux/include/linux/param.h /usr/src/linux/include/linux/resource.h \ /usr/src/linux/include/linux/timer.h /usr/src/linux/include/linux/hdreg.h /usr/src/linux/include/linux/genhd.h \ /usr/src/linux/include/asm/system.h /usr/src/linux/include/asm/io.h /usr/src/linux/include/asm/segment.h \ blk.h ll_rw_blk.o : ll_rw_blk.c /usr/src/linux/include/linux/sched.h /usr/src/linux/include/linux/head.h \ /usr/src/linux/include/linux/fs.h /usr/src/linux/include/linux/limits.h /usr/src/linux/include/linux/wait.h \ /usr/src/linux/include/linux/types.h /usr/src/linux/include/linux/dirent.h /usr/src/linux/include/linux/vfs.h \ /usr/src/linux/include/linux/minix_fs_sb.h /usr/src/linux/include/linux/ext_fs_sb.h \ /usr/src/linux/include/linux/msdos_fs_sb.h /usr/src/linux/include/linux/mm.h \ /usr/src/linux/include/linux/kernel.h /usr/src/linux/include/linux/signal.h \ /usr/src/linux/include/linux/time.h /usr/src/linux/include/linux/param.h /usr/src/linux/include/linux/resource.h \ /usr/src/linux/include/linux/errno.h /usr/src/linux/include/linux/string.h /usr/src/linux/include/asm/system.h \ blk.h ramdisk.o : ramdisk.c /usr/src/linux/include/linux/config.h /usr/src/linux/include/linux/config_rel.h \ /usr/src/linux/include/linux/config_ver.h /usr/src/linux/include/linux/config.dist.h