From 994cd3208abcc494109a35af02f625aaa28ce62f Mon Sep 17 00:00:00 2001 From: Anna Wiggins Date: Thu, 23 Jun 2011 09:38:15 -0400 Subject: [PATCH] Added some files we forgot to track --- Makefile | 15 +++++++++++++++ debug.h | 10 ++++++++++ 2 files changed, 25 insertions(+) create mode 100644 Makefile create mode 100644 debug.h diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..cbef9cc --- /dev/null +++ b/Makefile @@ -0,0 +1,15 @@ +# Simple makefile for now, we'll use something more complex if/when we need it + +PROJECT=graphgame +CXX=g++ +CXXFLAGS=-DDEBUG -g +LDFLAGS=-lSDL +OBJECTS=drawutils.o gamecore.o graph.o main.o mainevent.o + +all: $(PROJECT) + +$(PROJECT): $(OBJECTS) + $(CXX) $(LDFLAGS) $(CXXFLAGS) -o $@ $(OBJECTS) + +clean: + rm -f $(OBJECTS) $(PROJECT) diff --git a/debug.h b/debug.h new file mode 100644 index 0000000..fa5fc7b --- /dev/null +++ b/debug.h @@ -0,0 +1,10 @@ +#ifndef _DEBUG_H_ +#define _DEBUG_H_ + +#ifdef DEBUG +#include +using std::cerr; +using std::endl; +#endif + +#endif