From: Eric S. Raymond Date: Sun, 23 Oct 1994 20:26:27 +0000 (+0000) Subject: Freeze for Linux. X-Git-Tag: 2.1~8 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=77bbe9507776100ae3697c9989e8d1d80e7911a4;p=bs.git Freeze for Linux. --- diff --git a/Makefile b/Makefile index bfddf2c..236bbea 100644 --- 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 bca0b95..d8be1b9 100644 --- a/bs.c +++ b/bs.c @@ -5,12 +5,13 @@ * by Eric S. Raymond * 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 #include -#include +#include /* change this to curses.h if not on Linux */ #include #include #include