# 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)
* 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>