|
|
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: # standard CFLAGS
46: #
47:
1.1.1.10! root 48: CFLAGS =-Wall -O6 -fomit-frame-pointer
1.1.1.7 root 49:
50: #
1.1.1.3 root 51: # if you want the ram-disk device, define this to be the
52: # size in blocks.
53: #
1.1.1.7 root 54:
1.1.1.5 root 55: #RAMDISK = -DRAMDISK=512
1.1 root 56:
1.1.1.3 root 57: AS86 =as86 -0 -a
58: LD86 =ld86 -0
1.1 root 59:
1.1.1.5 root 60: AS =as
61: LD =ld
1.1.1.10! root 62: HOSTCC =gcc -static
! 63: CC =gcc -nostdinc -I$(KERNELHDRS)
! 64: MAKE =make
! 65: CPP =$(CC) -E
! 66: AR =ar
1.1 root 67:
1.1.1.8 root 68: ARCHIVES =kernel/kernel.o mm/mm.o fs/fs.o net/net.o
1.1.1.10! root 69: FILESYSTEMS =fs/minix/minix.o fs/ext/ext.o
1.1.1.8 root 70: DRIVERS =kernel/blk_drv/blk_drv.a kernel/chr_drv/chr_drv.a \
71: kernel/blk_drv/scsi/scsi.a
1.1.1.5 root 72: MATH =kernel/math/math.a
73: LIBS =lib/lib.a
1.1.1.10! root 74: SUBDIRS =kernel mm fs net lib
! 75:
! 76: KERNELHDRS =/usr/src/linux/include
1.1 root 77:
78: .c.s:
1.1.1.10! root 79: $(CC) $(CFLAGS) -S $<
1.1 root 80: .s.o:
81: $(AS) -c -o $*.o $<
82: .c.o:
1.1.1.10! root 83: $(CC) $(CFLAGS) -c -o $*.o $<
1.1 root 84:
1.1.1.7 root 85: all: Version Image
86:
1.1.1.10! root 87: subdirs: dummy
! 88: for i in $(SUBDIRS); do (cd $$i; $(MAKE)); done
! 89:
1.1.1.7 root 90: Version:
91: @./makever.sh
1.1.1.10! root 92: @echo \#define UTS_RELEASE \"0.96c-`cat .version`\" > include/linux/config_rel.h
1.1.1.7 root 93: @echo \#define UTS_VERSION \"`date +%D`\" > include/linux/config_ver.h
94: touch include/linux/config.h
1.1 root 95:
1.1.1.2 root 96: Image: boot/bootsect boot/setup tools/system tools/build
1.1.1.7 root 97: cp tools/system system.tmp
98: strip system.tmp
99: tools/build boot/bootsect boot/setup system.tmp $(ROOT_DEV) > Image
100: rm system.tmp
1.1 root 101: sync
102:
1.1.1.3 root 103: disk: Image
104: dd bs=8192 if=Image of=/dev/PS0
105:
1.1 root 106: tools/build: tools/build.c
1.1.1.10! root 107: $(HOSTCC) $(CFLAGS) \
1.1 root 108: -o tools/build tools/build.c
109:
110: boot/head.o: boot/head.s
111:
1.1.1.10! root 112: tools/system: boot/head.o init/main.o subdirs
! 113: $(LD) $(LDFLAGS) -M boot/head.o init/main.o \
! 114: $(ARCHIVES) \
! 115: $(FILESYSTEMS) \
! 116: $(DRIVERS) \
! 117: $(MATH) \
! 118: $(LIBS) \
! 119: -o tools/system > System.map
1.1 root 120:
1.1.1.3 root 121: boot/setup: boot/setup.s
122: $(AS86) -o boot/setup.o boot/setup.s
123: $(LD86) -s -o boot/setup boot/setup.o
124:
1.1.1.4 root 125: boot/setup.s: boot/setup.S include/linux/config.h
126: $(CPP) -traditional boot/setup.S -o boot/setup.s
127:
128: boot/bootsect.s: boot/bootsect.S include/linux/config.h
129: $(CPP) -traditional boot/bootsect.S -o boot/bootsect.s
130:
1.1.1.3 root 131: boot/bootsect: boot/bootsect.s
132: $(AS86) -o boot/bootsect.o boot/bootsect.s
133: $(LD86) -s -o boot/bootsect boot/bootsect.o
134:
1.1 root 135: clean:
1.1.1.4 root 136: rm -f Image System.map tmp_make core boot/bootsect boot/setup \
1.1.1.5 root 137: boot/bootsect.s boot/setup.s init/main.s
1.1.1.3 root 138: rm -f init/*.o tools/system tools/build boot/*.o
1.1.1.10! root 139: for i in $(SUBDIRS); do (cd $$i; $(MAKE) clean); done
1.1 root 140:
141: backup: clean
1.1.1.10! root 142: cd .. ; tar cf - linux | compress - > backup.Z
1.1 root 143: sync
144:
1.1.1.10! root 145: depend dep:
1.1 root 146: sed '/\#\#\# Dependencies/q' < Makefile > tmp_make
1.1.1.10! root 147: for i in init/*.c;do echo -n "init/";$(CPP) -M $$i;done >> tmp_make
1.1 root 148: cp tmp_make Makefile
1.1.1.10! root 149: for i in $(SUBDIRS); do (cd $$i; $(MAKE) dep); done
1.1 root 150:
1.1.1.6 root 151: dummy:
152:
1.1 root 153: ### Dependencies:
1.1.1.10! root 154: init/main.o : init/main.c /usr/src/linux/include/stddef.h /usr/src/linux/include/stdarg.h \
! 155: /usr/src/linux/include/time.h /usr/src/linux/include/sys/types.h /usr/src/linux/include/asm/system.h \
! 156: /usr/src/linux/include/asm/io.h /usr/src/linux/include/linux/fcntl.h /usr/src/linux/include/linux/config.h \
! 157: /usr/src/linux/include/linux/config_rel.h /usr/src/linux/include/linux/config_ver.h \
! 158: /usr/src/linux/include/linux/config.dist.h /usr/src/linux/include/linux/sched.h \
! 159: /usr/src/linux/include/linux/head.h /usr/src/linux/include/linux/fs.h /usr/src/linux/include/sys/dirent.h \
! 160: /usr/src/linux/include/limits.h /usr/src/linux/include/sys/vfs.h /usr/src/linux/include/linux/mm.h \
! 161: /usr/src/linux/include/linux/kernel.h /usr/src/linux/include/signal.h /usr/src/linux/include/sys/param.h \
! 162: /usr/src/linux/include/sys/time.h /usr/src/linux/include/sys/resource.h /usr/src/linux/include/linux/tty.h \
! 163: /usr/src/linux/include/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.