Annotation of linux/kernel/Makefile, revision 1.1.1.6

1.1       root        1: #
1.1.1.5   root        2: # Makefile for the linux kernel.
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.6 ! root        8: # Note 2! The CFLAGS definitions are now in the main makefile...
1.1.1.5   root        9: 
                     10: AR     =ar
                     11: AS     =as
                     12: LD     =ld
1.1       root       13: LDFLAGS        =-s -x
1.1.1.6 ! root       14: CC     =gcc -nostdinc -I../include
        !            15: CPP    =cpp -nostdinc -I../include
        !            16: 
1.1       root       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.4   root       27: OBJS  = sched.o sys_call.o traps.o asm.o fork.o \
1.1.1.2   root       28:        panic.o printk.o vsprintf.o sys.o exit.o \
1.1.1.5   root       29:        signal.o mktime.o ptrace.o
1.1       root       30: 
                     31: kernel.o: $(OBJS)
                     32:        $(LD) -r -o kernel.o $(OBJS)
                     33:        sync
                     34: 
1.1.1.6 ! root       35: sched.o: sched.c
        !            36:        $(CC) $(CFLAGS) -fno-omit-frame-pointer -c $<
        !            37: 
1.1       root       38: clean:
1.1.1.2   root       39:        rm -f core *.o *.a tmp_make keyboard.s
1.1       root       40:        for i in *.c;do rm -f `basename $$i .c`.s;done
1.1.1.2   root       41:        (cd chr_drv; make clean)
                     42:        (cd blk_drv; make clean)
1.1.1.3   root       43:        (cd math; make clean)
1.1       root       44: 
                     45: dep:
                     46:        sed '/\#\#\# Dependencies/q' < Makefile > tmp_make
                     47:        (for i in *.c;do echo -n `echo $$i | sed 's,\.c,\.s,'`" "; \
                     48:                $(CPP) -M $$i;done) >> tmp_make
                     49:        cp tmp_make Makefile
1.1.1.2   root       50:        (cd chr_drv; make dep)
                     51:        (cd blk_drv; make dep)
1.1       root       52: 
                     53: ### Dependencies:
                     54: exit.s exit.o : exit.c ../include/errno.h ../include/signal.h \
                     55:   ../include/sys/types.h ../include/sys/wait.h ../include/linux/sched.h \
1.1.1.6 ! root       56:   ../include/linux/head.h ../include/linux/fs.h ../include/sys/dirent.h \
        !            57:   ../include/limits.h ../include/linux/mm.h ../include/linux/kernel.h \
        !            58:   ../include/sys/param.h ../include/sys/time.h ../include/time.h \
        !            59:   ../include/sys/resource.h ../include/linux/tty.h ../include/termios.h \
        !            60:   ../include/asm/segment.h 
1.1       root       61: fork.s fork.o : fork.c ../include/errno.h ../include/linux/sched.h \
                     62:   ../include/linux/head.h ../include/linux/fs.h ../include/sys/types.h \
1.1.1.6 ! root       63:   ../include/sys/dirent.h ../include/limits.h ../include/linux/mm.h \
        !            64:   ../include/linux/kernel.h ../include/signal.h ../include/sys/param.h \
        !            65:   ../include/sys/time.h ../include/time.h ../include/sys/resource.h \
        !            66:   ../include/asm/segment.h ../include/asm/system.h 
1.1       root       67: mktime.s mktime.o : mktime.c ../include/time.h 
1.1.1.2   root       68: panic.s panic.o : panic.c ../include/linux/kernel.h ../include/linux/sched.h \
                     69:   ../include/linux/head.h ../include/linux/fs.h ../include/sys/types.h \
1.1.1.6 ! root       70:   ../include/sys/dirent.h ../include/limits.h ../include/linux/mm.h \
        !            71:   ../include/signal.h ../include/sys/param.h ../include/sys/time.h \
        !            72:   ../include/time.h ../include/sys/resource.h 
1.1       root       73: printk.s printk.o : printk.c ../include/stdarg.h ../include/stddef.h \
                     74:   ../include/linux/kernel.h 
1.1.1.5   root       75: ptrace.s ptrace.o : ptrace.c ../include/linux/head.h ../include/linux/kernel.h \
                     76:   ../include/linux/sched.h ../include/linux/fs.h ../include/sys/types.h \
1.1.1.6 ! root       77:   ../include/sys/dirent.h ../include/limits.h ../include/linux/mm.h \
        !            78:   ../include/signal.h ../include/sys/param.h ../include/sys/time.h \
        !            79:   ../include/time.h ../include/sys/resource.h ../include/errno.h \
        !            80:   ../include/asm/segment.h ../include/asm/system.h ../include/sys/ptrace.h 
1.1       root       81: sched.s sched.o : sched.c ../include/linux/sched.h ../include/linux/head.h \
1.1.1.6 ! root       82:   ../include/linux/fs.h ../include/sys/types.h ../include/sys/dirent.h \
        !            83:   ../include/limits.h ../include/linux/mm.h ../include/linux/kernel.h \
        !            84:   ../include/signal.h ../include/sys/param.h ../include/sys/time.h \
        !            85:   ../include/time.h ../include/sys/resource.h ../include/linux/timer.h \
        !            86:   ../include/linux/sys.h ../include/linux/fdreg.h ../include/asm/system.h \
        !            87:   ../include/asm/io.h ../include/asm/segment.h ../include/errno.h 
1.1.1.2   root       88: signal.s signal.o : signal.c ../include/linux/sched.h ../include/linux/head.h \
1.1.1.6 ! root       89:   ../include/linux/fs.h ../include/sys/types.h ../include/sys/dirent.h \
        !            90:   ../include/limits.h ../include/linux/mm.h ../include/linux/kernel.h \
        !            91:   ../include/signal.h ../include/sys/param.h ../include/sys/time.h \
        !            92:   ../include/time.h ../include/sys/resource.h ../include/asm/segment.h \
        !            93:   ../include/sys/wait.h ../include/errno.h 
1.1       root       94: sys.s sys.o : sys.c ../include/errno.h ../include/linux/sched.h \
                     95:   ../include/linux/head.h ../include/linux/fs.h ../include/sys/types.h \
1.1.1.6 ! root       96:   ../include/sys/dirent.h ../include/limits.h ../include/linux/mm.h \
        !            97:   ../include/linux/kernel.h ../include/signal.h ../include/sys/param.h \
        !            98:   ../include/sys/time.h ../include/time.h ../include/sys/resource.h \
        !            99:   ../include/linux/tty.h ../include/termios.h ../include/linux/config.h \
        !           100:   ../include/asm/segment.h ../include/sys/times.h ../include/sys/utsname.h \
        !           101:   ../include/string.h 
1.1       root      102: traps.s traps.o : traps.c ../include/string.h ../include/linux/head.h \
                    103:   ../include/linux/sched.h ../include/linux/fs.h ../include/sys/types.h \
1.1.1.6 ! root      104:   ../include/sys/dirent.h ../include/limits.h ../include/linux/mm.h \
        !           105:   ../include/linux/kernel.h ../include/signal.h ../include/sys/param.h \
        !           106:   ../include/sys/time.h ../include/time.h ../include/sys/resource.h \
        !           107:   ../include/asm/system.h ../include/asm/segment.h ../include/asm/io.h \
        !           108:   ../include/errno.h 
1.1       root      109: vsprintf.s vsprintf.o : vsprintf.c ../include/stdarg.h ../include/string.h 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.