aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index f41cff6..8382f75 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,9 @@
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) $(HEADERS)
- g++ $(SOURCES) -lncurses
+CXXFLAGS=-I. -lncurses -g -O3
+CFLAGS=-I. -std=gnu99 -g -O3
+wargames: $(SOURCES) $(HEADERS)
+ g++ $(SOURCES) $(CXXFLAGS) -lncurses -o wargames
+all: wargames Makefile
clean:
- rm -f $(SOURCES) a.out *~
+ rm -f $(SOURCES) a.out wargames *~