From 77bbe9507776100ae3697c9989e8d1d80e7911a4 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 23 Oct 1994 20:26:27 +0000 Subject: [PATCH] Freeze for Linux. --- Makefile | 12 ++++++------ bs.c | 3 ++- 2 files changed, 8 insertions(+), 7 deletions(-) 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 -- 2.43.0