Loading...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 | # # Makefile for the linux kernel. # # 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 definitions are now in the main makefile... .S.s: $(CPP) -traditional $< -o $*.s .c.s: $(CC) $(CFLAGS) -S $< .s.o: $(AS) -c -o $*.o $< .c.o: $(CC) $(CFLAGS) -c $< SUBDIRS = chr_drv blk_drv FPU-emu OBJS = sched.o sys_call.o traps.o irq.o dma.o fork.o \ panic.o printk.o vsprintf.o sys.o exit.o \ signal.o mktime.o ptrace.o ioport.o itimer.o all: __KEEPMAKEFILEO__BH.o kernelsubdirs kernel.o: $(OBJS) $(LD) -r -o kernel.o $(OBJS) sync kernelsubdirs: dummy @for i in $(SUBDIRS); do (cd $$i && echo $$i && $(MAKE)) || exit; done sys_call.s: sys_call.S sys_call.o: sys_call.s sched.o: sched.c $(CC) $(CFLAGS) $(PROFILING) -fno-omit-frame-pointer -c $< clean: rm -f core *.o *.a tmp_make sys_call.s 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 $(CPP) -M *.c >> tmp_make cp tmp_make Makefile for i in $(SUBDIRS); do (cd $$i && $(MAKE) dep) || exit; done dummy: ### Dependencies: exit.o : exit.c /usr/include/linux/wait.h /usr/include/linux/limits.h /usr/include/linux/errno.h \ /usr/include/linux/signal.h /usr/include/linux/sched.h /usr/include/linux/head.h \ /usr/include/linux/fs.h /usr/include/linux/types.h /usr/include/linux/dirent.h \ /usr/include/linux/vfs.h /usr/include/linux/pipe_fs_i.h /usr/include/linux/minix_fs_i.h \ /usr/include/linux/ext_fs_i.h /usr/include/linux/msdos_fs_i.h /usr/include/linux/minix_fs_sb.h \ /usr/include/linux/ext_fs_sb.h /usr/include/linux/msdos_fs_sb.h /usr/include/linux/mm.h \ /usr/include/linux/kernel.h /usr/include/linux/time.h /usr/include/linux/param.h \ /usr/include/linux/resource.h /usr/include/linux/vm86.h /usr/include/linux/tty.h \ /usr/include/linux/termios.h /usr/include/asm/system.h /usr/include/asm/segment.h fork.o : fork.c /usr/include/linux/errno.h /usr/include/linux/sched.h /usr/include/linux/head.h \ /usr/include/linux/fs.h /usr/include/linux/limits.h /usr/include/linux/wait.h \ /usr/include/linux/types.h /usr/include/linux/dirent.h /usr/include/linux/vfs.h \ /usr/include/linux/pipe_fs_i.h /usr/include/linux/minix_fs_i.h /usr/include/linux/ext_fs_i.h \ /usr/include/linux/msdos_fs_i.h /usr/include/linux/minix_fs_sb.h /usr/include/linux/ext_fs_sb.h \ /usr/include/linux/msdos_fs_sb.h /usr/include/linux/mm.h /usr/include/linux/kernel.h \ /usr/include/linux/signal.h /usr/include/linux/time.h /usr/include/linux/param.h \ /usr/include/linux/resource.h /usr/include/linux/vm86.h /usr/include/linux/stddef.h \ /usr/include/asm/segment.h /usr/include/asm/system.h ioport.o : ioport.c /usr/include/linux/sched.h /usr/include/linux/head.h /usr/include/linux/fs.h \ /usr/include/linux/limits.h /usr/include/linux/wait.h /usr/include/linux/types.h \ /usr/include/linux/dirent.h /usr/include/linux/vfs.h /usr/include/linux/pipe_fs_i.h \ /usr/include/linux/minix_fs_i.h /usr/include/linux/ext_fs_i.h /usr/include/linux/msdos_fs_i.h \ /usr/include/linux/minix_fs_sb.h /usr/include/linux/ext_fs_sb.h /usr/include/linux/msdos_fs_sb.h \ /usr/include/linux/mm.h /usr/include/linux/kernel.h /usr/include/linux/signal.h \ /usr/include/linux/time.h /usr/include/linux/param.h /usr/include/linux/resource.h \ /usr/include/linux/vm86.h /usr/include/linux/errno.h irq.o : irq.c /usr/include/linux/ptrace.h /usr/include/linux/errno.h /usr/include/linux/signal.h \ /usr/include/linux/sched.h /usr/include/linux/head.h /usr/include/linux/fs.h \ /usr/include/linux/limits.h /usr/include/linux/wait.h /usr/include/linux/types.h \ /usr/include/linux/dirent.h /usr/include/linux/vfs.h /usr/include/linux/pipe_fs_i.h \ /usr/include/linux/minix_fs_i.h /usr/include/linux/ext_fs_i.h /usr/include/linux/msdos_fs_i.h \ /usr/include/linux/minix_fs_sb.h /usr/include/linux/ext_fs_sb.h /usr/include/linux/msdos_fs_sb.h \ /usr/include/linux/mm.h /usr/include/linux/kernel.h /usr/include/linux/time.h \ /usr/include/linux/param.h /usr/include/linux/resource.h /usr/include/linux/vm86.h \ /usr/include/asm/system.h /usr/include/asm/io.h /usr/include/asm/irq.h itimer.o : itimer.c /usr/include/linux/signal.h /usr/include/linux/sched.h /usr/include/linux/head.h \ /usr/include/linux/fs.h /usr/include/linux/limits.h /usr/include/linux/wait.h \ /usr/include/linux/types.h /usr/include/linux/dirent.h /usr/include/linux/vfs.h \ /usr/include/linux/pipe_fs_i.h /usr/include/linux/minix_fs_i.h /usr/include/linux/ext_fs_i.h \ /usr/include/linux/msdos_fs_i.h /usr/include/linux/minix_fs_sb.h /usr/include/linux/ext_fs_sb.h \ /usr/include/linux/msdos_fs_sb.h /usr/include/linux/mm.h /usr/include/linux/kernel.h \ /usr/include/linux/time.h /usr/include/linux/param.h /usr/include/linux/resource.h \ /usr/include/linux/vm86.h /usr/include/linux/string.h /usr/include/linux/errno.h \ /usr/include/asm/segment.h mktime.o : mktime.c /usr/include/linux/mktime.h panic.o : panic.c /usr/include/linux/kernel.h /usr/include/linux/sched.h /usr/include/linux/head.h \ /usr/include/linux/fs.h /usr/include/linux/limits.h /usr/include/linux/wait.h \ /usr/include/linux/types.h /usr/include/linux/dirent.h /usr/include/linux/vfs.h \ /usr/include/linux/pipe_fs_i.h /usr/include/linux/minix_fs_i.h /usr/include/linux/ext_fs_i.h \ /usr/include/linux/msdos_fs_i.h /usr/include/linux/minix_fs_sb.h /usr/include/linux/ext_fs_sb.h \ /usr/include/linux/msdos_fs_sb.h /usr/include/linux/mm.h /usr/include/linux/signal.h \ /usr/include/linux/time.h /usr/include/linux/param.h /usr/include/linux/resource.h \ /usr/include/linux/vm86.h printk.o : printk.c /usr/lib/gcc-lib/i386-linux/2.2.2d/include/stdarg.h /usr/include/asm/segment.h \ /usr/include/asm/system.h /usr/include/linux/errno.h /usr/include/linux/sched.h \ /usr/include/linux/head.h /usr/include/linux/fs.h /usr/include/linux/limits.h \ /usr/include/linux/wait.h /usr/include/linux/types.h /usr/include/linux/dirent.h \ /usr/include/linux/vfs.h /usr/include/linux/pipe_fs_i.h /usr/include/linux/minix_fs_i.h \ /usr/include/linux/ext_fs_i.h /usr/include/linux/msdos_fs_i.h /usr/include/linux/minix_fs_sb.h \ /usr/include/linux/ext_fs_sb.h /usr/include/linux/msdos_fs_sb.h /usr/include/linux/mm.h \ /usr/include/linux/kernel.h /usr/include/linux/signal.h /usr/include/linux/time.h \ /usr/include/linux/param.h /usr/include/linux/resource.h /usr/include/linux/vm86.h ptrace.o : ptrace.c /usr/include/linux/head.h /usr/include/linux/kernel.h /usr/include/linux/sched.h \ /usr/include/linux/fs.h /usr/include/linux/limits.h /usr/include/linux/wait.h \ /usr/include/linux/types.h /usr/include/linux/dirent.h /usr/include/linux/vfs.h \ /usr/include/linux/pipe_fs_i.h /usr/include/linux/minix_fs_i.h /usr/include/linux/ext_fs_i.h \ /usr/include/linux/msdos_fs_i.h /usr/include/linux/minix_fs_sb.h /usr/include/linux/ext_fs_sb.h \ /usr/include/linux/msdos_fs_sb.h /usr/include/linux/mm.h /usr/include/linux/signal.h \ /usr/include/linux/time.h /usr/include/linux/param.h /usr/include/linux/resource.h \ /usr/include/linux/vm86.h /usr/include/linux/errno.h /usr/include/linux/ptrace.h \ /usr/include/asm/segment.h /usr/include/asm/system.h sched.o : sched.c /usr/include/linux/signal.h /usr/include/linux/sched.h /usr/include/linux/head.h \ /usr/include/linux/fs.h /usr/include/linux/limits.h /usr/include/linux/wait.h \ /usr/include/linux/types.h /usr/include/linux/dirent.h /usr/include/linux/vfs.h \ /usr/include/linux/pipe_fs_i.h /usr/include/linux/minix_fs_i.h /usr/include/linux/ext_fs_i.h \ /usr/include/linux/msdos_fs_i.h /usr/include/linux/minix_fs_sb.h /usr/include/linux/ext_fs_sb.h \ /usr/include/linux/msdos_fs_sb.h /usr/include/linux/mm.h /usr/include/linux/kernel.h \ /usr/include/linux/time.h /usr/include/linux/param.h /usr/include/linux/resource.h \ /usr/include/linux/vm86.h /usr/include/linux/timer.h /usr/include/linux/sys.h \ /usr/include/linux/fdreg.h /usr/include/linux/errno.h /usr/include/linux/ptrace.h \ /usr/include/asm/system.h /usr/include/asm/io.h /usr/include/asm/segment.h signal.o : signal.c /usr/include/linux/sched.h /usr/include/linux/head.h /usr/include/linux/fs.h \ /usr/include/linux/limits.h /usr/include/linux/wait.h /usr/include/linux/types.h \ /usr/include/linux/dirent.h /usr/include/linux/vfs.h /usr/include/linux/pipe_fs_i.h \ /usr/include/linux/minix_fs_i.h /usr/include/linux/ext_fs_i.h /usr/include/linux/msdos_fs_i.h \ /usr/include/linux/minix_fs_sb.h /usr/include/linux/ext_fs_sb.h /usr/include/linux/msdos_fs_sb.h \ /usr/include/linux/mm.h /usr/include/linux/kernel.h /usr/include/linux/signal.h \ /usr/include/linux/time.h /usr/include/linux/param.h /usr/include/linux/resource.h \ /usr/include/linux/vm86.h /usr/include/linux/errno.h /usr/include/linux/ptrace.h \ /usr/include/asm/segment.h sys.o : sys.c /usr/include/linux/errno.h /usr/include/linux/sched.h /usr/include/linux/head.h \ /usr/include/linux/fs.h /usr/include/linux/limits.h /usr/include/linux/wait.h \ /usr/include/linux/types.h /usr/include/linux/dirent.h /usr/include/linux/vfs.h \ /usr/include/linux/pipe_fs_i.h /usr/include/linux/minix_fs_i.h /usr/include/linux/ext_fs_i.h \ /usr/include/linux/msdos_fs_i.h /usr/include/linux/minix_fs_sb.h /usr/include/linux/ext_fs_sb.h \ /usr/include/linux/msdos_fs_sb.h /usr/include/linux/mm.h /usr/include/linux/kernel.h \ /usr/include/linux/signal.h /usr/include/linux/time.h /usr/include/linux/param.h \ /usr/include/linux/resource.h /usr/include/linux/vm86.h /usr/include/linux/tty.h \ /usr/include/linux/termios.h /usr/include/asm/system.h /usr/include/linux/config.h \ /usr/include/linux/config.dist.h /usr/include/linux/times.h /usr/include/linux/utsname.h \ /usr/include/linux/string.h /usr/include/linux/ptrace.h /usr/include/asm/segment.h traps.o : traps.c /usr/include/linux/head.h /usr/include/linux/sched.h /usr/include/linux/fs.h \ /usr/include/linux/limits.h /usr/include/linux/wait.h /usr/include/linux/types.h \ /usr/include/linux/dirent.h /usr/include/linux/vfs.h /usr/include/linux/pipe_fs_i.h \ /usr/include/linux/minix_fs_i.h /usr/include/linux/ext_fs_i.h /usr/include/linux/msdos_fs_i.h \ /usr/include/linux/minix_fs_sb.h /usr/include/linux/ext_fs_sb.h /usr/include/linux/msdos_fs_sb.h \ /usr/include/linux/mm.h /usr/include/linux/kernel.h /usr/include/linux/signal.h \ /usr/include/linux/time.h /usr/include/linux/param.h /usr/include/linux/resource.h \ /usr/include/linux/vm86.h /usr/include/linux/string.h /usr/include/linux/errno.h \ /usr/include/asm/system.h /usr/include/asm/segment.h /usr/include/asm/io.h vsprintf.o : vsprintf.c /usr/lib/gcc-lib/i386-linux/2.2.2d/include/stdarg.h \ /usr/include/linux/types.h /usr/include/linux/string.h |