|
|
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.2 root 28: OBJS = ll_rw_blk.o floppy.o hd.o ramdisk.o
1.1 root 29:
30: blk_drv.a: $(OBJS)
31: $(AR) rcs blk_drv.a $(OBJS)
32: sync
33:
34: clean:
35: rm -f core *.o *.a tmp_make
36: for i in *.c;do rm -f `basename $$i .c`.s;done
37:
38: dep:
39: sed '/\#\#\# Dependencies/q' < Makefile > tmp_make
40: (for i in *.c;do echo -n `echo $$i | sed 's,\.c,\.s,'`" "; \
41: $(CPP) -M $$i;done) >> tmp_make
42: cp tmp_make Makefile
43:
44: ### Dependencies:
45: floppy.s floppy.o : floppy.c ../../include/linux/sched.h ../../include/linux/head.h \
1.1.1.5 ! root 46: ../../include/linux/fs.h ../../include/sys/types.h \
! 47: ../../include/sys/dirent.h ../../include/limits.h ../../include/linux/mm.h \
1.1.1.3 root 48: ../../include/linux/kernel.h ../../include/signal.h \
49: ../../include/sys/param.h ../../include/sys/time.h ../../include/time.h \
50: ../../include/sys/resource.h ../../include/linux/fdreg.h \
51: ../../include/asm/system.h ../../include/asm/io.h \
52: ../../include/asm/segment.h blk.h
1.1.1.5 ! root 53: hd.s hd.o : hd.c ../../include/errno.h ../../include/linux/config.h \
! 54: ../../include/linux/sched.h ../../include/linux/head.h \
! 55: ../../include/linux/fs.h ../../include/sys/types.h \
! 56: ../../include/sys/dirent.h ../../include/limits.h ../../include/linux/mm.h \
1.1.1.3 root 57: ../../include/linux/kernel.h ../../include/signal.h \
58: ../../include/sys/param.h ../../include/sys/time.h ../../include/time.h \
1.1.1.4 root 59: ../../include/sys/resource.h ../../include/linux/timer.h \
60: ../../include/linux/hdreg.h ../../include/asm/system.h \
61: ../../include/asm/io.h ../../include/asm/segment.h blk.h
1.1 root 62: ll_rw_blk.s ll_rw_blk.o : ll_rw_blk.c ../../include/errno.h ../../include/linux/sched.h \
63: ../../include/linux/head.h ../../include/linux/fs.h \
1.1.1.5 ! root 64: ../../include/sys/types.h ../../include/sys/dirent.h ../../include/limits.h \
! 65: ../../include/linux/mm.h ../../include/linux/kernel.h \
! 66: ../../include/signal.h ../../include/sys/param.h ../../include/sys/time.h \
! 67: ../../include/time.h ../../include/sys/resource.h \
! 68: ../../include/asm/system.h blk.h
1.1.1.3 root 69: ramdisk.s ramdisk.o : ramdisk.c ../../include/string.h ../../include/linux/config.h \
70: ../../include/linux/sched.h ../../include/linux/head.h \
1.1.1.5 ! root 71: ../../include/linux/fs.h ../../include/sys/types.h \
! 72: ../../include/sys/dirent.h ../../include/limits.h ../../include/linux/mm.h \
1.1.1.3 root 73: ../../include/linux/kernel.h ../../include/signal.h \
74: ../../include/sys/param.h ../../include/sys/time.h ../../include/time.h \
1.1.1.4 root 75: ../../include/sys/resource.h ../../include/linux/minix_fs.h \
76: ../../include/asm/system.h ../../include/asm/segment.h \
77: ../../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.