From 9c06493506de4f9c88573681a2cbc5f0c4172f20 Mon Sep 17 00:00:00 2001 From: gdr-ftp Date: Fri, 19 Mar 1999 07:18:01 +0000 Subject: [PATCH] Makefile: - added 'install' and 'release' targets - added rVersion rez forks to final files box.asm: - added dummy routine that winds up in the *.root file console.rez, modem.rez, null.rez, printer.rez: - initial checkin --- kern/drivers/Makefile | 30 ++++++++++++++++++++++++++---- kern/drivers/box.asm | 6 +++++- kern/drivers/console.rez | 34 ++++++++++++++++++++++++++++++++++ kern/drivers/modem.rez | 34 ++++++++++++++++++++++++++++++++++ kern/drivers/null.rez | 34 ++++++++++++++++++++++++++++++++++ kern/drivers/printer.rez | 34 ++++++++++++++++++++++++++++++++++ 6 files changed, 167 insertions(+), 5 deletions(-) create mode 100644 kern/drivers/console.rez create mode 100644 kern/drivers/modem.rez create mode 100644 kern/drivers/null.rez create mode 100644 kern/drivers/printer.rez diff --git a/kern/drivers/Makefile b/kern/drivers/Makefile index d7f9f3a..58a1038 100644 --- a/kern/drivers/Makefile +++ b/kern/drivers/Makefile @@ -1,10 +1,12 @@ -# $Id: Makefile,v 1.3 1999/02/23 04:27:07 gdr-ftp Exp $ +# $Id: Makefile,v 1.4 1999/03/19 07:18:00 gdr-ftp Exp $ .INCLUDE: /src/gno/paths.mk +TARGETS = $(OBJ_DIR)modem $(OBJ_DIR)printer $(OBJ_DIR)null + build: all -all: $(OBJ_DIR) $(OBJ_DIR)modem $(OBJ_DIR)printer $(OBJ_DIR)null +all: $(OBJ_DIR) $(TARGETS) $(OBJ_DIR): install -d $(OBJ_DIR) @@ -21,13 +23,33 @@ $(OBJ_DIR)null: null.o $(LD) $(LDFLAGS) -o $@ $< chtyp -t 187 -a 32257 $@ -$(OBJ_DIR)console: console.o inout.o box.root conpatch.o +$(OBJ_DIR)console: console.o inout.o box.o conpatch.o $(LD) $(LDFLAGS) -o $@ $< chtyp -t 187 -a 32257 $@ +$(OBJ_DIR)modem:: modem.r; $(CATREZ) -d $@ $< +$(OBJ_DIR)printer:: printer.r; $(CATREZ) -d $@ $< +$(OBJ_DIR)null:: null.r; $(CATREZ) -d $@ $< +$(OBJ_DIR)console:: console.r; $(CATREZ) -d $@ $< + +release: all + $(INSTALL) -d $(RELEASE_DIR)/dev + $(INSTALL) $(TARGETS) $(RELEASE_DIR)/dev + +install: + @echo You cannot install the device drivers into a live system. Target ignored. + +# Implicit rule to handle Rez source on case sensitive Appleshare servers +.IF $(APPLESHARE_CASE_SENSITIVE) != $(NULL) +%.r : %.rez + $(INSTALL) $< $(TMPDIR)/$< + $(REZ) -o $@ -c $(REZFLAGS) $(TMPDIR)/$< + $(RM) -f $(TMPDIR)/$< +.END + ### Dependencies ### -box.root: box.mac console.equates +box.o: box.mac console.equates conpatch.asm: conpatch.mac console.root: port.mac console.equates kern.equates ../gno/inc/tty.inc inout.root: inout.mac console.equates kern.equates ../gno/inc/tty.inc diff --git a/kern/drivers/box.asm b/kern/drivers/box.asm index 063ab3e..c233667 100644 --- a/kern/drivers/box.asm +++ b/kern/drivers/box.asm @@ -1,4 +1,4 @@ -* $Id: box.asm,v 1.1 1998/02/02 08:17:52 taubert Exp $ +* $Id: box.asm,v 1.2 1999/03/19 07:18:00 gdr-ftp Exp $ ************************************************************************** * * The GNO Shell Project @@ -21,6 +21,10 @@ mcopy ../drivers/box.mac copy ../drivers/console.equates +dummyBox start ; ends up in .root and ignored + end + + * EraseBox takes the same parameters as DrawBox, except the Accum * is the character to fill the box with. diff --git a/kern/drivers/console.rez b/kern/drivers/console.rez new file mode 100644 index 0000000..679e02d --- /dev/null +++ b/kern/drivers/console.rez @@ -0,0 +1,34 @@ +/* + * Resources for version and comment + * + * $Id: console.rez,v 1.1 1999/03/19 07:18:00 gdr-ftp Exp $ + */ + +#define PROG "/dev/console" +#define DESC "Console Device Driver\n" + +#include "Types.rez" +#include "builddate.rez" + +/* + * Version + */ +resource rVersion (1, purgeable3) { + { 1, 2, 0, /* Version */ + release, /* development|alpha|beta|final|release */ + 0 }, /* non-final release number */ + verUS, /* Country */ + PROG, /* Program name */ + DESC + BUILD_DATE +}; + + +/* + * Comment + */ +resource rComment (1, purgeable3) { + PROG "\n" + DESC + BUILD_DATE +}; diff --git a/kern/drivers/modem.rez b/kern/drivers/modem.rez new file mode 100644 index 0000000..96c1992 --- /dev/null +++ b/kern/drivers/modem.rez @@ -0,0 +1,34 @@ +/* + * Resources for version and comment + * + * $Id: modem.rez,v 1.1 1999/03/19 07:18:00 gdr-ftp Exp $ + */ + +#define PROG "/dev/modem" +#define DESC "Modem Device Driver\n" + +#include "Types.rez" +#include "builddate.rez" + +/* + * Version + */ +resource rVersion (1, purgeable3) { + { 1, 2, 0, /* Version */ + release, /* development|alpha|beta|final|release */ + 0 }, /* non-final release number */ + verUS, /* Country */ + PROG, /* Program name */ + DESC + BUILD_DATE +}; + + +/* + * Comment + */ +resource rComment (1, purgeable3) { + PROG "\n" + DESC + BUILD_DATE +}; diff --git a/kern/drivers/null.rez b/kern/drivers/null.rez new file mode 100644 index 0000000..831c08f --- /dev/null +++ b/kern/drivers/null.rez @@ -0,0 +1,34 @@ +/* + * Resources for version and comment + * + * $Id: null.rez,v 1.1 1999/03/19 07:18:00 gdr-ftp Exp $ + */ + +#define PROG "/dev/null" +#define DESC "NULL Device Driver\n" + +#include "Types.rez" +#include "builddate.rez" + +/* + * Version + */ +resource rVersion (1, purgeable3) { + { 1, 2, 0, /* Version */ + release, /* development|alpha|beta|final|release */ + 0 }, /* non-final release number */ + verUS, /* Country */ + PROG, /* Program name */ + DESC + BUILD_DATE +}; + + +/* + * Comment + */ +resource rComment (1, purgeable3) { + PROG "\n" + DESC + BUILD_DATE +}; diff --git a/kern/drivers/printer.rez b/kern/drivers/printer.rez new file mode 100644 index 0000000..9740f42 --- /dev/null +++ b/kern/drivers/printer.rez @@ -0,0 +1,34 @@ +/* + * Resources for version and comment + * + * $Id: printer.rez,v 1.1 1999/03/19 07:18:01 gdr-ftp Exp $ + */ + +#define PROG "/dev/printer" +#define DESC "Printer Device Driver\n" + +#include "Types.rez" +#include "builddate.rez" + +/* + * Version + */ +resource rVersion (1, purgeable3) { + { 1, 2, 0, /* Version */ + release, /* development|alpha|beta|final|release */ + 0 }, /* non-final release number */ + verUS, /* Country */ + PROG, /* Program name */ + DESC + BUILD_DATE +}; + + +/* + * Comment + */ +resource rComment (1, purgeable3) { + PROG "\n" + DESC + BUILD_DATE +};