|
|
1.1.1.3 root 1: # 1.1.1.7 ! root 2: # comment this line if you don't want the emulation-code ! 3: # ! 4: ! 5: MATH_EMULATION = -DKERNEL_MATH_EMULATION ! 6: ! 7: # ! 8: # uncomment the correct keyboard: ! 9: # ! 10: ! 11: # KEYBOARD = -DKBD_FINNISH ! 12: KEYBOARD = -DKBD_US ! 13: # KEYBOARD = -DKBD_GR ! 14: # KEYBOARD = -DKBD_FR ! 15: # KEYBOARD = -DKBD_UK ! 16: # KEYBOARD = -DKBD_DK ! 17: ! 18: # ! 19: # uncomment this line if you are using gcc-1.40 ! 20: # ! 21: #GCC_OPT = -fcombine-regs -fstrength-reduce ! 22: ! 23: # ! 24: # standard CFLAGS ! 25: # ! 26: ! 27: CFLAGS =-Wall -O6 -fomit-frame-pointer $(GCC_OPT) ! 28: ! 29: # ! 30: # ROOT_DEV specifies the default root-device when making the image. ! 31: # This can be either FLOPPY, /dev/xxxx or empty, in which case the ! 32: # default of FLOPPY is used by 'build'. ! 33: # ! 34: ! 35: # ROOT_DEV = /dev/hdb1 ! 36: ! 37: # 1.1.1.3 root 38: # if you want the ram-disk device, define this to be the 39: # size in blocks. 40: # 1.1.1.7 ! root 41: 1.1.1.5 root 42: #RAMDISK = -DRAMDISK=512 1.1 root 43: 1.1.1.3 root 44: AS86 =as86 -0 -a 45: LD86 =ld86 -0 1.1 root 46: 1.1.1.5 root 47: AS =as 48: LD =ld 1.1.1.7 ! root 49: #LDFLAGS =-s -x -M ! 50: LDFLAGS = -M 1.1.1.3 root 51: CC =gcc $(RAMDISK) 1.1.1.7 ! root 52: MAKE =make CFLAGS="$(CFLAGS)" 1.1.1.2 root 53: CPP =cpp -nostdinc -Iinclude 1.1 root 54: 1.1.1.5 root 55: ARCHIVES =kernel/kernel.o mm/mm.o fs/fs.o 56: FILESYSTEMS =fs/minix/minix.o 57: DRIVERS =kernel/blk_drv/blk_drv.a kernel/chr_drv/chr_drv.a 58: MATH =kernel/math/math.a 59: LIBS =lib/lib.a 1.1 root 60: 61: .c.s: 62: $(CC) $(CFLAGS) \ 63: -nostdinc -Iinclude -S -o $*.s $< 64: .s.o: 65: $(AS) -c -o $*.o $< 66: .c.o: 67: $(CC) $(CFLAGS) \ 68: -nostdinc -Iinclude -c -o $*.o $< 69: 1.1.1.7 ! root 70: all: Version Image ! 71: ! 72: Version: ! 73: @./makever.sh ! 74: @echo \#define UTS_RELEASE \"0.95c-`cat .version`\" > include/linux/config_rel.h ! 75: @echo \#define UTS_VERSION \"`date +%D`\" > include/linux/config_ver.h ! 76: touch include/linux/config.h 1.1 root 77: 1.1.1.2 root 78: Image: boot/bootsect boot/setup tools/system tools/build 1.1.1.7 ! root 79: cp tools/system system.tmp ! 80: strip system.tmp ! 81: tools/build boot/bootsect boot/setup system.tmp $(ROOT_DEV) > Image ! 82: rm system.tmp 1.1 root 83: sync 84: 1.1.1.3 root 85: disk: Image 86: dd bs=8192 if=Image of=/dev/PS0 87: 1.1 root 88: tools/build: tools/build.c 89: $(CC) $(CFLAGS) \ 90: -o tools/build tools/build.c 91: 92: boot/head.o: boot/head.s 93: 94: tools/system: boot/head.o init/main.o \ 1.1.1.5 root 95: $(ARCHIVES) $(FILESYSTEMS) $(DRIVERS) $(MATH) $(LIBS) 1.1 root 96: $(LD) $(LDFLAGS) boot/head.o init/main.o \ 97: $(ARCHIVES) \ 1.1.1.5 root 98: $(FILESYSTEMS) \ 1.1.1.2 root 99: $(DRIVERS) \ 1.1.1.3 root 100: $(MATH) \ 1.1 root 101: $(LIBS) \ 102: -o tools/system > System.map 103: 1.1.1.6 root 104: kernel/math/math.a: dummy 1.1.1.7 ! root 105: (cd kernel/math; $(MAKE) MATH_EMULATION="$(MATH_EMULATION)") 1.1.1.3 root 106: 1.1.1.6 root 107: kernel/blk_drv/blk_drv.a: dummy 1.1.1.7 ! root 108: (cd kernel/blk_drv; $(MAKE)) 1.1.1.2 root 109: 1.1.1.6 root 110: kernel/chr_drv/chr_drv.a: dummy 1.1.1.7 ! root 111: (cd kernel/chr_drv; $(MAKE) KEYBOARD="$(KEYBOARD)") 1.1.1.2 root 112: 1.1.1.6 root 113: kernel/kernel.o: dummy 1.1.1.7 ! root 114: (cd kernel; $(MAKE)) 1.1 root 115: 1.1.1.6 root 116: mm/mm.o: dummy 1.1.1.7 ! root 117: (cd mm; $(MAKE)) 1.1 root 118: 1.1.1.6 root 119: fs/fs.o: dummy 1.1.1.7 ! root 120: (cd fs; $(MAKE)) 1.1 root 121: 1.1.1.6 root 122: fs/minix/minix.o: dummy 1.1.1.7 ! root 123: (cd fs/minix; $(MAKE)) 1.1.1.5 root 124: 1.1.1.6 root 125: lib/lib.a: dummy 1.1.1.7 ! root 126: (cd lib; $(MAKE)) 1.1 root 127: 1.1.1.3 root 128: boot/setup: boot/setup.s 129: $(AS86) -o boot/setup.o boot/setup.s 130: $(LD86) -s -o boot/setup boot/setup.o 131: 1.1.1.4 root 132: boot/setup.s: boot/setup.S include/linux/config.h 133: $(CPP) -traditional boot/setup.S -o boot/setup.s 134: 135: boot/bootsect.s: boot/bootsect.S include/linux/config.h 136: $(CPP) -traditional boot/bootsect.S -o boot/bootsect.s 137: 1.1.1.3 root 138: boot/bootsect: boot/bootsect.s 139: $(AS86) -o boot/bootsect.o boot/bootsect.s 140: $(LD86) -s -o boot/bootsect boot/bootsect.o 141: 1.1 root 142: clean: 1.1.1.4 root 143: rm -f Image System.map tmp_make core boot/bootsect boot/setup \ 1.1.1.5 root 144: boot/bootsect.s boot/setup.s init/main.s 1.1.1.3 root 145: rm -f init/*.o tools/system tools/build boot/*.o 1.1 root 146: (cd mm;make clean) 147: (cd fs;make clean) 148: (cd kernel;make clean) 149: (cd lib;make clean) 150: 151: backup: clean 1.1.1.3 root 152: (cd .. ; tar cf - linux | compress - > backup.Z) 1.1 root 153: sync 154: 155: dep: 156: sed '/\#\#\# Dependencies/q' < Makefile > tmp_make 157: (for i in init/*.c;do echo -n "init/";$(CPP) -M $$i;done) >> tmp_make 158: cp tmp_make Makefile 159: (cd fs; make dep) 160: (cd kernel; make dep) 161: (cd mm; make dep) 162: 1.1.1.6 root 163: dummy: 164: 1.1 root 165: ### Dependencies: 166: init/main.o : init/main.c include/unistd.h include/sys/stat.h \ 1.1.1.4 root 167: include/sys/types.h include/sys/time.h include/time.h include/sys/times.h \ 168: include/sys/utsname.h include/sys/param.h include/sys/resource.h \ 169: include/utime.h include/linux/tty.h include/termios.h include/linux/sched.h \ 1.1.1.7 ! root 170: include/linux/head.h include/linux/fs.h include/sys/dirent.h \ ! 171: include/limits.h include/linux/mm.h include/linux/kernel.h include/signal.h \ ! 172: include/asm/system.h include/asm/io.h include/stddef.h include/stdarg.h \ ! 173: include/fcntl.h include/string.h
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.