summaryrefslogtreecommitdiffstats
path: root/src/kernel/blk_drv/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/blk_drv/Makefile')
-rw-r--r--src/kernel/blk_drv/Makefile62
1 files changed, 62 insertions, 0 deletions
diff --git a/src/kernel/blk_drv/Makefile b/src/kernel/blk_drv/Makefile
new file mode 100644
index 0000000..766d2fd
--- /dev/null
+++ b/src/kernel/blk_drv/Makefile
@@ -0,0 +1,62 @@
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
9include ../../Makefile.header
10
11CFLAGS += -I../../include
12CPP += -I../../include
13
14.c.s:
15 @$(CC) $(CFLAGS) \
16 -S -o $*.s $<
17.s.o:
18 @$(AS) -o $*.o $<
19.c.o:
20 @$(CC) $(CFLAGS) \
21 -c -o $*.o $<
22
23OBJS = ll_rw_blk.o floppy.o hd.o ramdisk.o
24
25blk_drv.a: $(OBJS)
26 @$(AR) rcs blk_drv.a $(OBJS)
27 @sync
28
29clean:
30 @rm -f core *.o *.a tmp_make
31 @for i in *.c;do rm -f `basename $$i .c`.s;done
32
33dep:
34 @sed '/\#\#\# Dependencies/q' < Makefile > tmp_make
35 @(for i in *.c;do echo -n `echo $$i | sed 's,\.c,\.s,'`" "; \
36 $(CPP) -M $$i;done) >> tmp_make
37 @cp tmp_make Makefile
38
39### Dependencies:
40floppy.s floppy.o: floppy.c ../../include/linux/sched.h ../../include/linux/head.h \
41 ../../include/linux/fs.h ../../include/sys/types.h \
42 ../../include/linux/mm.h ../../include/signal.h \
43 ../../include/linux/kernel.h ../../include/linux/fdreg.h \
44 ../../include/asm/system.h ../../include/asm/io.h \
45 ../../include/asm/segment.h blk.h
46hd.s hd.o: hd.c ../../include/linux/config.h ../../include/linux/sched.h \
47 ../../include/linux/head.h ../../include/linux/fs.h \
48 ../../include/sys/types.h ../../include/linux/mm.h \
49 ../../include/signal.h ../../include/linux/kernel.h \
50 ../../include/linux/hdreg.h ../../include/asm/system.h \
51 ../../include/asm/io.h ../../include/asm/segment.h blk.h
52ll_rw_blk.s ll_rw_blk.o: ll_rw_blk.c ../../include/errno.h \
53 ../../include/linux/sched.h ../../include/linux/head.h \
54 ../../include/linux/fs.h ../../include/sys/types.h \
55 ../../include/linux/mm.h ../../include/signal.h \
56 ../../include/linux/kernel.h ../../include/asm/system.h blk.h
57ramdisk.s ramdisk.o: ramdisk.c ../../include/string.h ../../include/linux/config.h \
58 ../../include/linux/sched.h ../../include/linux/head.h \
59 ../../include/linux/fs.h ../../include/sys/types.h \
60 ../../include/linux/mm.h ../../include/signal.h \
61 ../../include/linux/kernel.h ../../include/asm/system.h \
62 ../../include/asm/segment.h ../../include/asm/memory.h blk.h