This commit is contained in:
Oliver Lehmann 2009-08-24 20:03:00 +00:00
parent 6c66a4076a
commit a33283d2cc
5 changed files with 62 additions and 3 deletions

View File

@ -0,0 +1,7 @@
all: wdos.doc
clean:
rm -f wdos.doc
wdos.doc:
nroff -ms -h wdosbuch > wdos.doc

View File

@ -0,0 +1,47 @@
all: build docs floppy
clean:
rm -f image/INSTALL
rm -f image/README
rm -f image/bin/wm
rm -f image/bin/wdos
rm -f image/wdoslib/disks/wdos_sys
rm -f image/wdoslib/bios.p8
rm -f image/wdoslib/bios.wy
rm -f image/wdoslib/bios
rm -f image/wdoslib/run_lpr
rm -f image/wdoslib/help
rm -f image/wdoslib/wdos.doc
rmdir image/bin
rmdir image/wdoslib/disks
rmdir image/wdoslib
cd src ; make clean
cd doc ; make clean
build:
cd src ; make all
docs:
cd doc ; make all
floppy:
-mkdir image/bin
-mkdir image/wdoslib
-mkdir image/wdoslib/disks
cp disks/wdos_sys image/wdoslib/disks
cp src/bios.p8 image/wdoslib
cp src/bios.wy image/wdoslib
cp src/bios image/wdoslib
cp src/run_lpr image/wdoslib
cp doc/help image/wdoslib
cp doc/wdos.doc image/wdoslib
cp src/wm image/bin
cp src/wdos image/bin
cp doc/README image
cp src/INSTALL image
chmod 755 image/bin image/wdoslib image/wdoslib/disks
chmod 755 image/bin/wm image/bin/wdos
chmod 755 image/INSTALL image/wdoslib/run_lpr
chmod 644 image/wdoslib/bios* image/wdoslib/help
chmod 644 image/wdoslib/wdos.doc image/wdoslib/disks/wdos_sys
@echo "Now mv into image/ and tar the content on a floppy\!"

View File

@ -4,6 +4,9 @@ I = /usr/include
all: wm wdos bios bios.p8 bios.wy wdos.test bios.test
clean:
rm -f *.obj bios.test bios.wy bios.p8 bios core GLOBAL.111 wdos.test wdos wm
wm: wm.c \
$I/stdio.h $I/ctype.h $I/curses.h $I/screen.h $I/signal.h \
$I/fcntl.h $I/sys/types.h \
@ -52,5 +55,5 @@ disk.obj: disk.asm \
orgs.obj: orgs.asm \
; asm86 < mdir/mkorgs.obj
test: test.asm \
test.obj: test.asm \
; asm86 < mdir/mktest.obj

View File

@ -1,4 +1,4 @@
eo
ti
bios.asm
bios.obj
test.asm
test.obj

View File

@ -84,6 +84,7 @@ settty()
putchar(0x1b);
putchar('~');
putchar('5');
sleep(2);
}
}
@ -100,6 +101,7 @@ restty()
if (termtyp == 2) {
printf("%s","\033G0\033.1\033v");
putchar('+');
sleep(2);
}
ioctl(0, TCSETA, &savterm);
chmod(tty, 0622);