|
|
1.1.1.3 root 1: #
1.1.1.8 root 2: # ROOT_DEV specifies the default root-device when making the image.
3: # This can be either FLOPPY, /dev/xxxx or empty, in which case the
4: # default of FLOPPY is used by 'build'.
1.1.1.7 root 5: #
6:
1.1.1.8 root 7: ROOT_DEV = /dev/hdb1
1.1.1.7 root 8:
9: #
10: # uncomment the correct keyboard:
11: #
1.1.1.8 root 12: # The value of KBDFLAGS should be or'ed together from the following
13: # bits, depending on which features you want enabled.
14: # 0x80 - Off: the Alt key will set bit 7 if pressed together with
15: # another key.
16: # On: the Alt key will NOT set the high bit; an escape
17: # character is prepended instead.
18: # The least significant bits control if the following keys are "dead".
19: # The key is dead by default if the bit is on.
20: # 0x01 - backquote (`)
21: # 0x02 - accent acute
22: # 0x04 - circumflex (^)
23: # 0x08 - tilde (~)
24: # 0x10 - dieresis (umlaut)
25:
26: KEYBOARD = -DKBD_FINNISH -DKBDFLAGS=0
27: # KEYBOARD = -DKBD_FINNISH_LATIN1 -DKBDFLAGS=0x9F
28: # KEYBOARD = -DKBD_US -DKBDFLAGS=0
29: # KEYBOARD = -DKBD_GR -DKBDFLAGS=0
30: # KEYBOARD = -DKBD_GR_LATIN1 -DKBDFLAGS=0x9F
31: # KEYBOARD = -DKBD_FR -DKBDFLAGS=0
32: # KEYBOARD = -DKBD_FR_LATIN1 -DKBDFLAGS=0x9F
33: # KEYBOARD = -DKBD_UK -DKBDFLAGS=0
34: # KEYBOARD = -DKBD_DK -DKBDFLAGS=0
35: # KEYBOARD = -DKBD_DK_LATIN1 -DKBDFLAGS=0x9F
36: # KEYBOARD = -DKBD_DVORAK -DKBDFLAGS=0
1.1.1.11! root 37: # KEYBOARD = -DKBD_SG -DKBDFLAGS=0
! 38: # KEYBOARD = -DKBD_SG_LATIN1 -DKBDFLAGS=0x9F
! 39: # KEYBOARD = -DKDB_NO
1.1.1.7 root 40:
1.1.1.8 root 41: #
42: # comment this line if you don't want the emulation-code
43: #
44:
45: MATH_EMULATION = -DKERNEL_MATH_EMULATION
1.1.1.7 root 46:
47: #
48: # standard CFLAGS
49: #
50:
1.1.1.10 root 51: CFLAGS =-Wall -O6 -fomit-frame-pointer
1.1.1.7 root 52:
53: #
1.1.1.3 root 54: # if you want the ram-disk device, define this to be the
55: # size in blocks.
56: #
1.1.1.7 root 57:
1.1.1.5 root 58: #RAMDISK = -DRAMDISK=512
1.1 root 59:
1.1.1.3 root 60: AS86 =as86 -0 -a
61: LD86 =ld86 -0
1.1 root 62:
1.1.1.11! root 63: #
! 64: # If you want to preset the SVGA mode, uncomment the next line and
! 65: # set SVGA_MODE to whatever number you want.
! 66: # Set it to -DSVGA_MODE=NORMAL_VGA if you just want the EGA/VGA mode.
! 67: # The number is the same as you would ordinarily press at bootup.
! 68: #
! 69: #SVGA_MODE= -DSVGA_MODE=1
! 70:
1.1.1.5 root 71: AS =as
72: LD =ld
1.1.1.10 root 73: HOSTCC =gcc -static
74: CC =gcc -nostdinc -I$(KERNELHDRS)
75: MAKE =make
76: CPP =$(CC) -E
77: AR =ar
1.1 root 78:
1.1.1.8 root 79: ARCHIVES =kernel/kernel.o mm/mm.o fs/fs.o net/net.o
1.1.1.11! root 80: FILESYSTEMS =fs/minix/minix.o fs/ext/ext.o fs/msdos/msdos.o
1.1.1.8 root 81: DRIVERS =kernel/blk_drv/blk_drv.a kernel/chr_drv/chr_drv.a \
82: kernel/blk_drv/scsi/scsi.a
1.1.1.5 root 83: MATH =kernel/math/math.a
84: LIBS =lib/lib.a
1.1.1.10 root 85: SUBDIRS =kernel mm fs net lib
86:
87: KERNELHDRS =/usr/src/linux/include
1.1 root 88:
89: .c.s:
1.1.1.10 root 90: $(CC) $(CFLAGS) -S $<
1.1 root 91: .s.o:
92: $(AS) -c -o $*.o $<
93: .c.o:
1.1.1.10 root 94: $(CC) $(CFLAGS) -c -o $*.o $<
1.1 root 95:
1.1.1.7 root 96: all: Version Image
97:
1.1.1.11! root 98: linuxsubdirs: dummy
! 99: @for i in $(SUBDIRS); do (cd $$i; echo $$i; $(MAKE)) || exit; done
1.1.1.10 root 100:
1.1.1.7 root 101: Version:
102: @./makever.sh
1.1.1.11! root 103: @echo \#define UTS_RELEASE \"0.97-`cat .version`\" > include/linux/config_rel.h
1.1.1.7 root 104: @echo \#define UTS_VERSION \"`date +%D`\" > include/linux/config_ver.h
105: touch include/linux/config.h
1.1 root 106:
1.1.1.2 root 107: Image: boot/bootsect boot/setup tools/system tools/build
1.1.1.7 root 108: cp tools/system system.tmp
109: strip system.tmp
110: tools/build boot/bootsect boot/setup system.tmp $(ROOT_DEV) > Image
111: rm system.tmp
1.1 root 112: sync
113:
1.1.1.3 root 114: disk: Image
1.1.1.11! root 115: dd bs=8192 if=Image of=/dev/fd0
1.1.1.3 root 116:
1.1 root 117: tools/build: tools/build.c
1.1.1.10 root 118: $(HOSTCC) $(CFLAGS) \
1.1 root 119: -o tools/build tools/build.c
120:
121: boot/head.o: boot/head.s
122:
1.1.1.11! root 123: tools/system: boot/head.o init/main.o linuxsubdirs
1.1.1.10 root 124: $(LD) $(LDFLAGS) -M boot/head.o init/main.o \
125: $(ARCHIVES) \
126: $(FILESYSTEMS) \
127: $(DRIVERS) \
128: $(MATH) \
129: $(LIBS) \
130: -o tools/system > System.map
1.1 root 131:
1.1.1.3 root 132: boot/setup: boot/setup.s
133: $(AS86) -o boot/setup.o boot/setup.s
134: $(LD86) -s -o boot/setup boot/setup.o
135:
1.1.1.4 root 136: boot/setup.s: boot/setup.S include/linux/config.h
1.1.1.11! root 137: $(CPP) -traditional $(SVGA_MODE) boot/setup.S -o boot/setup.s
1.1.1.4 root 138:
139: boot/bootsect.s: boot/bootsect.S include/linux/config.h
140: $(CPP) -traditional boot/bootsect.S -o boot/bootsect.s
141:
1.1.1.3 root 142: boot/bootsect: boot/bootsect.s
143: $(AS86) -o boot/bootsect.o boot/bootsect.s
144: $(LD86) -s -o boot/bootsect boot/bootsect.o
145:
1.1.1.11! root 146: fs: dummy
! 147: $(MAKE) linuxsubdirs SUBDIRS=fs
! 148:
1.1 root 149: clean:
1.1.1.4 root 150: rm -f Image System.map tmp_make core boot/bootsect boot/setup \
1.1.1.5 root 151: boot/bootsect.s boot/setup.s init/main.s
1.1.1.3 root 152: rm -f init/*.o tools/system tools/build boot/*.o
1.1.1.10 root 153: for i in $(SUBDIRS); do (cd $$i; $(MAKE) clean); done
1.1 root 154:
155: backup: clean
1.1.1.10 root 156: cd .. ; tar cf - linux | compress - > backup.Z
1.1 root 157: sync
158:
1.1.1.10 root 159: depend dep:
1.1 root 160: sed '/\#\#\# Dependencies/q' < Makefile > tmp_make
1.1.1.10 root 161: for i in init/*.c;do echo -n "init/";$(CPP) -M $$i;done >> tmp_make
1.1 root 162: cp tmp_make Makefile
1.1.1.11! root 163: for i in $(SUBDIRS); do (cd $$i; $(MAKE) dep) || exit; done
1.1 root 164:
1.1.1.6 root 165: dummy:
166:
1.1 root 167: ### Dependencies:
1.1.1.11! root 168: init/main.o : init/main.c /usr/src/linux/include/stdarg.h /usr/src/linux/include/time.h \
! 169: /usr/src/linux/include/asm/system.h /usr/src/linux/include/asm/io.h /usr/src/linux/include/linux/types.h \
! 170: /usr/src/linux/include/linux/fcntl.h /usr/src/linux/include/linux/config.h /usr/src/linux/include/linux/config_rel.h \
! 171: /usr/src/linux/include/linux/config_ver.h /usr/src/linux/include/linux/config.dist.h \
! 172: /usr/src/linux/include/linux/sched.h /usr/src/linux/include/linux/head.h /usr/src/linux/include/linux/fs.h \
! 173: /usr/src/linux/include/linux/limits.h /usr/src/linux/include/linux/wait.h /usr/src/linux/include/linux/dirent.h \
! 174: /usr/src/linux/include/linux/vfs.h /usr/src/linux/include/linux/minix_fs_sb.h \
! 175: /usr/src/linux/include/linux/ext_fs_sb.h /usr/src/linux/include/linux/msdos_fs_sb.h \
! 176: /usr/src/linux/include/linux/mm.h /usr/src/linux/include/linux/kernel.h /usr/src/linux/include/linux/signal.h \
! 177: /usr/src/linux/include/linux/time.h /usr/src/linux/include/linux/param.h /usr/src/linux/include/linux/resource.h \
! 178: /usr/src/linux/include/linux/tty.h /usr/src/linux/include/linux/termios.h /usr/src/linux/include/linux/unistd.h
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.