aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile3
-rw-r--r--chatbot.c1
-rw-r--r--games.c2
-rw-r--r--joshua.c3
-rw-r--r--location.h3
-rw-r--r--util.c3
6 files changed, 12 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index cbd7609..f41cff6 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,8 @@
SOURCES=joshua.o main.o util.o chatbot.o games.o strings.o
+HEADERS=chatbot.h games.h joshua.h location.h strings.h map.h util.h
CXXFLAGS=-I. -lncurses -g
CFLAGS=-I. -std=gnu99 -g
-all: $(SOURCES)
+all: $(SOURCES) $(HEADERS)
g++ $(SOURCES) -lncurses
clean:
rm -f $(SOURCES) a.out *~
diff --git a/chatbot.c b/chatbot.c
index 775eda4..ddc0eff 100644
--- a/chatbot.c
+++ b/chatbot.c
@@ -3,6 +3,7 @@
#include "strings.h"
#include <games.h>
#include <string.h>
+#include <unistd.h>
void do_chatbot(void)
{
int stage=0; /* stage 0: i'm fine how are you... ->
diff --git a/games.c b/games.c
index 1f939d2..21c982f 100644
--- a/games.c
+++ b/games.c
@@ -3,6 +3,8 @@
#include <map.h>
#include <util.h>
#include <location.h>
+#include <unistd.h>
+#include <string.h>
void global_thermonuclear_war(void)
{
clear();
diff --git a/joshua.c b/joshua.c
index 5b5f27a..fc9d1f6 100644
--- a/joshua.c
+++ b/joshua.c
@@ -4,7 +4,8 @@
#include <stdlib.h>
#include <util.h>
#include <signal.h>
-#define RANDOM_TIME 1
+#include <unistd.h>
+#include <string.h>
void cleanup(int signum)
{
endwin();
diff --git a/location.h b/location.h
index e1c1655..57c9b0d 100644
--- a/location.h
+++ b/location.h
@@ -15,7 +15,8 @@ struct location_t world[]={
{"winston-salem", 30, 7},
{"san francisco", 1, 6},
{"chicago", 24, 4},
-
+ {"miami", 32, 11},
+
/* Soviet cities */
/* NOTE: These are not neccessarily correct. I simply eyed them relative to Murmansk */
{"murmansk", 74, 1},
diff --git a/util.c b/util.c
index ef4b62d..6ca83fe 100644
--- a/util.c
+++ b/util.c
@@ -1,4 +1,7 @@
#include <util.h>
+#include <ctype.h>
+#include <unistd.h>
+#include <string.h>
#include <curses.h>
#include "strings.h"
void allLower(char* str)