|
|
1.1 root 1: #
1.1.1.4 root 2: # Makefile for the kernel block device drivers.
1.1 root 3: #
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).
7: #
1.1.1.5 root 8: # Note 2! The CFLAGS definition is now inherited from the
9: # parent makefile.
10: #
1.1 root 11:
1.1.1.4 root 12: AR =ar
13: AS =as
14: LD =ld
1.1 root 15: LDFLAGS =-s -x
1.1.1.5 root 16: CC =gcc -nostdinc -I../../include
17: CPP =cpp -nostdinc -I../../include
1.1 root 18:
19: .c.s:
20: $(CC) $(CFLAGS) \
21: -S -o $*.s $<
22: .s.o:
23: $(AS) -c -o $*.o $<
24: .c.o:
25: $(CC) $(CFLAGS) \
26: -c -o $*.o $<
27:
1.1.1.6 ! root 28: OBJS = hd.o ll_rw_blk.o floppy.o ramdisk.o
! 29:
! 30: all: blk_drv.a
1.1 root 31:
32: blk_drv.a: $(OBJS)
1.1.1.6 ! root 33: rm -f blk_drv.a
1.1 root 34: $(AR) rcs blk_drv.a $(OBJS)
35: sync
36:
37: clean:
38: rm -f core *.o *.a tmp_make
39: for i in *.c;do rm -f `basename $$i .c`.s;done
1.1.1.6 ! root 40: (cd scsi; make clean)
1.1 root 41:
42: dep:
43: sed '/\#\#\# Dependencies/q' < Makefile > tmp_make
44: (for i in *.c;do echo -n `echo $$i | sed 's,\.c,\.s,'`" "; \
45: $(CPP) -M $$i;done) >> tmp_make
46: cp tmp_make Makefile
47:
48: ### Dependencies:
1.1.1.6 ! root 49: floppy.s floppy.o : floppy.c ../../include/linux/sched.h ../../include/linux/head.h ../../include/linux/fs.h \
! 50: ../../include/sys/types.h ../../include/sys/dirent.h ../../include/limits.h \
! 51: ../../include/linux/mm.h ../../include/linux/kernel.h ../../include/signal.h \
! 52: ../../include/sys/param.h ../../include/sys/time.h ../../include/time.h ../../include/sys/resource.h \
! 53: ../../include/linux/timer.h ../../include/linux/fdreg.h ../../include/linux/fd.h \
! 54: ../../include/asm/system.h ../../include/asm/io.h ../../include/asm/segment.h \
! 55: ../../include/errno.h blk.h
! 56: hd.s hd.o : hd.c ../../include/errno.h ../../include/linux/config.h ../../include/linux/config_rel.h \
! 57: ../../include/linux/config_ver.h ../../include/linux/config.dist.h ../../include/linux/sched.h \
! 58: ../../include/linux/head.h ../../include/linux/fs.h ../../include/sys/types.h \
! 59: ../../include/sys/dirent.h ../../include/limits.h ../../include/linux/mm.h ../../include/linux/kernel.h \
! 60: ../../include/signal.h ../../include/sys/param.h ../../include/sys/time.h ../../include/time.h \
! 61: ../../include/sys/resource.h ../../include/linux/timer.h ../../include/linux/hdreg.h \
! 62: ../../include/asm/system.h ../../include/asm/io.h ../../include/asm/segment.h \
! 63: blk.h
1.1 root 64: ll_rw_blk.s ll_rw_blk.o : ll_rw_blk.c ../../include/errno.h ../../include/linux/sched.h \
1.1.1.6 ! root 65: ../../include/linux/head.h ../../include/linux/fs.h ../../include/sys/types.h \
! 66: ../../include/sys/dirent.h ../../include/limits.h ../../include/linux/mm.h ../../include/linux/kernel.h \
! 67: ../../include/signal.h ../../include/sys/param.h ../../include/sys/time.h ../../include/time.h \
! 68: ../../include/sys/resource.h ../../include/asm/system.h blk.h
! 69: ramdisk.s ramdisk.o : ramdisk.c ../../include/linux/string.h ../../include/linux/config.h \
! 70: ../../include/linux/config_rel.h ../../include/linux/config_ver.h ../../include/linux/config.dist.h \
! 71: ../../include/linux/sched.h ../../include/linux/head.h ../../include/linux/fs.h \
1.1.1.5 root 72: ../../include/sys/types.h ../../include/sys/dirent.h ../../include/limits.h \
1.1.1.6 ! root 73: ../../include/linux/mm.h ../../include/linux/kernel.h ../../include/signal.h \
! 74: ../../include/sys/param.h ../../include/sys/time.h ../../include/time.h ../../include/sys/resource.h \
! 75: ../../include/linux/minix_fs.h ../../include/asm/system.h ../../include/asm/segment.h \
1.1.1.4 root 76: ../../include/asm/memory.h blk.h
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.