aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFranklin Wei <git@fwei.tk>2015-05-21 16:59:07 -0400
committerFranklin Wei <git@fwei.tk>2015-05-21 16:59:07 -0400
commitf5808cddfa783b5f270dca922c84e22800f62038 (patch)
tree0c041e891e358a1ce1e1f7b715a09cd802419725 /Makefile
parent28ff4aa610c6c98645973ed4fc9acb6cc7a0cf30 (diff)
downloadmarket-sim-f5808cddfa783b5f270dca922c84e22800f62038.zip
market-sim-f5808cddfa783b5f270dca922c84e22800f62038.tar.gz
market-sim-f5808cddfa783b5f270dca922c84e22800f62038.tar.bz2
market-sim-f5808cddfa783b5f270dca922c84e22800f62038.tar.xz
command-line arg support
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c05ba83..e37f720 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,9 @@ CC = cc
SRC := $(wildcard src/*.c)
OBJ := $(SRC:.c=.o)
-CFLAGS = -Isrc/ -O0 -g -Wall -Wextra -std=c99 -fsanitize=address
+GIT_VERSION := $(shell git describe --abbrev=8 --dirty --always --tags)
+
+CFLAGS = -Isrc/ -O2 -g -Wall -Wextra -std=gnu99 -fsanitize=address -DVERSION_INFO=\"$(GIT_VERSION)\"
HEADERS := $(wildcard src/*.h)