|
|
1.1 root 1: #
2: # Makefile for the FREAX-kernel block device drivers.
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: #
8:
9: AR =gar
10: AS =gas
11: LD =gld
12: LDFLAGS =-s -x
13: CC =gcc
14: CFLAGS =-Wall -O -fstrength-reduce -fomit-frame-pointer -fcombine-regs \
15: -finline-functions -mstring-insns -nostdinc -I../../include
16: CPP =gcc -E -nostdinc -I../../include
17:
18: .c.s:
19: $(CC) $(CFLAGS) \
20: -S -o $*.s $<
21: .s.o:
22: $(AS) -c -o $*.o $<
23: .c.o:
24: $(CC) $(CFLAGS) \
25: -c -o $*.o $<
26:
1.1.1.2 root 27: OBJS = ll_rw_blk.o floppy.o hd.o ramdisk.o
1.1 root 28:
29: blk_drv.a: $(OBJS)
30: $(AR) rcs blk_drv.a $(OBJS)
31: sync
32:
33: clean:
34: rm -f core *.o *.a tmp_make
35: for i in *.c;do rm -f `basename $$i .c`.s;done
36:
37: dep:
38: sed '/\#\#\# Dependencies/q' < Makefile > tmp_make
39: (for i in *.c;do echo -n `echo $$i | sed 's,\.c,\.s,'`" "; \
40: $(CPP) -M $$i;done) >> tmp_make
41: cp tmp_make Makefile
42:
43: ### Dependencies:
44: floppy.s floppy.o : floppy.c ../../include/linux/sched.h ../../include/linux/head.h \
45: ../../include/linux/fs.h ../../include/sys/types.h ../../include/linux/mm.h \
1.1.1.3 ! root 46: ../../include/linux/kernel.h ../../include/signal.h \
! 47: ../../include/sys/param.h ../../include/sys/time.h ../../include/time.h \
! 48: ../../include/sys/resource.h ../../include/linux/fdreg.h \
! 49: ../../include/asm/system.h ../../include/asm/io.h \
! 50: ../../include/asm/segment.h blk.h
1.1 root 51: hd.s hd.o : hd.c ../../include/linux/config.h ../../include/linux/sched.h \
52: ../../include/linux/head.h ../../include/linux/fs.h \
1.1.1.3 ! root 53: ../../include/sys/types.h ../../include/linux/mm.h \
! 54: ../../include/linux/kernel.h ../../include/signal.h \
! 55: ../../include/sys/param.h ../../include/sys/time.h ../../include/time.h \
! 56: ../../include/sys/resource.h ../../include/linux/hdreg.h \
1.1 root 57: ../../include/asm/system.h ../../include/asm/io.h \
58: ../../include/asm/segment.h blk.h
59: ll_rw_blk.s ll_rw_blk.o : ll_rw_blk.c ../../include/errno.h ../../include/linux/sched.h \
60: ../../include/linux/head.h ../../include/linux/fs.h \
1.1.1.3 ! root 61: ../../include/sys/types.h ../../include/linux/mm.h \
! 62: ../../include/linux/kernel.h ../../include/signal.h \
! 63: ../../include/sys/param.h ../../include/sys/time.h ../../include/time.h \
! 64: ../../include/sys/resource.h ../../include/asm/system.h blk.h
! 65: ramdisk.s ramdisk.o : ramdisk.c ../../include/string.h ../../include/linux/config.h \
! 66: ../../include/linux/sched.h ../../include/linux/head.h \
! 67: ../../include/linux/fs.h ../../include/sys/types.h ../../include/linux/mm.h \
! 68: ../../include/linux/kernel.h ../../include/signal.h \
! 69: ../../include/sys/param.h ../../include/sys/time.h ../../include/time.h \
! 70: ../../include/sys/resource.h ../../include/asm/system.h \
! 71: ../../include/asm/segment.h ../../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.