aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranklin Wei <git@fwei.tk>2015-05-18 17:59:29 -0400
committerFranklin Wei <git@fwei.tk>2015-05-18 17:59:29 -0400
commitfa815fa30036a2ddea063dce7e3ac1be2a373b4d (patch)
treef2bf42197d271ff8254b2cd292cebb1d32a3b1f5
parent994ea93d67a9e754e24e2353bb3db9a3eb5f79c9 (diff)
downloadmarket-sim-fa815fa30036a2ddea063dce7e3ac1be2a373b4d.zip
market-sim-fa815fa30036a2ddea063dce7e3ac1be2a373b4d.tar.gz
market-sim-fa815fa30036a2ddea063dce7e3ac1be2a373b4d.tar.bz2
market-sim-fa815fa30036a2ddea063dce7e3ac1be2a373b4d.tar.xz
back to sanity
-rw-r--r--Makefile4
-rw-r--r--src/globals.h5
2 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 88a86bb..22f290d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,9 @@
-CC = clang
+CC = cc
SRC := $(wildcard src/*.c)
OBJ := $(SRC:.c=.o)
-CFLAGS = -Isrc/ -O3 -g -Wall -Wextra
+CFLAGS = -Isrc/ -O0 -g -Wall -Wextra -std=c99
HEADERS := $(wildcard src/*.h)
diff --git a/src/globals.h b/src/globals.h
index 8e5ad76..cf83758 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -1,3 +1,6 @@
+#ifndef _MARKET_SIM_H_
+#define _MARKET_SIM_H_
+
#include <assert.h>
#include <ctype.h>
#include <stdbool.h>
@@ -104,3 +107,5 @@ void debug_init(void);
#endif
void do_menu(struct player_t*, const struct command_t*, uint len, const char *prompt);
+
+#endif