|
|
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.7 root 37:
1.1.1.8 root 38: #
39: # comment this line if you don't want the emulation-code
40: #
41:
42: MATH_EMULATION = -DKERNEL_MATH_EMULATION
1.1.1.7 root 43:
44: #
45: # uncomment this line if you are using gcc-1.40
46: #
47: #GCC_OPT = -fcombine-regs -fstrength-reduce
48:
49: #
50: # standard CFLAGS
51: #
52:
53: CFLAGS =-Wall -O6 -fomit-frame-pointer $(GCC_OPT)
54:
55: #
1.1.1.3 root 56: # if you want the ram-disk device, define this to be the
57: # size in blocks.
58: #
1.1.1.7 root 59:
1.1.1.5 root 60: #RAMDISK = -DRAMDISK=512
1.1 root 61:
1.1.1.3 root 62: AS86 =as86 -0 -a
63: LD86 =ld86 -0
1.1 root 64:
1.1.1.5 root 65: AS =as
66: LD =ld
1.1.1.7 root 67: #LDFLAGS =-s -x -M
68: LDFLAGS = -M
1.1.1.3 root 69: CC =gcc $(RAMDISK)
1.1.1.7 root 70: MAKE =make CFLAGS="$(CFLAGS)"
1.1.1.2 root 71: CPP =cpp -nostdinc -Iinclude
1.1 root 72:
1.1.1.8 root 73: ARCHIVES =kernel/kernel.o mm/mm.o fs/fs.o net/net.o
1.1.1.5 root 74: FILESYSTEMS =fs/minix/minix.o
1.1.1.8 root 75: DRIVERS =kernel/blk_drv/blk_drv.a kernel/chr_drv/chr_drv.a \
76: kernel/blk_drv/scsi/scsi.a
1.1.1.5 root 77: MATH =kernel/math/math.a
78: LIBS =lib/lib.a
1.1 root 79:
80: .c.s:
81: $(CC) $(CFLAGS) \
82: -nostdinc -Iinclude -S -o $*.s $<
83: .s.o:
84: $(AS) -c -o $*.o $<
85: .c.o:
86: $(CC) $(CFLAGS) \
87: -nostdinc -Iinclude -c -o $*.o $<
88:
1.1.1.7 root 89: all: Version Image
90:
91: Version:
92: @./makever.sh
1.1.1.8 root 93: @echo \#define UTS_RELEASE \"0.96a-`cat .version`\" > include/linux/config_rel.h
1.1.1.7 root 94: @echo \#define UTS_VERSION \"`date +%D`\" > include/linux/config_ver.h
95: touch include/linux/config.h
1.1 root 96:
1.1.1.2 root 97: Image: boot/bootsect boot/setup tools/system tools/build
1.1.1.7 root 98: cp tools/system system.tmp
99: strip system.tmp
100: tools/build boot/bootsect boot/setup system.tmp $(ROOT_DEV) > Image
101: rm system.tmp
1.1 root 102: sync
103:
1.1.1.3 root 104: disk: Image
105: dd bs=8192 if=Image of=/dev/PS0
106:
1.1 root 107: tools/build: tools/build.c
1.1.1.8 root 108: $(CC) -static $(CFLAGS) \
1.1 root 109: -o tools/build tools/build.c
110:
111: boot/head.o: boot/head.s
112:
113: tools/system: boot/head.o init/main.o \
1.1.1.5 root 114: $(ARCHIVES) $(FILESYSTEMS) $(DRIVERS) $(MATH) $(LIBS)
1.1 root 115: $(LD) $(LDFLAGS) boot/head.o init/main.o \
116: $(ARCHIVES) \
1.1.1.5 root 117: $(FILESYSTEMS) \
1.1.1.2 root 118: $(DRIVERS) \
1.1.1.3 root 119: $(MATH) \
1.1 root 120: $(LIBS) \
121: -o tools/system > System.map
122:
1.1.1.6 root 123: kernel/math/math.a: dummy
1.1.1.7 root 124: (cd kernel/math; $(MAKE) MATH_EMULATION="$(MATH_EMULATION)")
1.1.1.3 root 125:
1.1.1.6 root 126: kernel/blk_drv/blk_drv.a: dummy
1.1.1.7 root 127: (cd kernel/blk_drv; $(MAKE))
1.1.1.2 root 128:
1.1.1.8 root 129: kernel/blk_drv/scsi/scsi.a: dummy
130: (cd kernel/blk_drv/scsi; $(MAKE))
131:
1.1.1.6 root 132: kernel/chr_drv/chr_drv.a: dummy
1.1.1.7 root 133: (cd kernel/chr_drv; $(MAKE) KEYBOARD="$(KEYBOARD)")
1.1.1.2 root 134:
1.1.1.6 root 135: kernel/kernel.o: dummy
1.1.1.7 root 136: (cd kernel; $(MAKE))
1.1 root 137:
1.1.1.6 root 138: mm/mm.o: dummy
1.1.1.7 root 139: (cd mm; $(MAKE))
1.1 root 140:
1.1.1.6 root 141: fs/fs.o: dummy
1.1.1.7 root 142: (cd fs; $(MAKE))
1.1 root 143:
1.1.1.8 root 144: net/net.o: dummy
145: (cd net; $(MAKE))
146:
1.1.1.6 root 147: fs/minix/minix.o: dummy
1.1.1.7 root 148: (cd fs/minix; $(MAKE))
1.1.1.5 root 149:
1.1.1.6 root 150: lib/lib.a: dummy
1.1.1.7 root 151: (cd lib; $(MAKE))
1.1 root 152:
1.1.1.3 root 153: boot/setup: boot/setup.s
154: $(AS86) -o boot/setup.o boot/setup.s
155: $(LD86) -s -o boot/setup boot/setup.o
156:
1.1.1.4 root 157: boot/setup.s: boot/setup.S include/linux/config.h
158: $(CPP) -traditional boot/setup.S -o boot/setup.s
159:
160: boot/bootsect.s: boot/bootsect.S include/linux/config.h
161: $(CPP) -traditional boot/bootsect.S -o boot/bootsect.s
162:
1.1.1.3 root 163: boot/bootsect: boot/bootsect.s
164: $(AS86) -o boot/bootsect.o boot/bootsect.s
165: $(LD86) -s -o boot/bootsect boot/bootsect.o
166:
1.1 root 167: clean:
1.1.1.4 root 168: rm -f Image System.map tmp_make core boot/bootsect boot/setup \
1.1.1.5 root 169: boot/bootsect.s boot/setup.s init/main.s
1.1.1.3 root 170: rm -f init/*.o tools/system tools/build boot/*.o
1.1 root 171: (cd mm;make clean)
172: (cd fs;make clean)
173: (cd kernel;make clean)
174: (cd lib;make clean)
1.1.1.8 root 175: (cd net;make clean)
1.1 root 176:
177: backup: clean
1.1.1.3 root 178: (cd .. ; tar cf - linux | compress - > backup.Z)
1.1 root 179: sync
180:
181: dep:
182: sed '/\#\#\# Dependencies/q' < Makefile > tmp_make
183: (for i in init/*.c;do echo -n "init/";$(CPP) -M $$i;done) >> tmp_make
184: cp tmp_make Makefile
185: (cd fs; make dep)
186: (cd kernel; make dep)
187: (cd mm; make dep)
1.1.1.8 root 188: (cd net;make dep)
189: (cd lib; make dep)
1.1 root 190:
1.1.1.6 root 191: dummy:
192:
1.1 root 193: ### Dependencies:
1.1.1.8 root 194: init/main.o : init/main.c include/stddef.h include/stdarg.h include/fcntl.h include/sys/types.h \
195: include/time.h include/asm/system.h include/asm/io.h include/linux/config.h \
196: include/linux/config_rel.h include/linux/config_ver.h include/linux/config.dist.h \
197: include/linux/sched.h include/linux/head.h include/linux/fs.h include/sys/dirent.h \
1.1.1.9 ! root 198: include/limits.h include/sys/vfs.h include/linux/mm.h include/linux/kernel.h \
! 199: include/signal.h include/sys/param.h include/sys/time.h include/sys/resource.h \
! 200: include/linux/tty.h include/termios.h include/linux/unistd.h
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.