home *** CD-ROM | disk | FTP | other *** search
/ The UNIX CD Bookshelf / OREILLY_TUCB_UNIX_CD.iso / upt / examples / SOURCES / SC / SSOL2 / SC. next >
Encoding:
Text File  |  1998-07-24  |  1.2 KB  |  51 lines

  1. --- cmds.c.orig    Mon May 11 14:43:34 1992
  2. +++ cmds.c    Thu Apr 22 11:34:26 1993
  3. @@ -29,7 +29,7 @@
  4.  #include <signal.h>
  5.  #include <errno.h>
  6.  
  7. -#ifdef SYSV3
  8. +#if defined SYSV3 || defined sun
  9.  extern void exit();
  10.  #else
  11.  extern int exit();
  12. --- psc.c.orig    Mon May 11 14:43:37 1992
  13. +++ psc.c    Thu Apr 22 11:34:26 1993
  14. @@ -35,7 +35,7 @@
  15.  char    *progname;
  16.  int    getrow(), getcol(), scan();
  17.  
  18. -#ifdef SYSV3
  19. +#if defined SYSV3 || defined sun
  20.  extern void exit();
  21.  #else
  22.  extern int exit();
  23. --- Makefile.rtr    Thu Jul 21 14:27:24 1994
  24. +++ Makefile    Thu Jul 21 14:31:40 1994
  25. @@ -193,9 +193,9 @@
  26.  #YACC=bison -y -v -t -l
  27.  
  28.  # Use this for system V.4
  29. -#CFLAGS=  -DSYSV4 -DSYSV3 -O
  30. -#LDFLAGS= -s
  31. -#LIB=-lm -lcurses -lgen
  32. +CFLAGS=  -DSYSV4 -DSYSV3 -O
  33. +LDFLAGS= -s
  34. +LIB=-lm -lcurses -lgen -lc /usr/ucblib/libucb.a
  35.  # with gcc also use:
  36.  #CC=gcc
  37.  #CFLAGS=  -DSYSV3 -O -pipe
  38. @@ -223,9 +223,9 @@
  39.  #CFLAGS= -O -DBSD42 -pipe
  40.  
  41.  # Use this for BSD 4.3
  42. -CFLAGS= -O -DBSD43
  43. -LDFLAGS=
  44. -LIB=-lm -lcurses -ltermcap
  45. +#CFLAGS= -O -DBSD43
  46. +#LDFLAGS=
  47. +#LIB=-lm -lcurses -ltermcap
  48.  
  49.  # Use this for SunOS 4.X if you have the System V package installed.
  50.  # This will link with the System V curses which is preferable to the
  51.