Annotation of linux/Makefile, revision 1.1.1.4

1.1.1.3   root        1: #
                      2: # if you want the ram-disk device, define this to be the
                      3: # size in blocks.
                      4: #
                      5: RAMDISK = #-DRAMDISK=512
1.1       root        6: 
1.1.1.3   root        7: AS86   =as86 -0 -a
                      8: LD86   =ld86 -0
1.1       root        9: 
                     10: AS     =gas
                     11: LD     =gld
                     12: LDFLAGS        =-s -x -M
1.1.1.3   root       13: CC     =gcc $(RAMDISK)
                     14: CFLAGS =-Wall -O -fstrength-reduce -fomit-frame-pointer \
                     15: -fcombine-regs -mstring-insns
1.1.1.2   root       16: CPP    =cpp -nostdinc -Iinclude
1.1       root       17: 
1.1.1.3   root       18: #
                     19: # ROOT_DEV specifies the default root-device when making the image.
                     20: # This can be either FLOPPY, /dev/xxxx or empty, in which case the
                     21: # default of /dev/hd6 is used by 'build'.
                     22: #
                     23: ROOT_DEV=/dev/hd6
1.1.1.4 ! root       24: SWAP_DEV=/dev/hd2
1.1.1.3   root       25: 
1.1       root       26: ARCHIVES=kernel/kernel.o mm/mm.o fs/fs.o
1.1.1.2   root       27: DRIVERS =kernel/blk_drv/blk_drv.a kernel/chr_drv/chr_drv.a
1.1.1.3   root       28: MATH   =kernel/math/math.a
1.1       root       29: LIBS   =lib/lib.a
                     30: 
                     31: .c.s:
                     32:        $(CC) $(CFLAGS) \
                     33:        -nostdinc -Iinclude -S -o $*.s $<
                     34: .s.o:
                     35:        $(AS) -c -o $*.o $<
                     36: .c.o:
                     37:        $(CC) $(CFLAGS) \
                     38:        -nostdinc -Iinclude -c -o $*.o $<
                     39: 
                     40: all:   Image
                     41: 
1.1.1.2   root       42: Image: boot/bootsect boot/setup tools/system tools/build
1.1.1.4 ! root       43:        tools/build boot/bootsect boot/setup tools/system $(ROOT_DEV) \
        !            44:                $(SWAP_DEV) > Image
1.1       root       45:        sync
                     46: 
1.1.1.3   root       47: disk: Image
                     48:        dd bs=8192 if=Image of=/dev/PS0
                     49: 
1.1       root       50: tools/build: tools/build.c
                     51:        $(CC) $(CFLAGS) \
                     52:        -o tools/build tools/build.c
                     53: 
                     54: boot/head.o: boot/head.s
                     55: 
                     56: tools/system:  boot/head.o init/main.o \
1.1.1.3   root       57:                $(ARCHIVES) $(DRIVERS) $(MATH) $(LIBS)
1.1       root       58:        $(LD) $(LDFLAGS) boot/head.o init/main.o \
                     59:        $(ARCHIVES) \
1.1.1.2   root       60:        $(DRIVERS) \
1.1.1.3   root       61:        $(MATH) \
1.1       root       62:        $(LIBS) \
                     63:        -o tools/system > System.map
                     64: 
1.1.1.3   root       65: kernel/math/math.a:
                     66:        (cd kernel/math; make)
                     67: 
1.1.1.2   root       68: kernel/blk_drv/blk_drv.a:
                     69:        (cd kernel/blk_drv; make)
                     70: 
                     71: kernel/chr_drv/chr_drv.a:
                     72:        (cd kernel/chr_drv; make)
                     73: 
1.1       root       74: kernel/kernel.o:
                     75:        (cd kernel; make)
                     76: 
                     77: mm/mm.o:
                     78:        (cd mm; make)
                     79: 
                     80: fs/fs.o:
                     81:        (cd fs; make)
                     82: 
                     83: lib/lib.a:
                     84:        (cd lib; make)
                     85: 
1.1.1.3   root       86: boot/setup: boot/setup.s
                     87:        $(AS86) -o boot/setup.o boot/setup.s
                     88:        $(LD86) -s -o boot/setup boot/setup.o
                     89: 
1.1.1.4 ! root       90: boot/setup.s:  boot/setup.S include/linux/config.h
        !            91:        $(CPP) -traditional boot/setup.S -o boot/setup.s
        !            92: 
        !            93: boot/bootsect.s:       boot/bootsect.S include/linux/config.h
        !            94:        $(CPP) -traditional boot/bootsect.S -o boot/bootsect.s
        !            95: 
1.1.1.3   root       96: boot/bootsect: boot/bootsect.s
                     97:        $(AS86) -o boot/bootsect.o boot/bootsect.s
                     98:        $(LD86) -s -o boot/bootsect boot/bootsect.o
                     99: 
1.1       root      100: clean:
1.1.1.4 ! root      101:        rm -f Image System.map tmp_make core boot/bootsect boot/setup \
        !           102:                boot/bootsect.s boot/setup.s
1.1.1.3   root      103:        rm -f init/*.o tools/system tools/build boot/*.o
1.1       root      104:        (cd mm;make clean)
                    105:        (cd fs;make clean)
                    106:        (cd kernel;make clean)
                    107:        (cd lib;make clean)
                    108: 
                    109: backup: clean
1.1.1.3   root      110:        (cd .. ; tar cf - linux | compress - > backup.Z)
1.1       root      111:        sync
                    112: 
                    113: dep:
                    114:        sed '/\#\#\# Dependencies/q' < Makefile > tmp_make
                    115:        (for i in init/*.c;do echo -n "init/";$(CPP) -M $$i;done) >> tmp_make
                    116:        cp tmp_make Makefile
                    117:        (cd fs; make dep)
                    118:        (cd kernel; make dep)
                    119:        (cd mm; make dep)
                    120: 
                    121: ### Dependencies:
                    122: init/main.o : init/main.c include/unistd.h include/sys/stat.h \
1.1.1.4 ! root      123:   include/sys/types.h include/sys/time.h include/time.h include/sys/times.h \
        !           124:   include/sys/utsname.h include/sys/param.h include/sys/resource.h \
        !           125:   include/utime.h include/linux/tty.h include/termios.h include/linux/sched.h \
        !           126:   include/linux/head.h include/linux/fs.h include/linux/mm.h \
        !           127:   include/linux/kernel.h include/signal.h include/asm/system.h \
        !           128:   include/asm/io.h include/stddef.h include/stdarg.h include/fcntl.h \
        !           129:   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.