diff -rc ../../cpm-0.2.orig/Makefile ./Makefile
*** ../../cpm-0.2.orig/Makefile	Wed Jun 28 18:44:25 1995
--- ./Makefile	Wed Jun 28 23:15:31 1995
***************
*** 2,8 ****
        -Wcast-align -Waggregate-return \
        -Wstrict-prototypes -Wmissing-prototypes \
        -Wnested-externs -Wwrite-strings -g
! LDFLAGS = -s -N
  OBJS = single.o z80emu.o em.o io.o bios.o \
     commands.o running.o main.o disneu.o disz80.o low.o
  # old: z80out.o 
--- 2,11 ----
        -Wcast-align -Waggregate-return \
        -Wstrict-prototypes -Wmissing-prototypes \
        -Wnested-externs -Wwrite-strings -g
! LDFLAGS = -s
! BINDIR= /usr/local/bin
! CPMDIR= /usr/local/lib/cpm
! 
  OBJS = single.o z80emu.o em.o io.o bios.o \
     commands.o running.o main.o disneu.o disz80.o low.o
  # old: z80out.o 
***************
*** 22,26 ****
  cpm: $(OBJS)
  	gcc $(LDFLAGS) -o cpm $(OBJS)
  
  clean:
! 	rm -f *~ loads.s makeloads *.o $(TARGETS)
--- 25,41 ----
  cpm: $(OBJS)
  	gcc $(LDFLAGS) -o cpm $(OBJS)
  
+ format: format.o
+ 	gcc $(LDFLAGS) -o format format.o
+ 
+ install: $(TARGETS)
+ 	install -c -m 755 -o bin -g bin cpm $(BINDIR)/cpmemu
+ 	-test -d $(CPMDIR) || ( mkdir $(CPMDIR) ; chmod 755 $(CPMDIR) ;\
+ 		chown bin.bin $(CPMDIR))
+ 	install -c -m 644 -o bin -g bin z80-binaries/cpm.sys $(CPMDIR)
+ 	install -c -m 644 -o bin -g bin z80-binaries/cd.com $(CPMDIR)
+ 	install -c -m 644 -o bin -g bin z80-binaries/link.com $(CPMDIR)
+ 	install -c -m 644 -o bin -g bin z80-binaries/xccp.com $(CPMDIR)
+ 
  clean:
! 	rm -f *~ loads.s makeloads *.o $(TARGETS)
diff -rc ../../cpm-0.2.orig/bios.c ./bios.c
*** ../../cpm-0.2.orig/bios.c	Wed Jun 28 18:44:25 1995
--- ./bios.c	Wed Jun 28 22:55:19 1995
***************
*** 229,235 ****
  	case BIOS:      /* System Reset (coldboot) */
  	case DIRBUF-20:
  	    if (!silent_exit)
! 		printf("\nCp/M BIOS COLDBOOT takes you back to Linux\n");
  	    exit(0);
  	case BIOS+3:    /* System Reset (warmboot) */
  	case DIRBUF-19:
--- 229,235 ----
  	case BIOS:      /* System Reset (coldboot) */
  	case DIRBUF-20:
  	    if (!silent_exit)
! 		printf("\nCp/M BIOS COLDBOOT takes you back to FreeBSD\n");
  	    exit(0);
  	case BIOS+3:    /* System Reset (warmboot) */
  	case DIRBUF-19:
diff -rc ../../cpm-0.2.orig/cpmemu.h ./cpmemu.h
*** ../../cpm-0.2.orig/cpmemu.h	Wed Jun 28 18:44:26 1995
--- ./cpmemu.h	Wed Jun 28 22:55:20 1995
***************
*** 11,17 ****
  /*									     */
  /*									     */
  /*****************************************************************************/
- #define _POSIX_SOURCE
  #include <stdio.h>
  #include <stdlib.h>
  #include <string.h>
--- 11,16 ----
diff -rc ../../cpm-0.2.orig/io.c ./io.c
*** ../../cpm-0.2.orig/io.c	Wed Jun 28 18:44:25 1995
--- ./io.c	Wed Jun 28 22:55:20 1995
***************
*** 13,20 ****
  /*****************************************************************************/
  #include "cpmemu.h"
  
- #define HAVE_RAW_IO
- 
  /* magic for character I/O */
  #include <unistd.h>
  #include <fcntl.h>
--- 13,18 ----
diff -rc ../../cpm-0.2.orig/low.c ./low.c
*** ../../cpm-0.2.orig/low.c	Wed Jun 28 18:44:26 1995
--- ./low.c	Wed Jun 28 22:55:20 1995
***************
*** 67,76 ****
  
      /* get access to sound port */
      cptr = NULL;
-     if (ioperm(0x61, 1, 1)) {
  	hardware_access = 0;	/* no access to speaker port */
  	return;
-     }
  
      /* install signal handler */
      sa.sa_handler = tickerint;
--- 67,74 ----
