]> thyrsus.com Git - bs.git/commitdiff
Freeze for Linux.
authorEric S. Raymond <esr@thyrsus.com>
Sun, 23 Oct 1994 20:26:27 +0000 (20:26 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Sun, 23 Oct 1994 20:26:27 +0000 (20:26 +0000)
Makefile
bs.c

index bfddf2c58f20635fa470cd6ee7215259c1577aee..236bbea44dabe7199abfb3a3ec4ea1792b3921d6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,14 @@
 #      Makefile for bs, the Battleships game
 
 # Flags for use with the Linux ncurses package (recommended)
-# CFLAGS = -DNDEBUG  -I/usr/local/include -L/usr/local/lib
-# TERMLIB = -lncurses
-# CC = gcc
+CFLAGS = -DNDEBUG  -I/usr/local/include -L/usr/local/lib
+TERMLIB = -lncurses
+CC = gcc
 
 # Flags for use with stock curses
-CFLAGS = -DNDEBUG
-TERMLIB = -lcurses
-CC = gcc
+# CFLAGS = -DNDEBUG
+# TERMLIB = -lcurses
+# CC = gcc
 
 bs: bs.c
        $(CC) $(CFLAGS) -o bs bs.c $(TERMLIB)
diff --git a/bs.c b/bs.c
index bca0b95d29236b3e24e258922f12fc49d5255d10..d8be1b9037281c8bc6a8dc51923695aa5ef859eb 100644 (file)
--- a/bs.c
+++ b/bs.c
@@ -5,12 +5,13 @@
  *             by Eric S. Raymond <esr@snark.thyrsus.com>
  * v1.2 with color support and minor portability fixes, November 1990
  * v2.0 featuring strict ANSI/POSIX conformance, November 1993.
+ * v2.1 for Linux, October 1994.
  */
 #define _POSIX_SOURCE
 
 #include <stdio.h>
 #include <termios.h>
-#include <curses.h>
+#include <ncurses.h>   /* change this to curses.h if not on Linux */
 #include <signal.h>
 #include <ctype.h>
 #include <assert.h>