diff options
| -rw-r--r-- | Makefile | 3 | ||||
| -rw-r--r-- | chatbot.c | 1 | ||||
| -rw-r--r-- | games.c | 2 | ||||
| -rw-r--r-- | joshua.c | 3 | ||||
| -rw-r--r-- | location.h | 3 | ||||
| -rw-r--r-- | util.c | 3 |
6 files changed, 12 insertions, 3 deletions
@@ -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 *~ @@ -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... -> @@ -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(); @@ -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(); @@ -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}, @@ -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) |